Home › Glossary › Systems › Model Quantization

Advanced · Systems

Model Quantization

Visual diagram · (in preparation) · Math · (in preparation) · Worked example · 3 difficulty levels.

TL;DR. A technique to reduce the memory footprint and computational cost of AI models by representing their weights and activations with lower precision numbers.

Technical Definition

A technique to reduce the memory footprint and computational cost of AI models by representing their weights and activations with lower precision numbers.

How it works

Model quantization converts floating-point numbers (e.g., 32-bit) used in model parameters to lower-bit integer representations (e.g., 8-bit or 4-bit). This significantly reduces memory usage and speeds up inference, especially on edge devices or in resource-constrained environments. While it can introduce a slight loss in accuracy, carefully applied quantization often delivers substantial performance gains with minimal quality degradation.

Related Concepts

  • Edge AI — Running AI models directly on user devices instead of cloud servers.
  • On-device AI — AI models that run directly on edge devices (e.g., smartphones, IoT) rather than relying on cloud servers for inference.