arXiv:2210.17323 · 23 repos reference this paper in their README
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.
nunchaku-tech/deepcompressor
802
·
·
Model Compression Toolbox for Large Language Models and Diffusion Models
cnygaard/glq
8
·
·
·
Lattice and trellis-coded quantization for LLM weights — 2–8 bpw, mixed-precision, fused CUDA…
zai-org/ChatGLM-6B
40,967
·
·
ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型
vectorch-ai/ScaleLLM
499
·
·
A high-performance inference system for large language models, designed for production environments.
mit-han-lab/llm-awq
3,633
·
·
[MLSys 2024 Best Paper Award] AWQ: Activation-aware Weight Quantization for LLM Compression and…
IST-DASLab/gptq
2,368
·
·
Code for the ICLR 2023 paper "GPTQ: Accurate Post-training Quantization of Generative Pretrained…
vkola-lab/PodGPT
57
·
·
PodGPT: An audio-augmented large language model for research and education
quic/efficient-transformers
99
·
·
This library empowers users to seamlessly port pretrained models and checkpoints on the HuggingFace…
congcongchen123/vllm
0
·
·
A high-throughput and memory-efficient inference and serving engine for LLMs
XiaomiMiMo/vllm
30
·
·
A high-throughput and memory-efficient inference and serving engine for LLMs
vimarsh244/llm-awq
0
·
·
[MLSys 2024 Best Paper Award] AWQ: Activation-aware Weight Quantization for LLM Compression and…