# 4-bit Quantization

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

## What is 4-bit Quantization?

**In one sentence:** 4-bit quantization stores each weight in about 4 bits, shrinking a 16-bit model to roughly a quarter of its size.

It is the most popular level for local AI, because quality stays good for most tasks while memory drops a lot. Methods like GPTQ, AWQ and GGUF Q4 use clever grouping and scaling to keep errors small.

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

Weight RAM ≈ 0.5–0.6 GB per 1B parameters—so an 8B model's weights take roughly 4.5–5 GB and can fit on a laptop or GPU with 8 GB of memory.

## What is an example of 4-bit Quantization?

A 70B model drops from about 140 GB to about 40 GB with 4-bit quantization.

## Why does 4-bit Quantization matter?

4-bit quantization is the sweet spot that makes big models usable at home.

## Related Concepts

- [8-bit Quantization](https://getaimath.com/dictionary/8-bit-quantization/): 8-bit quantization stores each weight in 8 bits, halving the size of a 16-bit model.
- [2-bit Quantization](https://getaimath.com/dictionary/2-bit-quantization/): 2-bit quantization stores each weight in about 2 bits, making models extremely small but often noticeably worse.
- [Integer Quantization](https://getaimath.com/dictionary/integer-quantization/): Integer quantization converts model numbers into whole numbers, like INT8 or INT4, plus scale factors.
- [GGUF](https://getaimath.com/dictionary/gguf/): GGUF is a file format for storing AI models, especially quantized ones, made for llama.cpp and tools like Ollama and LM Studio.
- [Half Precision](https://getaimath.com/dictionary/half-precision/): Half precision means storing numbers in 16 bits, like FP16 or BF16, half the size of FP32.
- [GGML](https://getaimath.com/dictionary/ggml/): GGML is a machine learning library written in C for running models efficiently on regular computers, and also the name of its older file format.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/4-bit-quantization/)
