Run this model with HF Jobs

Run skyzer4ever/GigaChat4-37B-A4B-MLX-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/skyzer4ever/GigaChat4-37B-A4B-MLX-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/skyzer4ever/GigaChat4-37B-A4B-MLX-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/skyzer4ever/GigaChat4-37B-A4B-MLX-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

GigaChat4-37B-A4B — MLX 4-bit

Unofficial MLX conversion of ai-sage/GigaChat4-37B-A4B-bf16 for Apple Silicon (4-bit affine, group size 64, 4.508 bits per weight).

mlx-lm does not support GigaChat 4 yet. This repo ships my port of the architecture as gigachat4.py (hybrid Gated DeltaNet + MLA, MoE, pre/post GatedNorm, logit softcap). The DSA sparse indexer is not implemented, so attention is exact up to 2,048 tokens of context; beyond that, outputs can differ from the reference implementation.

Use

pip install mlx-lm
# copy the model file into mlx-lm until upstream support lands
cp gigachat4.py "$(python -c 'import mlx_lm, os; print(os.path.dirname(mlx_lm.__file__))')/models/"
mlx_lm.generate --trust-remote-code --model skyzer4ever/GigaChat4-37B-A4B-MLX-4bit \
  --chat-template-config '{"reasoning": false}' --prompt "Hello"

--trust-remote-code is needed for the tokenizer config. Reasoning is on by default; pass {"reasoning": false} for instant mode.

Measured (Mac Studio, M5 Ultra, 256 GB)

Generation Peak memory
4-bit 98.5 tok/s 21.2 GB
8-bit 87.9 tok/s 39.9 GB

Single request, 34-token prompt, 138–175 generated tokens. EN + RU smoke tests coherent.

License

Derivative of GigaChat 4 37B-A4B under the original Noncommercial License for individuals 1.0 (LICENSE.txt included). Noncommercial use by individuals only; commercial use of the model or its outputs is prohibited; use by organisations listed in the licence (charities, educational, research, government, etc.) is prohibited.

Downloads last month
266
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 skyzer4ever/GigaChat4-37B-A4B-MLX-4bit

Quantized
(17)
this model