Xylolabs

GigaChat4-37B-A4B-base MLX 4-bit

ai-sage/GigaChat4-37B-A4B-base converted to MLX for mlx-lm, with the MTP layer left out.

How to run

pip install mlx==0.32.5 mlx-lm==0.32.2 transformers==5.24.1
curl -q -fL "https://huggingface.co/Xylolabs/GigaChat4-37B-A4B-base-MLX-4bit/resolve/main/gigachat4.py" -o "$(python -c 'from pathlib import Path; import mlx_lm.models as m; print(Path(m.__file__).parent)')/gigachat4.py"

mlx_lm.generate --model Xylolabs/GigaChat4-37B-A4B-base-MLX-4bit --trust-remote-code --ignore-chat-template --prompt 'The capital of Australia is'

Accuracy

Quant Size WikiText-2 KL top-1 Held-out KL top-1 Completion answers
BF16 76.58 GB 4/7
MLX 8-bit 39.84 GB 0.002143 98.17% 0.002689 97.37% 4/7
MLX 4-bit 22.29 GB 0.019022 94.60% 0.017665 94.22% 4/7
Mean KL divergence by file size Top-1 agreement by file size

Which file for your hardware

Hardware Memory File Context
Mac Studio M5 Max 36 GB unified Xylolabs/GigaChat4-37B-A4B-base-MLX-4bit 128K
Mac Studio M5 Max 48 GB unified Xylolabs/GigaChat4-37B-A4B-base-MLX-4bit 512K
Mac Studio M5 Max 64 GB unified Xylolabs/GigaChat4-37B-A4B-base-MLX-8bit 256K
Mac Studio M5 Ultra 96 GB unified Xylolabs/GigaChat4-37B-A4B-base-MLX-8bit 1M
Mac Studio M5 Max 128 GB unified Xylolabs/GigaChat4-37B-A4B-base-MLX-8bit 1M
Mac Studio M5 Ultra 256 GB unified Xylolabs/GigaChat4-37B-A4B-base-MLX-8bit 1M
Mac Studio M5 Ultra 512 GB unified Xylolabs/GigaChat4-37B-A4B-base-MLX-8bit 1M

License and notices

Noncommercial License for individuals 1.0 (LICENSE.txt), the source model's license; our quantized files are offered under the same terms. Converted to MLX and quantized by Xylolabs. Copyright (c) 2026 Giga.

Updates

  • 2026-11-29: Charts redrawn in the dark theme with fewer point labels.
  • 2026-11-28: Card text trimmed.
  • 2026-11-28: First release.
Downloads last month
101
Safetensors
Model size
37B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Xylolabs/GigaChat4-37B-A4B-base-MLX-4bit

Quantized
(3)
this model

Collections including Xylolabs/GigaChat4-37B-A4B-base-MLX-4bit