Importance Matrix (imatrix)
What is Importance Matrix (imatrix)?
In one sentence: An importance matrix is a record of which model weights matter most, gathered by running sample text through the model, and used to guide quantization.
When quantizing, it is better to keep important weights precise and compress unimportant ones harder. The imatrix measures importance from real activations so the quantizer can protect what matters.
What does Importance Matrix (imatrix) look like?
Running a model on a few thousand lines of varied text to build an imatrix before making IQ3 GGUF files.
Why does Importance Matrix (imatrix) matter?
Using an imatrix noticeably improves quality at low bit levels.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/importance-matrix-imatrix/">Importance Matrix (imatrix), explained simply</a> (The AI Math Dictionary)