What Is an Imatrix Quant? Importance Matrix Quantization
When you quantise a model, some weights matter more than others. An importance matrix (imatrix) measures this by running sample text through the model and recording which values have the most effect.
How it is used
llama.cpp’s quantiser uses the imatrix to allocate precision more cleverly, reducing error where it matters most.
Where you see it
- Repositories labelled “imatrix” or with “i1” in file names.
- “IQ” quant types (for example IQ3_XS, IQ4_XS), which are designed to work with importance data.
Benefits
Most noticeable at low bit widths (Q2-Q4), where imatrix quants often score better than plain quants of similar size.
Caveats
The calibration text influences results; heavily English calibration may slightly favour English tasks. Differences at Q6-Q8 are small.
See quantization and which GGUF quant to download.
Related
More terms: Abliteration · Base model · DPO · Fine-tuning · Mixture of experts · Model card · Full glossary