GPTQ Enables 3-4 Bit Quantization for Massive LLMs
GPTQ, a one-shot weight quantization method, can quantize GPT models with 175 billion parameters to 3 or 4 bits in approximately four GPU hours, achieving negligible accuracy degradation and enabling single-GPU inference. It delivers speedups of around 3.25x on NVIDIA A100 and 4.5x on A6000 GPUs over FP16.
The top 3
- First to Enable Single-GPU Inference for 175B LLMs: GPTQ pioneered the accurate 3-4 bit quantization of massive LLMs like OPT-175B, making it possible for a 175 billion-parameter model to run on a single 80 GB NVIDIA A100 GPU for the first time with negligible accuracy loss.
- Record Inference Speedups and Memory Reduction: GPTQ achieved significant performance gains, enabling 3-bit OPT-175B models to run generative inference up to 4.5 times faster on NVIDIA A6000 GPUs and 3.25 times faster on A100 GPUs compared to their 16-bit counterparts.
- Core Innovation: Second-Order Error Minimization: GPTQ employs Hessian-weighted least-squares optimization and a layer-wise error compensation strategy to minimize reconstruction error, preserving near full-precision accuracy even at 3-4 bit quantization.
Sources
Open the full topic