# Quantization

> The Quantization is a technique that reduces the size of a model by storing its parameters with lower precision.

## What is quantization in LLMs?

The technique of storing model parameters with fewer bits, for example 4-bit numbers instead of 16-bit. Reduces memory usage and speeds up inference, allowing large models to run on laptops, with a small loss of quality.

- Topic: Training & Architecture
- Type: technique

## Common mistakes

- Expecting no loss in quality when weights are squeezed into very few bits.

## Interview questions

### Does quantization reduce model quality?

Slightly at moderate levels like 8-bit, often barely noticeable. Very low precision, like 2- or 3-bit, can hurt quality much more.

### What does 4-bit quantization mean?

Each weight is stored in 4 bits instead of 16, cutting the memory for weights to about a quarter so larger models fit on smaller hardware.

### What is the difference between quantization and pruning?

Quantization lowers the precision of each weight. Pruning removes weights or whole parts of the network that matter least.

## Related cards

- [Local Model](https://wonderium.dev/ai/local-model.md)
- [Parameters](https://wonderium.dev/ai/parameters.md)
- [Open-Weight Model](https://wonderium.dev/ai/open-weight-model.md)
- [Small Language Model](https://wonderium.dev/ai/small-language-model.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/quantization
- Last updated: 2026-11-25
