Files
agentic-kvc/third_party/vllm/docs/features/quantization/llm_compressor.md
Gahow Wang 445e491123 Add vLLM v0.18.1 source tree with KV transfer abort fix
third_party/vllm/ now tracked in git for direct patch management.
Based on vLLM v0.18.1 release with one patch applied:

  vllm/v1/core/sched/scheduler.py:
    Replace fatal assert with graceful skip when KV transfer callback
    arrives for an already-aborted request during PD disaggregated serving.

Future vLLM modifications should be made directly in third_party/vllm/
and committed normally. The patches/ directory is kept as documentation
of what changed from upstream.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-22 00:30:38 +08:00

1.9 KiB

LLM Compressor

LLM Compressor is a library for optimizing models for deployment with vLLM. It provides a comprehensive set of quantization algorithms, including support for techniques such as FP4, FP8, INT8, and INT4 quantization.

Why use LLM Compressor?

Modern LLMs often contain billions of parameters stored in 16-bit or 32-bit floating point, requiring substantial GPU memory and limiting deployment options. Quantization lowers memory requirements while maintaining inference output quality by reducing the precision of model weights and activations to smaller data types.

LLM Compressor provides the following benefits:

  • Reduced memory footprint: Run larger models on smaller GPUs.
  • Lower inference costs: Serve more concurrent users per GPU, directly reducing the cost per query in production deployments.
  • Faster inference: Smaller data types mean less memory bandwidth consumed, which often translates to higher throughput, especially for memory-bound workloads.

LLM Compressor handles the complexity of quantization, calibration, and format conversion, producing models ready for immediate use with vLLM.

Key features

  • Multiple Quantization Algorithms: Support for AWQ, GPTQ, AutoRound, and Round-to-Nearest. Also includes support for QuIP and SpinQuant-style transforms as well as KV cache and attention quantization.
  • Multiple Quantization Methods: Support for FP8, INT8, INT4, NVFP4, MXFP4, and mixed-precision quantization
  • One-Shot Quantization: Quantize models quickly with minimal calibration data
  • vLLM Integration: Seamlessly deploy quantized models with vLLM using the compressed-tensors format
  • Hugging Face Compatibility: Works with models from the Hugging Face Hub

Resources