vllm-project/llm-compressor

State-of-the-art LLM compression, built for production inference with vLLM

What it solves

LLM Compressor reduces the memory footprint and increases the inference speed of large language models. It allows you to shrink massive models so they run more efficiently on hardware while maintaining performance, specifically preparing them for deployment with the vLLM engine.

How it works

It uses a variety of mathematical techniques—such as quantization (reducing the precision of numbers) and expert pruning—to compress model weights, activations, and KV caches. You define a "recipe" that specifies which parts of the model to compress and which algorithms to use. The library then applies these changes and saves the model in the compressed-tensors format, which is natively supported by vLLM for high-performance execution.

Who it’s for

This library is designed for developers and researchers who need to deploy large models in production environments where VRAM or compute resources are constrained. It is particularly useful for those already using or planning to use vLLM for model serving.

Highlights

  • Supports a wide range of quantization types, including FP8, INT4, and advanced mixed-precision formats like MXFP4 and NVFP4.
  • Includes specialized algorithms like HIGGS for mixed-precision selection and MoNe for expert pruning in Mixture-of-Experts (MoE) models.
  • Offers seamless integration with Hugging Face models and repositories.
  • Enables efficient handling of massive models through disk offloading and sequential layer-wise processing.
  • Provides built-in support for quantizing attention mechanisms and KV caches to further boost inference speed.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch