firehose> #llmops

Quantization converts a model from a higher-bit numeric format to a lower-bit one to cut memory and speed up inference. The arithmetic is direct: a 13B-parameter model in fp32 needs ~4 bytes per parameter ≈ 52 GB; drop to 16-bit and it's ~26 GB. Inference is typically run at as few bits as tolerable (16, 8, even 4); training is more sensitive to precision and is usually done in mixed precision — some operations in higher precision (32-bit), others in lower (16/8-bit). Numeric formats trade range (the span of representable values) against precision (how finely a value can be represented), and reducing precision can shift values or introduce errors — which is why a model must be loaded in its intended format. Weight-only quantization is by far the most popular compression technique: easy to implement, works out of the box for many models, and delivers large savings for little effort.

Claims


Linked from