A modern large language model stores its knowledge in billions of weights — floating-point numbers that tell every neuron how strongly to respond to every input. A 70-billion-parameter model in 32-bit float takes roughly 140 GB of memory. That fits in a data-center server rack, not a laptop or a phone.
Quantization is the art of replacing those heavy floats with lean integers. Map each weight from a 32-bit float to an 8-bit integer and the file shrinks to 35 GB. Drop to 4-bit and you get ~17.5 GB — suddenly a single consumer GPU can run a frontier model.
The idea sounds like simple rounding, but two things make it treacherous. First, a model's weights are not uniformly spread: a tiny fraction of neurons develop outlier activations whose values are 100× larger than the rest. Round those outliers carelessly and the model degrades catastrophically. Second, quantization errors compound layer by layer through a deep network, so even a small per-weight error can snowball into gibberish.
Solving those two problems is what separates naive quantization from production-grade methods like LLM.int8() (Dettmers et al., 2022) and GPTQ (Frantar et al., 2022), which together made it practical to run billion-parameter models on ordinary hardware.
Comments
Loading comments...