Inference Engineering

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

  1. 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.

    Apache-2.0 · 4k stars · Updated 2026-11

  2. 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.

    Apache-2.0 · 5.7k stars · Updated 2026-11

  3. 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.

    MIT · 8.5k stars · Updated 2026-11

  4. 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.

    Apache-2.0 · 1.3k stars · Updated 2026-11

  5. AutoRound Library

    Intel's sign-gradient rounding method for low-bit post-training quantization, exporting GPTQ and AWQ layouts, GGUF, MXFP4, and NVFP4 checkpoints.

    Apache-2.0 · 1.7k stars · Updated 2026-11

  6. 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.

    MIT · 190 stars · Updated 2026-11

  7. 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.

    maintenance · BSD-3-Clause · 3k stars · Updated 2026-11

  8. 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.

    maintenance · Apache-2.0 · 964 stars · Updated 2026-11

  9. 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.

    ICLR 2023 · Code

  10. SmoothQuant Paper

    Moves activation outliers into the weights with a per-channel scale so both can be quantized to INT8 (W8A8) without retraining.

    ICML 2023 · Code

  11. AWQ Paper

    Rescales the weight channels that matter most, chosen from activation magnitudes, before 4-bit weight-only quantization; MLSys 2024 Best Paper.

    MLSys 2024 · Code

  12. QuaRot Paper

    Hadamard rotations that remove outliers without changing model outputs, so weights, activations, and KV cache can all run in 4 bits.

    NeurIPS 2024 · Code

  13. SpinQuant Paper

    Learns the rotation matrices applied before quantization instead of fixing them, improving W4A4KV4 accuracy over random Hadamard rotations.

    ICLR 2025 · Code

  14. 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.

    MLSys 2025 · Code

V.2 Number Formats & Specs 6

  1. 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.

  2. 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.

  3. 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.

  4. 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.

    arXiv 2022

  5. GGUF Quantization Types Docs

    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.

  6. 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.

    MIT · 42k stars · Updated 2026-07

V.3 Pruning, Sparsity & Distillation 6

  1. 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.

    ICML 2023 · Code

  2. 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.

    ICLR 2024 · Code

  3. Minitron Paper

    NVIDIA recipe that prunes depth, width, attention heads, and MLP channels, then recovers accuracy with distillation; now part of Model Optimizer.

    NeurIPS 2024 · Code

  4. 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.

    arXiv 2021 · Code

  5. 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.

    ICML 2023 · Code

  6. 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.

    NIPS Deep Learning Workshop 2014