Continuous weights
fp16, wide dynamic range
Choose scale + zero-point
per tensor, channel, or group
Round to nearest integer bucket
Store integers + scale
dequantize on the fly at inference
At its core, quantization maps a continuous range of real numbers onto a small fixed set of integers using a scale and a zero-point: , and reconstructing an approximation later is . Symmetric quantization fixes and centers the integer range on zero — simpler, and fine when weight distributions are roughly symmetric (which most are). Asymmetric quantization allows , useful for distributions that are lopsided (some activation distributions, especially after ReLU-family nonlinearities, are all non-negative).