Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

QQQ: Quality Quattuor-Bit Quantization for Large Language Models (2406.09904v3)

Published 14 Jun 2024 in cs.LG

Abstract: Quantization is a proven effective method for compressing LLMs. Although popular techniques like W8A8 and W4A16 effectively maintain model performance, they often fail to concurrently speed up the prefill and decoding stages of inference. W4A8 is a promising strategy to accelerate both of them while usually leads to a significant performance degradation. To address these issues, we present QQQ, a Quality Quattuor-bit Quantization method with 4-bit weights and 8-bit activations. QQQ employs adaptive smoothing and Hessian-based compensation, significantly enhancing the performance of quantized models without extensive training. Furthermore, we meticulously engineer W4A8 GEMM kernels to increase inference speed. Our specialized per-channel W4A8 GEMM and per-group W4A8 GEMM achieve impressive speed increases of 3.67$\times$ and 3.29 $\times$ over FP16 GEMM. Our extensive experiments show that QQQ achieves performance on par with existing state-of-the-art LLM quantization methods while significantly accelerating inference, achieving speed boosts up to 2.24 $\times$, 2.10$\times$, and 1.25$\times$ compared to FP16, W8A8, and W4A16, respectively.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (10)
  1. Ying Zhang (388 papers)
  2. Peng Zhang (641 papers)
  3. Mincong Huang (7 papers)
  4. Jingyang Xiang (11 papers)
  5. Yujie Wang (103 papers)
  6. Chao Wang (555 papers)
  7. Yineng Zhang (4 papers)
  8. Lei Yu (234 papers)
  9. Chuan Liu (84 papers)
  10. Wei Lin (207 papers)
Citations (2)
X Twitter Logo Streamline Icon: https://streamlinehq.com