# Importance Matrix (imatrix)

- **Canonical URL:** https://getaimath.com/dictionary/importance-matrix-imatrix/
- **Topics:** [Quantization & Model Compression](https://getaimath.com/dictionary/category/quantization-and-model-compression/)
- **Last updated:** 2026-11-25

## 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.

![Quantization: Vacuum-Packing a Giant AI into a Carry-On Bag — Simple cartoon showing a huge 16 GB AI model with long fussy decimals (3.14159265) squeezed by a vacuum-seal press into a compact 4 GB model with rounded numbers (3.1) that fits on a laptop.](https://getaimath.com/diagrams/quantization-and-model-compression.png)
*Napkin Diagram (Quantization & Model Compression): By rounding long fussy decimals to neat short numbers, quantization shrinks a model about 4× with only a small loss in smarts.*

## What is an example of Importance Matrix (imatrix)?

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.

## Related Concepts

- [IQ Quantization](https://getaimath.com/dictionary/iq-quantization/): IQ quantization is a family of GGUF formats, like IQ2 and IQ3, that use clever tricks to keep models usable at very low bit levels.
- [Calibration](https://getaimath.com/dictionary/calibration/): Calibration in quantization means running sample data through a model to learn the typical range of its values before compressing it.
- [Q8_0](https://getaimath.com/dictionary/q8-0/): Q8_0 is a GGUF quantization level that uses 8 bits per weight, giving quality almost identical to the original model.
- [Dequantization](https://getaimath.com/dictionary/dequantization/): Dequantization converts compressed low-bit numbers back into higher-precision numbers so they can be used in calculations.
- [Q5_K_M](https://getaimath.com/dictionary/q5-k-m/): Q5_K_M is a GGUF quantization level using about 5 to 6 bits per weight, with higher quality than Q4 and a bit larger size.
- [Quantization Error](https://getaimath.com/dictionary/quantization-error/): Quantization error is the difference between the original number and its compressed version.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/importance-matrix-imatrix/)
