arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.19102cs.LG
收藏

Atom:面向高效且准确 LLM 服务的低位量化

Atom: Low-bit Quantization for Efficient and Accurate LLM Serving

Shanghai Jiao Tong University(上海交通大学);University of Washington(华盛顿大学);Peking University(北京大学);OctoAI;Carnegie Mellon University(卡内基梅隆大学)

Yilong Zhao, Chien-Yu Lin, Kan Zhu, Zihao Ye, Lequn Chen, Size Zheng, Luis Ceze, Arvind Krishnamurthy, Tianqi Chen, Baris Kasikci

AI总结:

针对 LLM 服务中高位量化难以发挥现代 GPU 低比特算力的问题,提出 Atom 混合精度细粒度低位量化方法,在 4 位权重-激活量化下显著降显存、提吞吐且精度损失极小。

摘要:

大型语言模型(LLM)在内容生成、智能聊天机器人和情感分析等应用中的需求不断增长,这给 LLM 服务提供商带来了相当大的挑战。为了高效利用 GPU 资源并提高吞吐量,将多个请求批处理已成为一种流行范式;为了进一步加速批处理,LLM 量化技术可减少内存消耗并提升计算能力。然而,主流量化方案(例如 8 位权重-激活量化)无法充分利用现代 GPU 的能力,例如 4 位整数算子,从而导致性能未达最优。为了最大化 LLM 的服务吞吐量,我们提出 Atom,这是一种低位量化方法,能够以可忽略的精度损失实现高吞吐量提升。Atom 通过使用低位算子显著提升服务吞吐量,并通过低位量化大幅降低内存消耗。它通过采用一种新颖的混合精度、细粒度量化过程来获得高精度。我们在服务场景中针对 4 位权重-激活量化评估了 Atom。在保持相同延迟目标的同时,Atom 将端到端吞吐量(token/s)相比 FP16 最高提升 7.7 倍,相比 INT8 量化提升 2.5 倍。

英文摘要:

The growing demand for Large Language Models (LLMs) in applications such as content generation, intelligent chatbots, and sentiment analysis poses considerable challenges for LLM service providers. To efficiently use GPU resources and boost throughput, batching multiple requests has emerged as a popular paradigm; to further speed up batching, LLM quantization techniques reduce memory consumption and increase computing capacity. However, prevalent quantization schemes (e.g., 8-bit weight-activation quantization) cannot fully leverage the capabilities of modern GPUs, such as 4-bit integer operators, resulting in sub-optimal performance. To maximize LLMs' serving throughput, we introduce Atom, a low-bit quantization method that achieves high throughput improvements with negligible accuracy loss. Atom significantly boosts serving throughput by using low-bit operators and considerably reduces memory consumption via low-bit quantization. It attains high accuracy by applying a novel mixed-precision and fine-grained quantization process. We evaluate Atom on 4-bit weight-activation quantization in the serving context. Atom improves end-to-end throughput (token/s) by up to $7.7\times$ compared to the FP16 and by $2.5\times$ compared to INT8 quantization, while maintaining the same latency target.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑