V. Model Compression
Making models smaller and cheaper to run: quantization toolkits, low-precision number formats, pruning, sparsity, and distillation.
26 entries · 3 subsections
Editor’s pick
V.1 Quantization Toolkits 14
LLM Compressor Library
Applies GPTQ, AWQ, SmoothQuant, and FP8 or NVFP4 recipes to Hugging Face models and saves compressed-tensors checkpoints that vLLM loads directly.
NVIDIA Model Optimizer Library
Formerly TensorRT Model Optimizer; FP8, NVFP4, and INT4 quantization plus pruning and distillation, exporting checkpoints to TensorRT-LLM, vLLM, and SGLang.
bitsandbytes Library
Reference code for LLM.int8() outlier-aware 8-bit matmul and the NF4 4-bit format from QLoRA, applied at load time in Transformers without calibration.
GPTQModel Library
Toolkit centered on GPTQ that also produces AWQ, GGUF, FP8, and EXL3 checkpoints, with kernels for NVIDIA, AMD, Intel, Ascend, and Apple hardware.
AutoRound Library
Intel's sign-gradient rounding method for low-bit post-training quantization, exporting GPTQ and AWQ layouts, GGUF, MXFP4, and NVFP4 checkpoints.
AMD Quark Library
AMD's quantization and pruning toolkit for PyTorch and ONNX models, with OCP FP8 and MX data types and FP8 KV-cache quantization.
TorchAO Library
PyTorch-native int4, int8, float8, and MX quantization and QAT used by Transformers and Diffusers; new feature work is moving into PyTorch core.
HQQ Library
Calibration-free half-quadratic weight quantization from 8 down to 1 bit, with a linear dequantization step that works with torch.compile and fused kernels.
GPTQ Paper
One-shot 3- and 4-bit weight quantization that uses approximate second-order information to correct error layer by layer, with no retraining.
SmoothQuant Paper
Moves activation outliers into the weights with a per-channel scale so both can be quantized to INT8 (W8A8) without retraining.
AWQ Paper
Rescales the weight channels that matter most, chosen from activation magnitudes, before 4-bit weight-only quantization; MLSys 2024 Best Paper.
QuaRot Paper
Hadamard rotations that remove outliers without changing model outputs, so weights, activations, and KV cache can all run in 4 bits.
SpinQuant Paper
Learns the rotation matrices applied before quantization instead of fixing them, improving W4A4KV4 accuracy over random Hadamard rotations.
QServe Paper
W4A8KV4 quantization co-designed with GPU kernels so that 4-bit weights and KV cache speed up large-batch serving, not only single-user decode.
V.2 Number Formats & Specs 6
OCP MicroXcaling (MX) Specification Spec
Block formats in which 32 FP8, FP6, FP4, or INT8 elements share one power-of-two UE8M0 scale, defining MXFP8, MXFP6, MXFP4, and MXINT8.
OCP 8-bit Floating Point Specification (OFP8) Spec
Cross-vendor standard for the E4M3 and E5M2 FP8 encodings, covering special values, saturation, and conversion rules; revision 1.1 took effect in 2026.
Introducing NVFP4 for Efficient and Accurate Low-Precision Inference Article
Defines NVFP4, Blackwell's E2M1 format with an FP8 E4M3 scale per 16 values plus a per-tensor FP32 scale, and contrasts it with MXFP4.
FP8 Formats for Deep Learning Paper
Joint NVIDIA, Arm, and Intel proposal of the E4M3 and E5M2 encodings later standardized by OCP, with training and inference accuracy results.
Reference table of llama.cpp block formats, from legacy Q4_0 to k-quants, i-quants, ternary TQ, and MXFP4, with block layout and bits per weight.
BitNet b1.58 and bitnet.cpp Tool
Ternary (1.58-bit) weights trained from scratch, with bitnet.cpp lookup-table kernels for running such models on CPUs and GPUs.
V.3 Pruning, Sparsity & Distillation 6
SparseGPT Paper
One-shot pruning of GPT-scale models to 50% unstructured or 2:4 sparsity by solving a layer-wise reconstruction problem, without retraining.
Wanda Paper
Prunes by weight magnitude times input activation norm, with no weight updates or second-order solves, for both unstructured and N:M sparsity.
Minitron Paper
NVIDIA recipe that prunes depth, width, attention heads, and MLP channels, then recovers accuracy with distillation; now part of Model Optimizer.
Accelerating Sparse Deep Neural Networks (2:4 sparsity) Paper
NVIDIA's account of 2:4 structured sparsity on Sparse Tensor Cores and the prune-then-retrain workflow that keeps dense accuracy.
Deja Vu Paper
Predicts which attention heads and MLP neurons each input needs and skips the rest at decode time, the contextual-sparsity idea behind later engines.
Distilling the Knowledge in a Neural Network Paper
Introduced training a small student on a large teacher's temperature-softened output distribution, the basis of most model distillation.