Quantization
Storing a model's weights at lower numeric precision to shrink memory and speed inference, at some cost to accuracy.
Quantization is the process of converting a model's weights — and sometimes its intermediate activations — from a higher-precision numeric format to a lower-precision one, typically from 16-bit or 32-bit floating point down to 8-bit or 4-bit integers, in order to shrink memory footprint and speed up inference. A model quantized from 16-bit to 4-bit roughly quarters its memory requirement, which is often the difference between needing a data-center GPU and running comfortably on a laptop or phone.
The tradeoff is precision loss: every weight is now represented by fewer possible values, so the model's outputs shift slightly from the full-precision original, and past some aggressiveness threshold that shift becomes measurable degradation in output quality. The engineering work in quantization methods (GPTQ, AWQ, GGUF's various quant levels) is mostly about minimizing that degradation for a given bit-width — which weights matter most to preserve precisely, how to calibrate the rounding to the actual distribution of values in the trained model, rather than rounding naively. Quantization-aware training goes further, incorporating the eventual quantization into the training process itself rather than applying it as a fully separate post-hoc step.
Quantization is largely orthogonal to Fine-Tuning — a model can be fine-tuned, then quantized, or quantized and then fine-tuned further with quantization-aware methods like QLoRA, which fine-tunes on top of a quantized base to keep the memory savings during training as well as inference. It's also the reason a locally-run open-weight model (an "Ollama model" running on someone's own GPU) is very often a quantized version of a larger release rather than the full-precision original — the full-precision weights are frequently too large to run outside a datacenter, and quantization is what makes local inference on consumer hardware feasible at all.
See also7
Temperature Sampling
A parameter that scales how sharply a model favors its most likely next token, trading determinism for variety.
Agents & Language Models8 connections
Large Language Model
A neural network trained to predict text, used as a general-purpose instruction-following system.
Agents & Language Models38 connections
Token Budget
The finite allowance of model usage a task may consume, and the design decisions it forces.
Agents & Language Models20 connections
Mixture of Experts
A model architecture that holds many parameter blocks but runs only a few per token, decoupling total size from per-token compute.
Agents & Language Models7 connections
KV Cache
The stored attention keys and values for every token already processed, which lets a model generate each new token without re-reading the whole sequence.
Agents & Language Models10 connections
Wake Word
A short phrase such as a voice assistant's name that a device listens for continuously using a tiny on-device model, waking the full speech system only when it hears it, which is how always-listening devices balance responsiveness, power and privacy.
Agents & Language Models6 connections
Regularization
Techniques that stop a model from memorizing its training data by penalizing complexity or injecting noise, trading a slightly worse fit for much better generalization.
Agents & Language Models4 connections
Linked from8
- Data CompressionComputation & Algorithms
Representing data in fewer bits by exploiting its patterns, either exactly (lossless) or by discarding what people won't notice (lossy), with limits set by information theory.
- Fine-TuningAgents & Language Models
Continuing to train an already-trained model on a narrower dataset to specialize its behavior, instead of prompting the base model.
- Graphics Processing UnitGraphics & Rendering
A processor built to run the same small program on thousands of data items at once, designed for pixels and now the engine of machine learning.
- KV CacheAgents & Language Models
The stored attention keys and values for every token already processed, which lets a model generate each new token without re-reading the whole sequence.
- Large Language ModelAgents & Language Models
A neural network trained to predict text, used as a general-purpose instruction-following system.
- Mixture of ExpertsAgents & Language Models
A model architecture that holds many parameter blocks but runs only a few per token, decoupling total size from per-token compute.
- RegularizationAgents & Language Models
Techniques that stop a model from memorizing its training data by penalizing complexity or injecting noise, trading a slightly worse fit for much better generalization.
- Wake WordAgents & Language Models
A short phrase such as a voice assistant's name that a device listens for continuously using a tiny on-device model, waking the full speech system only when it hears it, which is how always-listening devices balance responsiveness, power and privacy.