Modern neural networks are heavy. A large language model can carry billions of weights, each stored as a 32-bit floating-point number — four bytes that encode a real value somewhere between and . That precision is great during training, but at inference time it is mostly wasted.
INT8 quantization is the idea that most of those billions of numbers actually cluster inside a modest range — say — and that you can represent each one faithfully enough with just an 8-bit integer (one of 256 values from to ). The trick is to record two small constants alongside the weights: a scale and a zero-point . They let you go back and forth:
The reconstructed value is slightly off — that error is called quantization noise — but for well-trained models the accuracy drop is surprisingly small, often less than 1%. Meanwhile the model shrinks 4×, fits in less RAM, and runs faster on the integer arithmetic units that every modern CPU and GPU ships with.
Related compression ideas appear in dimensionality reduction and neural-network training; quantization sits at the very end of the pipeline, between training and deployment.
Comments
Loading comments...