Quantization reduces the numerical precision of a model’s weights to shrink memory usage and speed up inference. By converting high-precision numbers to lower-precision formats, it enables large language models to run on less hardware while preserving most output quality.
Also called: model quantization, weight quantization, LLM quantization
What quantization is
When a large language model generates text through autoregressive decoding, it reads billions of numerical weights stored in memory for every single token it produces. By default, those weights use high-precision formats like 32-bit or 16-bit floating point numbers. Quantization solves a straightforward problem: those numbers take up too much space and slow down inference.
Think of it like compressing a high-resolution photo. The original image uses millions of colors, but you can reduce it to thousands and most people won’t notice the difference. Quantization does something similar with model weights — it rounds precise decimal numbers to coarser representations (like converting 16-bit floats to 4-bit integers), dramatically reducing the memory each weight consumes.
The reason this matters during inference specifically is that autoregressive generation is memory-bound. Each token the model generates requires a full pass through the weight matrices, and during a conversation with hundreds of output tokens, those passes add up fast. The model must load its entire weight matrix into GPU memory and access those weights repeatedly. If the weights are four times smaller, the model needs a fraction of the original memory and can move data through the hardware faster. This translates directly into faster time-to-first-token (the delay before a user sees the first word of a response) and higher throughput when serving users.
Several methods compete to deliver the best quality-to-compression tradeoff. According to Cast AI, AWQ (Activation-Aware Weight Quantization) works by identifying roughly one percent of weight channels that matter most — determined by looking at activation patterns — and protecting those channels during compression. GPTQ takes a different approach: it uses Hessian-based optimization (a mathematical technique that measures how sensitive each weight is to changes) to minimize the output error introduced at each layer during quantization. GGUF is a file format designed for running quantized models on CPUs, popular with local inference tools. According to PremAI Blog, all major quantization methods land within approximately six percent of the original model’s perplexity score (a standard measure of prediction quality — lower is better), meaning the quality loss is measurable but often acceptable for production use.
Fewer bits barely move the average, but the loss lands unevenly, so test your own task. · More AI cheat sheets
INT4/INT8 weights stay close to lossless down to about 4 bits; push lower and accuracy drops unevenly, hitting reasoning-heavy tasks and non-English languages first.
Format choice is really a hardware decision — AWQ targets GPU serving, GGUF targets CPU and edge through llama.cpp, and the older AutoAWQ/AutoGPTQ tooling is now deprecated in favor of llm-compressor and GPTQModel.
2026 quantization has split into three competing tiers — post-training compression, hardware-native FP8, and native 1-bit training — and each one optimizes a different cost curve, not the same one at different settings.
Compressed access is not evenly distributed: the models shrunk hardest tend to reach the users with the least leverage to demand a better copy.
How quantization is used in practice
The most common place you’ll encounter quantization is when downloading or deploying an open-weight model. Model repositories typically offer multiple quantized variants — a 4-bit AWQ version, a GPTQ version, a GGUF version for CPU — alongside the original full-precision weights. If you’re running a model locally on a laptop or deploying on a single GPU, you’re almost certainly using a quantized version. Inference engines like vLLM, TensorRT-LLM, and SGLang all support quantized models out of the box.
For teams serving models in production, quantization is one of the first optimizations applied because it compounds with other inference techniques. A quantized model combined with continuous batching and paged attention can serve far more concurrent users on the same hardware compared to full-precision weights alone.
Start with a 4-bit AWQ quantized version of your target model and benchmark it against your actual evaluation criteria — not just perplexity. For many tasks (summarization, classification, chat), the quality difference is undetectable, and you’ll cut your GPU memory requirements substantially.
Quantization's average is not your task's average.
Where quantization gets confused with its neighbours
A quantization format is also a serving-engine decision, which the memory-savings pitch skips. A model quantized to GGUF serves through llama.cpp; pointing the same checkpoint at vLLM’s continuous batching engine simply does not work — it is a different runtime. Picking a format because it saves the most memory, then discovering it cannot reach your batching stack, is the deployment mistake practitioners hit most.
A quantized model producing bad output and a badly sampled one look identical from the outside, but the fix is different. Quantization degrades the weights, so the same distortion shows up on every request regardless of settings. Temperature and sampling changes which token gets picked from an otherwise-unchanged distribution, so its effect varies request to request even on identical weights. If the same prompt fails the same way every time, suspect the compression; if it fails differently on every run, suspect the sampling configuration.
Quantizing a model and training it natively in low precision are not the same step. Everything above compresses a model that was already trained at high precision — post-training quantization, applied once before deployment. FP8-native training and BitNet skip that step: the model trains in low precision from the start, so there is no higher-precision version to lose in the first place.
When quantization fits — and when it doesn't
Scenario
Use
Avoid
Deploying an open-weight model on limited GPU memory
✅
Running a model locally on a consumer laptop
✅
Serving high-traffic inference with tight latency budgets
✅
Fine-tuning a model where gradient precision matters
❌
Tasks requiring maximum numerical accuracy (complex math, formal logic)
❌
Prototyping with an API-based model (already optimized by the provider)
❌
Common questions about quantization
Q: Does quantizing a model always make it faster, not just smaller?
A: Usually, but not guaranteed — lower precision cuts memory traffic, which is often the real bottleneck, so decoding speeds up alongside the footprint. How FP32-to-INT4 compression works explains why memory traffic, not raw arithmetic, is what most quantized models are trading against.
Q: Why do quantization tutorials from 2024 keep failing when I follow them today?
A: Because the tooling underneath them changed — AutoAWQ and AutoGPTQ are deprecated, replaced by llm-compressor and GPTQModel, so an old walkthrough often points at packages that no longer install cleanly. The deployment guide flags the current toolchain.
Q: How do I know if my use case can tolerate sub-4-bit quantization?
A: Test the specific task, not the average — accuracy degrades unevenly per task and language, so a model that holds up in chat can still collapse on structured reasoning or lower-resource languages at the same bit-width. The sub-4-bit limits research documents which task types go first.
Q: If I’m starting a new deployment today, should I wait for BitNet-style native low-precision models instead of quantizing?
A: Not yet, for most teams — native low-precision models are still narrow in ecosystem support and model choice, while post-training quantization works on almost anything already trained. The 1-bit frontier read tracks whether that gap closes.
Q: Who actually loses out when a lab ships a quantized model instead of the full-precision one?
A: Not an evenly distributed cost — the users routed to the compressed copy are usually the ones with the least leverage to demand the better one, and the degradation is easy to miss without dedicated evaluation. The hidden costs of quantized AI traces who bears it.
Quantization trades numerical precision for efficiency, but the relationship between bit-width and model capability is far from linear. These explainers unpack where the math breaks and why some tasks degrade before others.
Quantization compresses LLM weights from FP32 to INT4, cutting memory up to 8x. Learn how GPTQ, AWQ, and calibration methods preserve accuracy on consumer GPUs.
Sub-4-bit quantization promises smaller LLMs, but accuracy collapses unevenly across tasks and languages. Learn where the real degradation thresholds are.
GPTQ, AWQ, GGUF, and bitsandbytes each shrink LLM weights differently. Compare speed, accuracy, and hardware reach to find the right format for your inference stack.
2
Build with Quantization
Deploying a quantized model means choosing between competing formats, calibration strategies, and hardware targets. These guides walk through real deployment pipelines and the engineering tradeoffs at each decision point.
Quantization has split into three tiers — native 1-bit, hardware FP8/FP4, and post-training compression. See which bet reshapes inference economics in 2026.
4
Risks and Considerations
Aggressive compression can silently degrade performance on underrepresented languages, safety-critical tasks, and nuanced reasoning. These pieces examine who bears the cost when models get smaller.
Quantization makes AI accessible but the quality loss isn't evenly distributed. Explore who benefits from compressed models and who pays the hidden cost.