# Quantization

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

## What is Quantization?

**In one sentence:** Quantization makes a model smaller and faster by storing its numbers with fewer bits.

It is like rounding prices to the nearest dollar instead of the exact cent. Each weight loses a little detail, but the model becomes much smaller. Good quantization keeps answers almost the same while cutting memory by half or more.

![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.*

### Quick Math / Rule of Thumb

Moving from 16-bit to 4-bit shrinks weights by ~4× (e.g., a 70B model drops from ~140 GB to ~35–40 GB). Quality usually drops only a little, but how much depends on the model and the quantization method—so test on your own tasks.

## What is an example of Quantization?

Turning a 16-bit 8B model (16 GB) into a 4-bit version (about 5 GB) is quantization.

## Why does Quantization matter?

Quantization is the main reason big models can run on laptops and phones.

## Related Concepts

- [Post-Training Quantization (PTQ)](https://getaimath.com/dictionary/post-training-quantization-ptq/): Post-training quantization shrinks a model after it has finished training, without retraining it.
- [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/quantization/)
