arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.14112cs.LGcs.AIcs.AR
收藏

FP6-LLM:通过以 FP6 为中心的算法-系统协同设计高效服务大型语言模型

FP6-LLM: Efficiently Serving Large Language Models Through FP6-Centric Algorithm-System Co-Design

University of Sydney(悉尼大学);Microsoft(微软);Rutgers University(罗格斯大学)
Haojun Xia, Zhen Zheng, Xiaoxia Wu, Shiyang Chen, Zhewei Yao, Stephen Youn, Arash Bakhtiari, Michael Wyatt, Donglin Zhuang, Zhongzhu Zhou, Olatunji Ruwase, Yuxi… 展开作者

Haojun Xia, Zhen Zheng, Xiaoxia Wu, Shiyang Chen, Zhewei Yao, Stephen Youn, Arash Bakhtiari, Michael Wyatt, Donglin Zhuang, Zhongzhu Zhou, Olatunji Ruwase, Yuxiong He, Shuaiwen Leon Song

AI总结:

本文提出 TC-FPx 全栈 GPU 内核及 FP6-LLM 推理系统,通过统一 Tensor Core 支持 FP6 等浮点量化权重,解决内存访问与反量化开销问题,并在单 GPU 上高效推理 LLaMA-70b。

摘要:

六比特量化(FP6)能够有效减小大型语言模型(LLM)的体积,并在各类应用中一致地保持模型质量。然而,现有系统并不为 FP6 量化提供 Tensor Core 支持,因此在 LLM 推理过程中难以取得实际的性能提升。在 GPU 上支持 FP6 量化颇具挑战,原因在于:(1)具有不规则位宽的模型权重会产生不友好的内存访问;(2)权重反量化会带来很高的运行时开销。为解决这些问题,我们提出 TC-FPx,这是首个全栈 GPU 内核设计方案,可针对多种量化位宽统一提供对浮点权重的 Tensor Core 支持。我们将 TC-FPx 内核集成到现有推理系统中,为量化 LLM 推理提供新的端到端支持(称为 FP6-LLM),从而在推理成本与模型质量之间实现更好的权衡。实验表明,FP6-LLM 使 LLaMA-70b 仅使用单块 GPU 即可完成推理,并且相比 FP16 基线实现了 1.69 倍至 2.65 倍更高的归一化推理吞吐量。源代码公开发布于 https://github.com/usyd-fsalab/fp6_llm。

英文摘要:

Six-bit quantization (FP6) can effectively reduce the size of large language models (LLMs) and preserve the model quality consistently across varied applications. However, existing systems do not provide Tensor Core support for FP6 quantization and struggle to achieve practical performance improvements during LLM inference. It is challenging to support FP6 quantization on GPUs due to (1) unfriendly memory access of model weights with irregular bit-width and (2) high runtime overhead of weight de-quantization. To address these problems, we propose TC-FPx, the first full-stack GPU kernel design scheme with unified Tensor Core support of float-point weights for various quantization bit-width. We integrate TC-FPx kernel into an existing inference system, providing new end-to-end support (called FP6-LLM) for quantized LLM inference, where better trade-offs between inference cost and model quality are achieved. Experiments show that FP6-LLM enables the inference of LLaMA-70b using only a single GPU, achieving 1.69x-2.65x higher normalized inference throughput than the FP16 baseline. The source code is publicly available at https://github.com/usyd-fsalab/fp6_llm.

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

↑