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-E4B-it-qat-q4_0-unquantized (QAT) |
| Predominant precision | 4-bit |
| Components at 8-bit (sensitive) | 221 |
| Components at 4-bit (robust) | 122 |
| Total quantized components | 343 |
| Achieved bits-per-weight | 5.17 |
| Group size | 64 |
| Reference for sensitivity | uniform-4-bit baseline (bf16 does not fit in RAM at this size) |
| Calibration mix | six-domain mix |
| Vision | bf16 sidecar (optiq_vision.safetensors), image+text via optiq |
| Speculative drafter | google/gemma-4-E4B-it-qat-q4_0-unquantized-assistant via optiq serve --drafter |
mlx-community/gemma-4-E4B-it-qat-4bit). That comparison isolates what the mixed-precision allocation adds, holding the base fixed.| Benchmark | This model (OptiQ, QAT base) | Uniform-4 (QAT base) | Delta |
|---|---|---|---|
| MMLU (5-shot, 1000) | 57.7% | 57.4% | +0.3 |
| GSM8K (1000) | 80.0% | 79.5% | +0.5 |
| IFEval (full, strict) | 69.1% | 67.8% | +1.3 |
| BFCL-V3 simple (200) | 87.5% | 87.5% | +0.0 |
| HumanEval (pass@1, 164) | 81.7% | 78.7% | +3.0 |
| HashHop (long-context) | 36.0% | 34.0% | +2.0 |
| Capability Score (mean) | 68.67 | 67.48 | +1.19 |
1from mlx_lm import load, generate
2model, tokenizer = load("mlx-community/gemma-4-e4b-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-e4b-it-qat-OptiQ-4bit \
3 --drafter google/gemma-4-E4B-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