Reproduce “GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Elias Frantar, Saleh Ashkboos, Torsten Hoefler, Dan Alistarh
GPTQ compresses trained language models by rounding weights to a low-bit grid and adjusting unrounded weights to compensate, using layer-input information. Its fixed column order and shared updates make this second-order method practical at large scale. On OPT-175B, 3-bit GPTQ achieves WikiText-2 perplexity of 8.68, versus 8.34 for FP16 and 7.3e3 for round-to-nearest, and fits one 80GB A100; this result is specific to that model and task.
Key insights
- Quantizing weights in an arbitrary fixed order can achieve similar accuracy to greedy, more complex methods for large LLM layers, unlocking substantial efficiency gains.
- Batching inverse Hessian updates within localized blocks drastically improves practical GPU performance by optimizing the compute-to-memory-access ratio.
- A numerically stable approach using Cholesky decomposition is essential for robustly handling the repeated updates required for post-training quantization in large models.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.