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.
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.
| Dimension | Quantization-Aware Training (QAT) | Post-Training Quantization (PTQ) |
|---|---|---|
| Compute cost | Requires extra training epochs & full pipeline | Minutes to hours on 1 GPU |
| Sweet spot | Extreme 2-bit to 4-bit or tiny edge models | 8-bit and 4-bit compression (AWQ, GPTQ, GGUF) |
| Ease of use | Needs training data and compute budget | Drop-in on any open-weight checkpoint |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/quantization-aware-training-qat/">Quantization-Aware Training (QAT), explained simply</a> (The AI Math Dictionary)