A Speed Odyssey for Deployable Quantization of LLMs

Qingyuan Li, Ran Meng, Yiduo Li, Bo Zhang, Liang Li +4 more
11/16/2023
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

The large language model era urges faster and less costly inference. Prior model compression works on LLMs tend to undertake a software-centric approach primarily focused on the simulated quantization performance. By neglecting the feasibility of deployment, these approaches are typically disabled in real practice. They used to drastically push down the quantization bit range for a reduced computation which might not be supported by the mainstream hardware, or involve sophisticated algorithms that introduce extra computation or memory access overhead. We argue that pursuing a hardware-centric approach in the construction of quantization algorithms is crucial. In this regard, we are driven to build our compression method on top of hardware awareness, eliminating impractical algorithm choices while maximizing the benefit of hardware acceleration. Our method, OdysseyLLM, comes with a novel W4A8 kernel implementation called FastGEMM and a combined recipe of quantization strategies. Extensive experiments manifest the superiority of our W4A8 method which brings the actual speed boosting up to \textbf{4$\times$} compared to Hugging Face FP16 inference and \textbf{2.23$\times$} vs. the state-of-the-art inference engine TensorRT-LLM in FP16, and \textbf{1.45$\times$} vs. TensorRT-LLM in INT8, yet without substantially harming the performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{li2023speed,
  title  = {A Speed Odyssey for Deployable Quantization of LLMs},
  author = {Qingyuan Li and Ran Meng and Yiduo Li and Bo Zhang and Liang Li and Yifan Lu and Xiangxiang Chu and Yerui Sun and Yuchen Xie},
  year   = {2023},
  eprint = {2311.09550},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.09550v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.09550.svg)](https://codeofpaper.com/paper/2311.09550)

Discussion