# Calibration

- **Canonical URL:** https://getaimath.com/dictionary/calibration/
- **Topics:** [Quantization & Model Compression](https://getaimath.com/dictionary/category/quantization-and-model-compression/), [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Last updated:** 2026-11-25

## What is Calibration?

**In one sentence:** Calibration in quantization means running sample data through a model to learn the typical range of its values before compressing it.

The quantizer needs to know how big numbers usually get so it can choose good scales. Calibration data should look like real use; bad calibration data leads to worse quantized models. In evaluation, "calibration" can also mean how well a model's confidence matches its accuracy.

![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 Calibration?

Using a few hundred example paragraphs to calibrate a model before GPTQ quantization.

## Why does Calibration matter?

Good calibration is key to keeping quality after quantization.

## Related Concepts

- [Importance Matrix (imatrix)](https://getaimath.com/dictionary/importance-matrix-imatrix/): 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.
- [Dequantization](https://getaimath.com/dictionary/dequantization/): Dequantization converts compressed low-bit numbers back into higher-precision numbers so they can be used in calculations.
- [Robustness](https://getaimath.com/dictionary/robustness/): Robustness is how well an AI keeps working correctly when inputs are unusual, noisy or deliberately tricky.
- [Data Contamination](https://getaimath.com/dictionary/data-contamination/): Data contamination is when test or benchmark questions accidentally end up in a model's training data.
- [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.
- [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/calibration/)
