Weights · 11 min read · Updated 2026-07-24
Quantization without the shorthand
How lower-precision representations use scales and groups, why 4-bit formats differ, and what quality claims require.
Key idea
Bit width is only one property of a quantization; method, granularity, calibration, tensor exceptions, and runtime kernels also matter.
Quantization changes representation
Neural-network weights are usually trained in floating-point formats with more precision than many inference workloads require. Quantization maps those values into a smaller representable set and stores enough scaling information to approximately reconstruct useful computation.
A simple memory estimate multiplies parameter count by bits per parameter. Real artifacts add scales, zero points, metadata, padding, higher-precision tensors, and sometimes runtime-specific layouts. The bit label is therefore a starting point, not an exact file-size contract.
A block-scaled 4-bit floating-point representation designed for supported NVIDIA hardware.
This is a weight-capacity estimate, not a runnable guarantee. KV cache, context, batching, temporary buffers, higher-precision tensors, and runtime behavior require additional memory. The estimate includes block scales but not higher-precision exceptions or runtime state.
Scales, groups, and granularity
A quantizer needs a mapping between original values and the lower-precision grid. One scale for an entire tensor is cheap but can lose detail when value ranges differ. Per-channel or per-group scaling uses more metadata to adapt the mapping locally.
Smaller groups can reduce quantization error but increase scale overhead and kernel complexity. Symmetric and asymmetric mappings also differ: asymmetric methods may store a zero point in addition to a scale.
INT4, AWQ, GPTQ, and GGUF are not synonyms
INT4 describes a numerical payload class. AWQ and GPTQ describe quantization approaches and checkpoint conventions. GGUF is a container format used by llama.cpp ecosystems and can hold many quantization types, including several 4-bit layouts.
A runtime that supports one 4-bit path does not automatically support every other path. The tensor packing and kernels must match. This is why repository format, quantization method, and runtime support should be recorded separately.
Post-training and quantization-aware paths
Post-training quantization starts from an already trained checkpoint. Some methods only inspect weights; others use calibration data to observe activations or optimize reconstruction. It is the most common path for provider-published inference artifacts.
Quantization-aware training simulates quantization during training so the model can adapt. It requires more work but can improve low-bit behavior. A repository should state which path produced the artifact because the same nominal bit width can have different results.
How to evaluate a quantized artifact
Do not assume a fixed quality loss for a bit width. Measure the actual artifact against its reference checkpoint using the same prompts, chat template, decoding settings, and evaluation harness. Report missing measurements as missing rather than inferring a universal delta.
Perplexity can reveal distribution changes, but downstream benchmarks and workload-specific tests remain important. Runtime stability and speed are also separate outcomes: a quality-preserving artifact is not useful if its execution path is unsupported or slower on the target hardware.