GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
Summary
Generative Pre-trained Transformer models, known as GPT or OPT, set themselves apart through breakthrough performance across complex language modelling tasks, but also by their extremely high computational and storage costs. Specifically, due to their massive size, even inference for large, highly-accurate GPT models m…
- Venue
- arXiv 2210.17323
- Publisher
- arXiv 2210.17323
- Source
- arxiv
- Access
- open arXiv PDF/abs
- Purpose
- GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
- Domain
- quantization / efficiency
- Used for
- LLM research reference
- Time period
- arXiv 2022/10/31; Discord LinkedIn mid harvested 2026-09-15
- Author type
- academic/industry (see abs)
- Added
- Sep 15, 2026
- Verified
- Sep 15, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Oct 31, 2022
- Last revised
- Mar 22, 2023
- arXiv categories
- cs.LG
- Author comment
- ICLR 2023
- Citations
- 2,668 (433 influential)
- References
- 37
Abstract (from arXiv)
Generative Pre-trained Transformer models, known as GPT or OPT, set themselves apart through breakthrough performance across complex language modelling tasks, but also by their extremely high computational and storage costs. Specifically, due to their massive size, even inference for large, highly-accurate GPT models may require multiple performant GPUs, which limits the usability of such models. While there is emerging work on relieving this pressure via model compression, the applicability and performance of existing compression techniques is limited by the scale and complexity of GPT models. In this paper, we address this challenge, and propose GPTQ, a new one-shot weight quantization method based on approximate second-order information, that is both highly-accurate and highly-efficient. Specifically, GPTQ can quantize GPT models with 175 billion parameters in approximately four GPU hours, reducing the bitwidth down to 3 or 4 bits per weight, with negligible accuracy degradation relative to the uncompressed baseline. Our method more than doubles the compression gains relative to previously-proposed one-shot quantization methods, preserving accuracy, allowing us for the first time to execute an 175 billion-parameter model inside a single GPU for generative inference. Moreover, we also show that our method can still provide reasonable accuracy in the extreme quantization regime, in which weights are quantized to 2-bit or even ternary quantization levels. We show experimentally that these improvements can be leveraged for end-to-end inference speedups over FP16, of around 3.25x when using high-end GPUs (NVIDIA A100) and 4.5x when using more cost-effective ones (NVIDIA A6000). The implementation is available at https://github.com/IST-DASLab/gptq.
Tags
Topics
quantization / efficiency
Research notes
- From LinkedIn thread (Discord mid 1344124864310804521). Primary: https://www.linkedin.com/posts/thom-wolf_after-6-months-in-the-making-and-burning-activity-7298040352278470656-wMrq?utm_source=share&utm_medium=member_desktop.
Cited by, within this collection
- AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration
- Bi-Mamba: Towards Accurate 1-Bit State Space Models
- Optimizing Large Language Model Training Using FP4 Quantization
- Automated Tensor Scheduling for Hybrid CPU-GPU LLM Inference on Consumer Devices
- Disaggregated Quantization: Specializing LLM Prefill and Decode
- Matryoshka Quantization
- Not All Bits Are Equal: Scale-Dependent Memory Optimization Strategies for Reasoning Models
- FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference
Similar entries
- Paper DC-Gen: Post-Training Diffusion Acceleration with Deeply Compressed Latent Space
- Paper Pretraining Large Language Models with NVFP4
- Paper Hunyuan-Large: An Open-Source MoE Model with 52 Billion Activated Parameters by Tencent
- Paper DeepSeek-OCR: Contexts Optical Compression
- Paper TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training
- Paper Chasing the Tail: Effective Rubric-based Reward Modeling for Large Language Model Post-Training