Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Quantization

Also: quantized, quantisation

In plain words

Storing model numbers with less detail. This can save memory. The effect on quality depends on the model and the task.

The model has to fit in the memory
Laptop, 16 GBsmall model
Desktop graphics card, 24 GBmedium model
Workstation, 96 GBlarge model

Running a model on your own machine means loading all of its numbers into memory, like luggage into an overhead bin. Quantization shrinks the luggage. The graphics card’s memory (VRAM) is the bin that matters for speed.

The fuller definition

Quantization represents model values using fewer numerical levels or fewer bits, often reducing memory and bandwidth needs.

Go deeper

Same eight billion values, different storage precision
32 bits32 GB
16 bits16 GB
8 bits8 GB
4 bits4 GB

Idealized value storage only, in decimal GB. Metadata, caches, mixed precision, and runtime overhead add to actual requirements. This is not a GPU purchasing calculator.

A concrete example

A compatible runtime loads a lower-precision model variant to reduce its memory footprint.

The distinction that matters

Smaller representations can affect quality and do not make runtime overhead disappear.

Related terms

Where it is taught

Understand the hardware a local model needs

Source and further reading

Hugging Face · Model inference and quantization

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC