microsoft/VPTQ

VPTQ, A Flexible and Extreme low-bit quantization algorithm

What it solves

VPTQ addresses the challenge of compressing Large Language Models (LLMs) to extremely low bit-widths (under 2 bits) without requiring retraining, while maintaining high accuracy and minimizing inference overhead.

How it works

It utilizes a novel Post-Training Quantization (PTQ) method based on Vector Quantization. This approach allows the compression of massive models (such as Llama-3.1 405B) to 1-2 bits. The process is designed to be lightweight, taking approximately 17 hours to quantize a 405B parameter model.

Who it’s for

AI developers and researchers who need to deploy massive LLMs on hardware with limited memory (e.g., running a 70B model on a single RTX 4090) and those looking for high-throughput inference with low decode overhead.

Highlights

  • Extreme Compression: Supports compression to less than 2 bits for models up to 405B parameters.
  • High Efficiency: Lightweight quantization algorithm and agile inference with optimized Time To First Token (TTFT) and throughput.
  • Broad Integration: Integrated into the Hugging Face Transformers library.
  • Wide Model Support: Compatible with various model families including Llama 3.1/3.3, DeepSeek R1, Mistral, and Qwen.

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project