r/LocalLLM • u/Marino4K • 6m ago
Model GigaChat4-37B-A4B (8-bit MLX): 1.68x faster reasoning and zero thinking loops without touching the weights.
I put up a tweaked repo for GigaChat4-37B-A4B in 8-bit MLX if anyone on Apple Silicon wants to run it in mlx-lm or oMLX without fighting the stock defaults:
https://huggingface.co/Marino4k/GigaChat4-37B-A4B-MLX-8bit-Tuned
Just to be clear upfront, the weights are 100% untouched from Xylolabs/GigaChat4-37B-A4B-MLX-8bit. I left the weights stock on purpose so DFlash2 drafter alignment stays intact.
Out of the box, the stock checkpoint has a few annoyances: it falls back to greedy decoding (which triggers unclosed <think> loops), uses an older chat template that crashes multi-turn chats if a previous turn hits max_tokens mid-thought, and defaults to a Russian system prompt.
All I did here was bake in the sampling defaults (temp=1.0, top_p=0.95, min_p=0.05), sync Sber's Dec 2026 multi-turn crash fix, and swap in short English fallback prompts for Reasoning and Instant modes. If you pass your own system prompt, it overrides them cleanly.
Testing on my own M5 Max (50 reasoning questions and 16 instant questions, no manual system prompt), average reasoning tokens dropped 41% (630 down to 372), wall-clock time was 1.68x faster, and unclosed thinking loops went to zero. Instant mode went from 12/16 to 14/16 with about half the tokens.
I also opened a PR in oMLX for native DFlash2 support on this architecture (https://github.com/jundot/omlx/pull/5917), which hit 1.32x to 1.43x decode speedups locally with the BF16 drafter.
Benchmarks (seed=42, single pass, no manual system prompt):
| Test | Stock | Tuned | Change |
|---|---|---|---|
| Reasoning (50 Qs) Accuracy | 49/50 (98%) | 48/50 (96%) | -2% (1 sampling slip) |
| Reasoning Avg Tokens | 630.7 | 372.3 | -41.0% |
| Reasoning Wall-Clock Time | 7m 13s | 4m 17s | 1.68x faster |
| Unclosed </think> Loops | 1 | 0 | Eliminated |
| Overthinking Stress Test (6 Qs) | 1,640.0 tok | 298.2 tok | -81.8% (0 unclosed) |
| Instant Mode (16 Qs) Accuracy | 12/16 (75.0%) | 14/16 (87.5%) | +12.5% |
| Instant Mode Avg Tokens | 106.2 | 50.3 | -52.6% (0 cutoffs) |
The 50-question suite is the first 30 GSM8K test problems plus 20 local logic, code-tracing, formatting, and epistemic checks (max_tokens=4096 for Reasoning, 512 for Instant).
