Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
QAT only earns its training cost in the sub-4-bit regime where PTQ accuracy collapses and the deployment cannot tolerate that loss; otherwise cheap PTQ wins.
Imagine shrinking a detailed painting onto a tiny postage stamp. PTQ paints the full canvas first, then shrinks it and hopes the picture survives. For a mild shrink that works fine. But shrink it really hard and the picture turns to mush, because the painter never planned for so little space. QAT lets the painter practice on the tiny stamp the whole time, so they learn to place every stroke where it still reads clearly after shrinking. That practice costs a lot of extra effort. You only bother when the shrink is so severe that the careless approach produces garbage and you absolutely need the picture to stay sharp.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: PTQ versus QAT mechanism + cost gap + the bit-width cliff (INT8/INT4 fine, sub-4-bit collapses) + why QAT buys accuracy not speed + the on-device case.
| Dimension | PTQ | QAT |
|---|---|---|
| When applied | After training, round finished weights | During training, simulate rounding |
| Cost | Minutes, a few hundred calibration samples | Full fine-tune, gradients, GPU hours |
| Best bit width | INT8 and usually INT4 (AWQ, GPTQ) | 2-bit and 3-bit where PTQ collapses |
| What it buys | Cheap, fast, default deployment path | Accuracy recovery at aggressive low bits |
| Inference speed | Same as QAT at equal bit width | Same as PTQ at equal bit width |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking QAT makes inference faster. It does not. QAT and PTQ at the same bit width run at the same speed; QAT only buys accuracy, and only where PTQ has already failed.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.