Published on Oct 31, 2022
Authors:
,
Abstract
GPTQ, a novel one-shot weight quantization method using approximate second-order information, significantly reduces the computational and storage requirements of large GPT models while maintaining accuracy and enabling execution on a single GPU.
Generative Pre-trained Transformer
models, known as
or
, 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
for large, highly-accurate
models may require multiple performant
s, which limits the usability of such models. While there is emerging work on relieving this pressure via
, the applicability and performance of existing compression techniques is limited by the scale and complexity of
models. In this paper, we address this challenge, and propose
Q, a new one-shot weight quantization method based on
approximate second-order information
, that is both highly-accurate and highly-efficient. Specifically,
Q can quantize
models with 175 billion parameters in approximately four
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
methods, preserving accuracy, allowing us for the first time to execute an 175 billion-parameter model inside a single
for generative
. 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
over
, of around 3.25x when using high-end
s (NVIDIA A100) and 4.5x when using more cost-effective ones (NVIDIA A6000). The implementation is available at https://github.com/IST-DASLab/
q.
Get this paper in your agent:
hf papers read 2210.17323
Don't have the latest CLI?curl -LsSf https://hf.co/cli/install.sh | bash
Models citing this paper 234
BelleGroup/BELLE-7B-gptq Text Generation • Updated Apr 20, 2023 • 30 • 26
astronomer/Llama-3-8B-Instruct-GPTQ-4-Bit Text Generation • 8B • Updated Apr 22, 2024 • 83 • 26
astronomer/Llama-3-8B-Instruct-GPTQ-8-Bit Text Generation • 8B • Updated Apr 22, 2024 • 80 • 25
Browse 234 models citing this paper
Datasets citing this paper 0
No dataset linking this paper
Cite arxiv.org/abs/2210.17323 in a dataset README.md to link it from this page.
Spaces citing this paper 8
Collections including this paper 12