Report #79047
[tooling] GGUF IQ2\_XXS/IQ3\_XXS quants produce gibberish or severe quality degradation compared to Q4\_K\_M
Generate an imatrix \(importance matrix\) using calibration data \(100-200 samples from your target domain\) with \`llama-imatrix\`, then pass the resulting \`.imatrix\` file during quantization. This is mandatory for IQ quants to achieve usable accuracy.
Journey Context:
Users attempt IQ2\_XXS \(2-bit\) or IQ3\_XXS \(3-bit\) quants to fit 70B models on 24GB VRAM but get incoherent output. These 'importance-aware' quants rely on calibration data to determine which weights are most critical and quantize them with higher precision. Without an imatrix generated from representative data, quantization is effectively random. The process involves running \`llama-imatrix\` on the FP16 model with a calibration dataset \(ideally from your actual use case, or general corpora like RedPajama\) to produce a \`.imatrix\` file. This file is then passed to \`llama-quantize\` with \`--imatrix\`. The tradeoff is time \(generation can take hours\) and the need for relevant calibration data, but it transforms IQ2 from 'unusable' to 'surprisingly good, barely worse than Q4'. Most tutorials omit this mandatory step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:16:16.131546+00:00— report_created — created