Papers · GPTQ
AI PAPER

GPTQ: Accurate Post-Training Quantization for Generative Pre-Trained Transformers

Developed a one-shot quantization method that compresses large language models to 3-4 bits per weight with minimal accuracy loss, enabling inference of 175B models on a single GPU.

Authors
Elias Frantar, Saleh Ashkboos, Torsten Hoefler +1
Institution
IST Austria
Published
October NaN, 2022
Citations
1,500
Category
Efficiency
Impact
notable
PAPER EXPLAINED

Plain-English Summary

Large language models use 16 or 32 bits to represent each weight, which means a 175B parameter model requires 350GB+ of memory. GPTQ compresses weights to 3-4 bits each — roughly a 4-5x reduction — while maintaining nearly the same output quality. This compression enables running models that previously required a data center on consumer hardware. A 70B parameter model that needs 140GB at 16-bit fits in 35GB at 4-bit.

The method requires only a small calibration dataset and a few hours of computation to quantize a model, with no retraining needed. The quantized model can then be served at dramatically lower cost.

Key Innovation

GPTQ uses second-order information (the Hessian matrix of the layer-wise loss) to determine how to round each weight with minimal accuracy impact. Rather than naively rounding each weight to the nearest quantized value, it considers the correlations between weights and compensates for rounding errors in subsequent weights. This optimal rounding order and error compensation produces much better results than simple rounding.

The one-shot nature (no retraining required) makes GPTQ practical for the community. Anyone can quantize a newly released model within hours.

Impact on the Field

GPTQ democratized large language model inference. Before quantization methods like GPTQ, running large models required expensive multi-GPU setups. After GPTQ, enthusiasts could run 70B models on consumer hardware. This enabled the local LLM movement and made AI accessible to people without cloud computing budgets.

TheBloke (a prominent community member) quantized hundreds of models using GPTQ, making quantized versions available on Hugging Face within hours of new model releases. This became essential infrastructure for the open-source AI community.

Models That Built on This

GPTQ quantization became the standard for running large models locally. The technique is integrated into Hugging Face Transformers, vLLM, and other serving frameworks. The LLaMA.cpp ecosystem (using GGML/GGUF format) applies similar principles for CPU inference. Virtually every popular open-weight model has GPTQ-quantized variants available on Hugging Face within days of release.