Skip to content

Model quantisation

Representing model weights and, depending on the method, intermediate values with lower numerical precision.

Also known asModel quantization
Machine learning

Which model values use a smaller representation?

Model quantisation represents weights and, in some methods, intermediate values with fewer bits. Model data can therefore require less memory while the number of parameters stays the same. The coarser representation can change results. Whether calculations become faster also depends on hardware, runtime and method. A smaller model file therefore does not describe the total memory requirement of a running application.

A fictional team plans to summarise service reports locally for an internal overview. It wants to compare a version with 16-bit weights against a quantised 8-bit version of the same base model. Instructions and approved report texts stay the same for the planned comparison. Reviewers examine omitted work steps and invented additions, alongside actual memory use and response time on the intended computer. Only this combined assessment shows whether the chosen variant performs the task with the available resources.

Sources