Home Knowledge Base Model Quantization

Model Quantization is the compression technique that reduces neural network weight and activation precision from 32-bit or 16-bit floating point to lower bit-widths (INT8, INT4, FP8, even 1-2 bits) — shrinking model size by 2-8×, reducing memory bandwidth requirements proportionally, and enabling faster inference on hardware with specialized low-precision compute units, making it essential for deploying large language models on consumer GPUs and edge devices.

Quantization Fundamentals

Quantization maps continuous float values to discrete integer levels: x_q = round(x / scale) + zero_point, where scale = (max-min)/(2^b-1) for b-bit quantization. Dequantization recovers an approximation: x ≈ (x_q - zero_point) × scale. The quantization error depends on bit-width and the distribution of values.

Post-Training Quantization (PTQ)

Quantize a pre-trained model without retraining:

LLM Quantization Methods

Quantization-Aware Training (QAT)

Simulate quantization during training using straight-through estimators for gradient computation. The model learns to be robust to quantization effects. Higher quality than PTQ at the same bit-width but requires full training infrastructure. Used for INT4 and lower where PTQ quality degrades significantly.

Extreme Quantization (1-2 bits)

Model Quantization is the compression technology that makes large AI models deployable — the mathematical mapping from high-precision to low-precision that trades a controlled amount of accuracy for dramatic reductions in memory, bandwidth, and compute, enabling the gap between model capability and hardware availability to be bridged economically.

model quantization inferenceint8 int4 quantizationgptq awq quantizationweight quantization llmpost training quantization

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.