Views
No views yet
| Component | Precision |
|---|---|
| MoE experts, layers 0,1,2,27,28,29 (protected) | tq3, group 32 |
| MoE experts, layers 3–26 | tq2, group 32 |
| Attention q/k/v/o | tq3, group 32 |
| Embeddings, dense per-layer MLP, vision tower | 8-bit affine (g64) |
| Routers, self-conditioning, norms | bf16 |
turboquant-mlx-full >= 0.15.1):turboquant-plan --model manjunathshiva/diffusiongemma-26B-A4B-it-mini-g32Model
weights (exact) 10.5 GB
KV cache 65.0 KB/token (hybrid: 5/30 full-attention, 25 sliding (window 1024))
Verdict: <resident | needs a wired-limit raise | streaming>
Recommended: <the exact flags for your Mac>--wired-gb / --ram-gb are for:1turboquant-plan --model manjunathshiva/diffusiongemma-26B-A4B-it-mini-g32 \
2 --wired-gb 10.5 --ram-gb 16 --context 8192turboquant-doctor runs the same projection plus a readiness check; both take --json. The projection is calibrated against real measurements on a 16 GB Mac mini rather than estimated from theory — on the 9.4 GB ternary 35B it predicts a 10.44 GB peak where that machine measures 10.42.| this repo (mini) | tq3-g32 | mlx-community 4-bit | |
|---|---|---|---|
| Size on disk | 9.79 GB | 13.8 GB | 15.0 GB |
Peak memory (--max-tokens 120) | ~12.4 GB | ~18 GB | ~19 GB |
| Math / recall probes | pass | pass | pass |
--max-denoising-steps 24 is ~2x faster at a mild quality cost.--max-tokens 120), so raise the
Metal wired limit first (verified working on a 16 GB Mac mini; resets on
reboot):sudo sysctl iogpu.wired_limit_mb=13824--max-tokens 96.pip install "turboquant-mlx-full[vlm]>=0.8.0"1python -m turboquant_mlx.generate_vlm \
2 --model manjunathshiva/diffusiongemma-26B-A4B-it-mini-g32 \
3 --prompt "Write a short paragraph about the ocean." \
4 --max-tokens 120 --temp 0.0--max-denoising-steps 24 (~2x faster, mild quality
cost — quantized diffusion needs more denoising iterations than bf16).1python -m turboquant_mlx.convert_vlm \
2 --hf-path google/diffusiongemma-26B-A4B-it \
3 --mlx-path ./diffusiongemma-26B-A4B-it-mini-g32 \
4 --bits 2 --attn-bits 3 -g 32 \
5 --protect-expert-layers 0,1,2,27,28,29 --protect-bits 3 \
6 --quantize-extras1@article{zandieh2025turboquant,
2 title={TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate},
3 author={Zandieh, Amir and Daliri, Majid and Hadian, Majid and Mirrokni, Vahab},
4 year={2025},
5 eprint={2504.19874},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG},
8 url={https://arxiv.org/abs/2504.19874}
9}