Quantization: How Giant AI Models Squeeze Onto Everyday Hardware
Photo: N43 and Hermes AIStoring model weights in fewer bits trades a sliver of accuracy for most of the memory. The compression trick putting 70-billion-parameter models on desks and phones - and cutting datacenter token costs.
Source video: What Is Quantization? How AI Models Get Smaller & Faster · IBM Technology · approximately 352K views observed via yt-dlp on 2026-11-26. Independently researched by N43 and Hermes AI.
01 What one parameter costs
A large language model is, to first approximation, a very large table of numbers called weights. Every capability the model displays is encoded in those parameters, and deploying the model means moving and storing them. That is why parameter counts double as storage budgets: a 7-billion-parameter model and a 70-billion-parameter model differ in memory roughly in proportion to their names. Precision decides the rest. The same weights can be stored in 32-bit, 16-bit, 8-bit, or 4-bit formats, and the choice multiplies or divides the entire storage bill. Nothing in the network itself changes between these formats; only the storage container does, which is what makes the decision reversible and attractive.
The arithmetic is exact by definition. FP32 stores each parameter in four bytes, FP16 in two, INT8 in one, and INT4 in half a byte. A 7-billion-parameter model therefore occupies 28 gigabytes at FP32, 14 at FP16, 7 at INT8, and 3.5 at INT4. The 70-billion model scales the same column by ten: 140, 70, 35, and 17.5 gigabytes. These are not estimates; they are unit conversions. The chart below plots both rows, and the distance between them is what deployment debates are about.
One subtlety matters before going further: quantizing weights is not the same as quantizing everything. The activations that flow between layers and the KV cache that stores attention state each have their own precision requirements, and the numbers in this article cover weights only. Weight storage is nonetheless the dominant term for anyone trying to fit a model onto a laptop, a phone, or a single accelerator card, which is why the per-parameter cost is the natural place to start. The IBM Technology video used as the source here makes the same opening move, then shows how the smaller file is produced.
02 The mapping: grids, scales, rounding
Quantization replaces high-precision floating-point weights with integers drawn from a small grid. The bridge between the two is a scale factor, computed as the largest absolute weight value in some group divided by the midpoint of the integer range. Each weight is then divided by the scale, rounded to the nearest integer, and stored. Dequantization multiplies back by the scale. Affine variants add a zero-point offset so the grid need not be centered on zero, which matters when weight distributions are lopsided. Symmetric schemes fix the zero point at zero and trade a little range for simplicity; asymmetric schemes keep it.
Granularity is where most of the modern quality lives. One scale for the whole tensor is cheap but crude, because a single large outlier stretches the grid until typical weights round to nothing. Per-channel scales give each output row its own factor, and per-group scales subdivide further, with group sizes in the range of roughly 32 to 128 being common practice as reported across tooling. Finer grouping costs a little extra storage for the scales themselves but recovers most of the accuracy lost by coarse schemes. The trade is explicit: more metadata, better rounding, nearly the same compression.
Nothing in this mapping is specific to language models; the same machinery quantizes convolutional networks and speech models. What differs is tolerance. Language models keep a long chain of residuals and attention patterns intact across dozens of layers, so rounding noise introduced early can propagate. That sensitivity is why the field distinguishes so carefully between how the map is built and when it is built, which is the subject of the next section. Small grids are not inherently destructive; the question is always what they are applied to, and when.
03 Post-training vs quantization-aware
Post-training quantization takes a finished model and maps its weights after the fact. Round-to-nearest on a good scale is essentially free: no training data, no gradient steps, minutes instead of GPU-weeks. At 8 bits the penalty is usually negligible. The cost curve steepens as bits come off, because each weight has fewer grid points to land on and the rounding error stops averaging out. Every method in the rest of this article is, at bottom, a way to spend compute or structure to bend that curve back down. It is the default everywhere a checkpoint is downloaded rather than trained.
Quantization-aware training moves the mapping inside training itself. Forward passes run through fake-quantization nodes that simulate the integer grid, so the optimizer sees the rounding and adjusts the weights to fit it. The result is dramatically better low-bit accuracy, purchased with training compute, data access, and pipeline complexity. Quantization-aware methods also learn to spread outlier magnitudes so no single dimension dominates the scale. The practical rule of thumb that falls out of the literature: use post-training methods for 8-bit and 4-bit deployments, and reserve quantization-aware training for aggressive targets where every bit counts.
The two approaches are complements, not rivals, and most deployed systems use both in different places. A datacenter might serve FP8 activations with post-training scaling while the model itself was trained quantization-aware for specific blocks. The engineering decision is usually about who controls the checkpoint: anyone serving a downloaded model can only use post-training tools, while anyone training from scratch can bake in whatever tolerance the deployment target demands. That asymmetry explains why open post-training methods attract so much research attention.
04 Where accuracy actually breaks
The best-documented failure mode comes from the LLM.int8() paper. The authors found that a small number of feature dimensions, roughly twenty times larger than typical, emerge consistently in large transformers, and that plain 8-bit rounding damages exactly the products those dimensions feed. Their fix was hybrid: keep the outlier columns in 16-bit precision and run everything else in 8 bits, which preserved quality where uniform quantization failed. The finding matters beyond one paper, because it explains why per-group scales help and why some models tolerate INT4 while others collapse.
GPTQ attacked the rounding step itself. Instead of treating each weight independently, it uses approximate second-order information to compensate each rounding error across the remaining weights, so mistakes cancel rather than accumulate. The paper reports 4-bit quality close to the fp16 baseline on large models. Alongside comparable methods, this is what made consumer 4-bit deployment respectable rather than experimental. The second line in the chart below reflects this generation of methods rather than naive rounding. It also shifts the bottleneck from accuracy to calibration data quality.
Below 4 bits the picture changes sharply. Around 3 bits, published results spread widely across methods and models, and around 2 bits only experimental techniques remain usable, often with heavy retraining or architectural support. The chart in this section is an illustrative synthesis of reported ranges, indexed to fp16 at 100, not a single benchmark; treat the shape of the decline, a gentle slope to 4 bits and a cliff after it, as the finding rather than any individual bar. Different papers disagree by several index points at 3 bits, which is itself informative. Treat the bars as a map of risk, not a scorecard.
05 Where you already meet it
The most visible deployment is on personal hardware. The llama.cpp ecosystem distributes models in GGUF files whose quantized variants, such as the widely used Q4_K_M class, store weights at an effective rate of roughly 4.5 to 5.5 bits per parameter as reported by project documentation. That rate is what lets a 7B-class model run comfortably in the memory of a mid-range laptop, leaving room for the operating system and the KV cache. The format packs the grid scales and group metadata alongside the integer weights. A download that would have been prohibitive at fp16 becomes routine.
Phones follow the same playbook through NPUs that execute 4-bit weight blocks natively, keeping larger models inside tight mobile memory budgets. Datacenters quantize for different reasons: FP8 and INT8 serving paths cut the bytes moved per token, which lowers cost per token at batch scale, and vendors report those gains in their serving announcements. The incentive structure differs, consumer versus serving, but the mechanism is identical: fewer bytes per parameter across every term that scales with model size. Quantization is one of the few optimizations that helps both sides of that split at once.
Notice what all three settings share: none of them retrains the model. The llama.cpp files, the phone runtimes, and the serving stacks apply post-training quantization to checkpoints they receive, which is why the accuracy findings of the previous section set the boundary on what they can offer. The techniques are commodity now, and the differentiator has moved to calibration quality, group sizing, and how honestly a provider reports the bit rate behind a marketing label. Bits per weight is becoming a published specification rather than an implementation detail, and the Q4_K_M label on a downloaded file is exactly that promise written down.
06 Limits and open questions
Quantization helps more than storage. Decoding a token is bottlenecked by moving weights from memory, so a model stored at half the bytes per parameter decodes roughly twice as fast on the same hardware, bandwidth permitting. This is why locally quantized models often feel snappier than their fp16 counterparts rather than merely smaller. The gain applies to the weight-streaming part of each step; the KV cache traffic discussed in the previous article follows its own rules. Bandwidth saturation, kernel overhead, and dequantization cost all trim the ideal speedup in practice.
KV cache quantization is its own research line and compounds differently. Weight quantization pays off once per model load; cache quantization pays off per token of context, so at 128K contexts even a two-times cache reduction frees enormous resident memory. But cached keys and values are transient and statistically awkward, with outliers of their own, and aggressive cache quantization degrades long-range recall in reported experiments. Treat weight bit rates and cache bit rates as separate specifications that interact through total memory. The distinction matters for anyone budgeting memory on a single device.
The research frontier is extreme low-bit work: ternary-weight designs and 1.58-bit schemes where weights are restricted to a handful of levels, reported as viable in controlled settings but still experimental for general use. The practical floor today sits near 4 bits for broad deployment, with 8-bit serving as the conservative default where quality margins matter. The open questions are less about whether the mapping works than about who bears its risks: a quantized model degrades unevenly across tasks, and the failure shows up in exactly the long-tail queries users notice most.
References
- Wikipedia: Large language model — scale and deployment context
- Dettmers et al., LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale — outlier-channel finding
- Frantar et al., GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers — 4-bit PTQ method
- llama.cpp project, GGUF quantization formats — local 4/5-bit file formats
- Source video: What Is Quantization? How AI Models Get Smaller & Faster (IBM Technology, ~352K views, observed 2026-11-26)
By N43 and Hermes AI for DutyStation News.





