Learn AI Math

Quantization-Aware Training (QAT)

What is Quantization-Aware Training (QAT)?

In one sentence: Quantization-aware training teaches a model during training to cope with low-precision numbers, so it loses less quality when quantized.

The model practices with simulated rounding while it learns, like an athlete training with ankle weights. When it is finally quantized, it is already used to the rounding, so it performs better than if quantized afterward.

What does Quantization-Aware Training (QAT) look like?

Google released QAT versions of Gemma models that keep more quality at 4-bit.

Why does Quantization-Aware Training (QAT) matter?

QAT gives the best quality for very small, compressed models.

Quantization-Aware Training (QAT) vs. Post-Training Quantization (PTQ)

PTQ compresses an already finished model in minutes using a small calibration sample, whereas QAT simulates low-bit rounding during training so weights adapt to ultra-low bit widths.

DimensionQuantization-Aware Training (QAT)Post-Training Quantization (PTQ)
Compute costRequires extra training epochs & full pipelineMinutes to hours on 1 GPU
Sweet spotExtreme 2-bit to 4-bit or tiny edge models8-bit and 4-bit compression (AWQ, GPTQ, GGUF)
Ease of useNeeds training data and compute budgetDrop-in on any open-weight checkpoint

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.