Skip to content

AI Glossary · Concepts

What is Quantization?

Quantization

Quantization represents model weights or activations at lower numerical precision to reduce storage or computation, with quality and speed checked for the workload.

Also known as: model quantization

· Updated · Chain of Thought

AI Infrastructure

  • 1 episode
  • 1 source

Quantization reduces the precision used to represent numbers in a model. GPTQ is one post-training weight-quantization method; its authors report results with three or four bits per weight on the models they tested (Frantar et al., GPTQ). Keep the scope clear: lower-precision weights reduce their storage, but a whole application also needs memory for runtime state and other components.

For a concrete example, compare a hypothetical model’s 16-bit and 4-bit weight representations. Ignoring overhead, the latter uses one quarter as many bits for those weights. That calculation is not a prediction that your server’s total memory or response time will fall by the same factor. Measure those separately with the actual runtime, prompt lengths and concurrency you plan to serve.

Describing a quantized smaller-model deployment, Jeetu Patel says, “you can run it on a CPU on a laptop,” (episode 44, 19:46).

For builders, run the same evaluation set before and after quantization, including rare inputs and any precise extraction your product depends on. Select the representation that meets both the quality requirement and the device budget. Edge AI covers local deployment; are small language models better for production? covers model size. The AI hardware hub follows profiling and implementation constraints.

Sources

Go deeper

From the conversation