# What is LLM Compressor? **LLM Compressor** is an easy-to-use library for optimizing large language models for deployment with vLLM. It provides a comprehensive toolkit for applying state-of-the-art compression algorithms to reduce model size, lower hardware requirements, and improve inference performance.

LLM Compressor Flow

## Which challenges does LLM Compressor address? Model optimization through quantization and pruning addresses the key challenges of deploying AI at scale: | Challenge | How LLM Compressor helps | |-----------|--------------------------| | GPU and infrastructure costs | Reduces memory requirements by 50-75%, enabling deployment on fewer GPUs | | Response latency | Reduces data movement overhead because quantized weights load faster | | Request throughput | Utilizes lower-precision tensor cores for faster computation | | Energy consumption | Smaller models consume less power during inference | For more information, see [Why use LLM Compressor?](./steps/why-llmcompressor.md) ## New in this release Review the [LLM Compressor v0.14.0 release notes](https://github.com/vllm-project/llm-compressor/releases/tag/0.14.0) for details about new features. New features to be aware of include: - **GPTQ Performance Improvements**: The new GPTQ Triton kernel provides an approximately 15x end-to-end speedup on Llama-3-8B. The new batching functionality (useful for MoE models) provides a further approximately 2x end-to-end speedup (approximately 30x total) on Qwen3-30B-A3B. - **New NVFP4 Observers**: The `nvfp4_expanded_mse` and `nvfp4_expanded_imatrix` observers utilize key insights from [Four Over Six](https://arxiv.org/abs/2512.02010) to improve accuracy for NVFP4 and NVFP4A16 quantization. - **MSE Performance Improvements**: The MSE observer now has a Triton kernel, improving grid-search speed by 10x, including for the new `nvfp4_expanded_mse` observer. - **REAP DDP**: REAP expert pruning now supports distributed (DDP) runs, with saliency statistics reduced across ranks before computation on rank 0, along with an optional e-score correction bias. - **Model-Free PTQ**: Replaced static round-robin GPU assignment with a dynamic, memory-aware scheduler; added mixed-precision and KV-cache quantization support. - **Expanded MoE Machinery**: Added `patch_moe_mappings()` for overriding 2D load mappings per checkpoint, `repack_moe()` for restoring native fused 3D expert modules after linearization, faster loading for `nemotron_h` (Nemotron 3 Ultra), and GPT-OSS expert linearization. ## Supported algorithms and techniques | Algorithm | Description | Use Case | |-----------|-------------|----------| | **RTN** (Round-to-Nearest) | Fast baseline quantization | Quick compression with minimal setup | | **GPTQ** | Weighted quantization with calibration | High-accuracy 4 and 8 bit weight quantization | | **AWQ** | Activation-aware weight quantization | Preserves accuracy for important weights | | **SmoothQuant** | Outlier handling for W8A8 | Improved activation quantization | | **SpinQuant** | Rotation-based transforms | Improved low-bit accuracy | | **QuIP** | Incoherence processing | Advanced quantization preprocessing | | **REAP** | Router-weighted expert activation pruning | Reduce the memory footprint of MoE models by removing low-saliency experts | | **FP8 KV Cache** | KV cache quantization | Long context inference on Hopper-class and newer GPUs | | **AutoRound** | Optimizes rounding and clipping ranges via sign-gradient descent | Broad compatibility | Trying something that is not listed here, such as a new algorithm or an unusual combination of techniques? The [Open Research Hub](./research/index.md) collects community field reports on exactly that, and it accepts submissions by pull request. ## Supported quantization schemes LLM Compressor supports applying multiple formats in a given model. | Format | Targets | Compute Capability | Use Case | |--------|---------|-------------------|----------| | **W4A16/W8A16** | Weights | 7.5 (Turing and up) | Optimize for latency on older hardware | | **W8A8-INT8** | Weights and activations | 7.5 (Turing and up) | Balanced performance and compatibility | | **W8A8-FP8** | Weights and activations | 8.9 (Ada Lovelace and up) | High throughput on modern GPUs | | **MXFP8** | Weights and activations | 10.0 (Blackwell) | Microscale FP8 | | **NVFP4/MXFP4** | Weights and activations | 10.0 (Blackwell) | Maximum compression on latest hardware | | **NVFP4A16/MXFP4A16/MXFP8A16** | Weights | 7.5 (Turing and up) | Weight-only microscale compression | | **W4AFP8** | Weights and activations | 9.0 (Hopper and up) | Low-bit weights with dynamic FP8 activations | | **W4AINT8** | Weights and activations | — (Arm CPU) | Low-bit weights with dynamic INT8 activations | !!! warning Sparse compression (including 2of4 sparsity) is no longer supported by LLM Compressor due to lack of hardware support and user interest. Please see https://github.com/vllm-project/vllm/pull/36799 for more information.