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
| Property | Value |
|---|---|
| Base | google/gemma-4-E2B-it-qat-q4_0-unquantized (QAT) |
| Predominant precision | 4-bit |
| Components at 8-bit (sensitive) | 144 |
| Components at 4-bit (robust) | 132 |
| Total quantized components | 276 |
| Achieved bits-per-weight | 5.24 |
| Group size | 64 |
| Reference for sensitivity | bf16 |
| Calibration mix | six-domain mix |
| Vision | bf16 sidecar (optiq_vision.safetensors), image+text via optiq |
| Speculative drafter | google/gemma-4-E2B-it-qat-q4_0-unquantized-assistant via optiq serve --drafter |
| Benchmark | This model (OptiQ, QAT base) | Uniform-4 (QAT base) | Delta |
|---|---|---|---|
| MMLU (5-shot, 1000) | 48.5% | 46.7% | +1.8 |
| GSM8K (1000) | 58.6% | 56.2% | +2.4 |
| IFEval (full, strict) | 66.0% | 67.7% | -1.7 |
| BFCL-V3 simple (200) | 89.5% | 88.5% | +1.0 |
| HumanEval (pass@1, 164) | 62.8% | 59.8% | +3.0 |
| HashHop (long-context) | 18.0% | 12.0% | +6.0 |
| Capability Score (mean) | 57.23 | 55.14 | +2.09 |
gemma-4-e2b-it base, so the per-layer allocation keeps paying off even after QAT has made the weights more quantization-robust. The mixed quant is 5.24 bits-per-weight (about 4.9 GB on disk) versus 4.0 bits-per-weight (about 2.4 GB) for uniform 4-bit: the gain comes from spending the extra budget on the layers that need it.1from mlx_lm import load, generate
2model, tokenizer = load("mlx-community/gemma-4-e2b-it-qat-OptiQ-4bit")
3print(generate(model, tokenizer, "Explain mixed-precision quantization.", max_tokens=256))1pip install mlx-optiq
2optiq serve --model mlx-community/gemma-4-e2b-it-qat-OptiQ-4bit \
3 --drafter google/gemma-4-E2B-it-qat-q4_0-unquantized-assistantoptiq_vision.safetensors, which mlx-lm ignores (it globs model*.safetensors), so both paths work from one artifact.1pip install mlx-optiq
2optiq convert <hf-model-id> --target-bpw 5.0 --candidate-bits 4,8
3optiq lab # or open the full local workbench: chat, compare, quantize, fine-tune