Blogs / What Low-Precision Data Types Buy You

What Low-Precision Data Types Buy You

What a Hugging Face post says quantization is, what fewer bits means for memory and why that matters for large models on consumer devices.

  • Learning
  • 1 min read

For: Learners who know what a neural network is.

What quantization is

Quantization is a technique to reduce the computational and memory costs of evaluating Deep Learning Models by representing their weights and activations with low-precision data types like 8-bit integer (int8) instead of the usual 32-bit floating point (float32).[1]

What fewer bits means

Reducing the number of bits means the resulting model requires less memory storage, which is crucial for deploying Large Language Models on consumer devices.[1]

Weights andactivations infloat32the usual 32-bit floatingpointLow-precision typessuch as int8reduce computational andmemory costsFewer bitsless memory, crucial forLLMs on consumer devicesquantized tomeans
What does quantization change?

Sources

  1. Quanto (huggingface.co · checked )

More articles