Learn AI Math

Calibration

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.

What does Calibration look like?

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.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.