Half-Quadratic Quantization (HQQ): Calibration-Free Quantization of Large ML Models
Deploying large language models is memory-intensive, and while calibration-based quantization methods like GPTQ and AWQ offer better quality than data-free approaches, they suffer from calibration data bias and prohibitively slow processing times on the largest models.
Gradient-based calibration-free optimization with autograd requires many iterations and fails when using the sparsity-promoting norms (p<1) needed to handle weight outliers effectively.
HQQ achieves calibration-free quantization quality competitive with GPTQ and AWQ, quantizing Llama-2-70B in under 5 minutes — over 50x faster than GPTQ — with 2-bit HQQ Llama-2-70B outperforming full-precision Llama-2-13B at comparable memory usage.
Show all 8 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
HQQ achieves calibration-free quantization quality competitive with GPTQ and AWQ, quantizing Llama-2-70B in under 5 minutes — over 50x faster than GPTQ — with 2-bit HQQ Llama-2-70B outperforming full-precision Llama-2…
What tools did this team use?
bitsandbytes, GPTQ, AWQ, Llama-2, OpenCLIP, AutoGPTQ, AutoAWQ.
What results were reported?
Llama-2-70B quantization time: less than 5 minutes; HQQ speed vs GPTQ for Llama-2-70B: over 50x faster; HQQ speed vs autograd for Llama-2-7B: over 100x faster; 2-bit HQQ Llama-2-70B vs full-precision Llama-2-13B perplexity: outperforms the full-precision Llama-2-13B by a large margin (source-reported, not independently verified).
What failed first in this deployment?
Gradient-based calibration-free optimization with autograd requires many iterations and fails when using the sparsity-promoting norms (p<1) needed to handle weight outliers effectively.
How is this workflow AI workflow structured?
Sparsity-promoting objective → Half-Quadratic problem split → Alternate optimization → Perplexity and accuracy benchmark → Open-source model release.