
4-Bit Quantization
4-bit quantization is a technique that coarsely rounds the numbers in an AI model down to just 16 possible values, allowing the model to require eight to sixteen times less memory. It is the main reason why large language models can now run on an ordinary laptop.
At its core, an AI model consists of billions of numbers — so-called weights — that determine how the model responds to a question. Normally, each of these numbers is stored using 16 or 32 bits, meaning 16 or 32 digits in binary. With 4-bit quantization, this representation shrinks to just 4 bits per number. That means only 16 different values can be distinguished, instead of over 65,000 before. This sounds like a drastic loss — and it is. What matters, though, is that the quality of the answers suffers surprisingly little, because most of a model’s weights have very similar values to begin with.
Why 4-bit quantization enables the democratization of AI
A model like Llama 3 with 70 billion weights needs around 140 gigabytes of memory in full 16-bit format. That’s a challenge even for many professional servers. In 4-bit quantization, the same file shrinks to about 35 gigabytes — a quarter of the size. That fits into the graphics memory of a single high-end graphics card that an individual can buy.
The effect goes beyond memory. Less data means fewer read operations in the chip, which makes processing faster. For providers of AI services, this means less power consumption, less hardware, and lower costs per request. For individuals, it means that models which used to run only on high-performance servers can now be used locally on their own computer.
How 65,000 possible values become sixteen
When quantizing, all of a model’s weights are split into small groups — typically 128 numbers at a time. Within each group, the smallest and largest values are found and used to define a scale. All other values in the group are rounded to the nearest of the 16 allowed steps on this scale. The original value is lost in the process; only the step it landed on is stored.
To keep rounding errors from piling up too much, refined methods exist. The best-known technique is called GPTQ: it fine-tunes the weights after rounding so that the overall error stays as small as possible. A newer alternative called GGUF separates quantization by layer — critical parts of the model retain more precision, while less important ones are rounded more aggressively. Both approaches are aiming for the same thing: to discard as little as possible.
A common misconception is that 4-bit quantization retrains or simplifies the model. That’s not true. The model’s structure remains identical — only the stored numbers are compressed, similar to how a JPEG image becomes smaller without the subjects being removed from the picture.
4-bit quantization in products and headlines
Anyone searching for models on platforms like Hugging Face will almost everywhere come across file names with abbreviations like “Q4_K_M” or “INT4”. These abbreviations indicate that these are 4-bit quantized versions. The software llama.cpp, which allows language models to be used on ordinary PCs without expensive Nvidia cards, relies almost exclusively on this format.
Apple has built 4-bit quantization directly into its Core ML framework, which allows iPhone apps to run AI models locally on the device. Microsoft uses the same principle for the AI features in Windows that run on the user’s own computer without an internet connection. Even though users don’t see it, 4-bit quantization is the technical foundation behind many “on-device AI” promises.
In the trade press, the term comes up whenever a new model is released and hobbyists report on whether it runs on their hardware. The question “Does it run in 4-bit on 16 GB VRAM?” has become something like the practical everyday test of the AI community.