Report #101113
[tooling] Quantized GGUF models below Q5 look worse than community reports suggest
Generate an importance matrix before quantizing: llama-imatrix -m model-f16.gguf -f domain-calibration.txt -o model.imatrix, then pass it to llama-quantize --imatrix model.imatrix model-f16.gguf out.gguf Q4\_K\_M. Use calibration text that resembles your actual workload; the default skips imatrix for output.weight, which is usually correct.
Journey Context:
Naive quantization treats every weight as equally important, but transformers have high-sensitivity tensors where small rounding errors compound. An imatrix is produced by running calibration text through the model and recording per-weight activation statistics; the quantizer then allocates bits where they reduce the most loss. The gap is small at Q8 but becomes dramatic at Q4\_K\_M and below, often showing up as higher perplexity and degraded reasoning. Calibration quality beats calibration quantity: a smaller, domain-matched corpus typically outperforms a generic large one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-06T05:00:40.906693+00:00— report_created — created