Views
No views yet
Built with mlx-optiq, the MLX-native toolkit to quantize, fine-tune, and serve LLMs locally on Apple Silicon, no PyTorch and no cloud. Try the Lab · All OptiQ quants · Docs
switch_mlp routed-expert tensors that dominate the model's parameter mass. Sensitive layers go to 8-bit; robust ones (including most of the experts) stay at 4-bit.| Property | Value |
|---|---|
| Predominant precision | 4-bit |
| Layers at 8-bit (sensitive) | 127 |
| Layers at 4-bit (robust) | 36 |
| Total quantized layers | 163 |
| Achieved BPW | 5.05 |
| Group size | 64 |
| Calibration mix | six-domain mix (40 samples) |
| Reference for sensitivity | uniform-4-bit (bf16 doesn't fit in 36 GB RAM) |
| Bundled KV-cache recipe | kv_config.json, 6 attention layers @ 4-bit (4.0 avg KV bits) |
llama.cpp uses for Q4_K_M-style mixed-precision quants: the "4-bit" label is for the predominant precision, not the weighted average. Most of the 8-bit layers are the small mamba / attention projections; the big routed-expert tensors mostly stay at 4-bit, which is how the model lands at 5.05 BPW.mlx-lm (the custom NemotronH modeling files ship in the repo and are picked up automatically):pip install mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("mlx-community/NVIDIA-Nemotron-3-Nano-30B-A3B-OptiQ-4bit")
4response = generate(
5 model, tokenizer,
6 prompt="Explain how a sparse mixture-of-experts router decides which experts to activate.",
7 max_tokens=400,
8)mlx-optiq:1pip install mlx-optiq
2
3# Serve with the bundled KV-cache recipe
4optiq serve --model mlx-community/NVIDIA-Nemotron-3-Nano-30B-A3B-OptiQ-4bit \
5 --kv-config kv_config.json| Metric | OptiQ | Uniform 4-bit | Δ |
|---|---|---|---|
| MMLU (5-shot, 1000 samples) | 76.2% | 74.8% | +1.3 |
| GSM8K (1000 samples, 3-shot CoT) | 81.6% | 78.5% | +3.1 |
| IFEval (full set, strict) | 69.1% | 67.5% | +1.7 |
| BFCL-V3 simple (200 calls) | 93.0% | 92.5% | +0.5 |
| HumanEval (164 problems, pass@1) | 89.0% | 86.0% | +3.0 |
| HashHop (long-context retrieval) | 25.0% | 22.0% | +3.0 |
| Capability Score (mean of 6) | 72.32 | 70.21 | +2.11 |
| On-disk size | 20.6 GB | 16.6 GB | +4.0 |
1pip install mlx-optiq
2optiq convert <hf-model-id> --target-bpw 5.0 --candidate-bits 4,8
3optiq lab # full local workbench: chat, compare, quantize, fine-tune