4-bit Quantization
A 70-billion-parameter model held at 16 bits per weight needs roughly 140 GB of memory before it answers a single question. 4-bit quantization squeezes those same weights to about a quarter of that — the difference between needing a rack of accelerators and fitting the model on one card.
How four bits can be enoughEach weight becomes one of 16 discrete levels instead of a full floating-point number. This is done per small block — 32 to 128 weights sharing one scale factor — so one extreme value distorts only its own block. NF4 spaces the levels to match the roughly normal spread of trained weights; plain INT4 spaces them evenly.
How it is producedThree routes dominate in practice:
- GPTQ and AWQ quantize after training, using a small calibration set to pick roundings that least disturb the activations that matter.
- bitsandbytes NF4 quantizes as the weights load, with no calibration pass — the route QLoRA uses to fine-tune on top of a frozen 4-bit base.
- GGUF k-quants package 4-bit weights for CPU and Apple-silicon serving through llama.cpp.
Memory drops about fourfold against fp16, and single-stream generation speeds up with it, because decoding one token at a time is limited by how fast weights can be read rather than by arithmetic. The accuracy cost is small on large models and visible on small ones. Most kernels dequantize back to 16 bits for the matrix multiply, so compute savings trail the memory headline. Below four bits the degradation stops being gentle — which is why this is where most deployments stop.
4-bit quantization stores each model weight as one of 16 levels, with a scale factor per small block of weights, cutting memory roughly fourfold against 16-bit precision. It is what lets a 70B model be served from a single GPU, and it speeds up token-by-token decoding, which is bound by memory bandwidth. Methods such as GPTQ, AWQ and NF4 differ in how they choose the levels; accuracy loss is modest on large models and larger on small ones.
Think of a photo saved as a huge, perfect file versus the same photo saved as a small one for your phone. The small version loses a little detail, but it still looks like the picture — and now it fits. 4-bit quantization does this to a language model. Instead of storing every one of its billions of internal numbers precisely, it keeps a rough version of each, using about a quarter of the space. The model becomes slightly less exact, but small enough to run on a single graphics card, or even a laptop, instead of a room full of expensive hardware.