# Post-Training Quantization (PTQ)

- **Canonical URL:** https://getaimath.com/dictionary/post-training-quantization-ptq/
- **Topics:** [Quantization & Model Compression](https://getaimath.com/dictionary/category/quantization-and-model-compression/)
- **Last updated:** 2026-11-25

## What is Post-Training Quantization (PTQ)?

**In one sentence:** Post-training quantization shrinks a model after it has finished training, without retraining it.

You take the finished weights and convert them to fewer bits, sometimes using a little sample data to choose good rounding. It is fast and cheap, which is why most quantized models you download were made this way.

![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 Post-Training Quantization (PTQ)?

Converting a downloaded Llama model to 4-bit GGUF with llama.cpp is post-training quantization.

## Why does Post-Training Quantization (PTQ) matter?

PTQ lets anyone make smaller versions of models in minutes or hours.

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

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 | Post-Training Quantization (PTQ) | [Quantization-Aware Training (QAT)](https://getaimath.com/dictionary/quantization-aware-training-qat/) |
| --- | --- | --- |
| Compute cost | Minutes to hours on 1 GPU | Requires extra training epochs & full pipeline |
| Sweet spot | 8-bit and 4-bit compression (AWQ, GPTQ, GGUF) | Extreme 2-bit to 4-bit or tiny edge models |
| Ease of use | Drop-in on any open-weight checkpoint | Needs training data and compute budget |

## Related Concepts

- [Quantization](https://getaimath.com/dictionary/quantization/): Quantization makes a model smaller and faster by storing its numbers with fewer bits.
- [Quantization-Aware Training (QAT)](https://getaimath.com/dictionary/quantization-aware-training-qat/): Quantization-aware training teaches a model during training to cope with low-precision numbers, so it loses less quality when quantized.
- [Weight Quantization](https://getaimath.com/dictionary/weight-quantization/): Weight quantization stores a model's learned weights in fewer bits.
- [Activation Quantization](https://getaimath.com/dictionary/activation-quantization/): Activation quantization stores the temporary numbers that flow through a model while it runs in fewer bits.
- [Dynamic Quantization](https://getaimath.com/dictionary/dynamic-quantization/): Dynamic quantization decides how to scale activations on the fly, for each input, while the model runs.
- [Static Quantization](https://getaimath.com/dictionary/static-quantization/): Static quantization picks all the scaling settings ahead of time, using a sample of example data.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/post-training-quantization-ptq/)
