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

任意精度大语言模型:多个不同规模大语言模型的低成本部署

Any-Precision LLM: Low-Cost Deployment of Multiple, Different-Sized LLMs

Seoul National University(首尔大学)

Yeonhong Park, Jake Hyun, SangLyul Cho, Bonggeun Sim, Jae W. Lee

AI总结:

针对多规模不同的大语言模型部署成本高的问题,提出任意精度大语言模型方案,结合轻量级训练后量化方法与专用引擎,将不同位宽量化模型叠加至单n位模型内存中,实现SOTA质量与吞吐量,降低部署成本。

摘要:

近年来,大量研究致力于压缩大语言模型(LLM)——这类模型在各类应用中展现出突破性能力,但因规模庞大导致部署成本极高。与此同时,尽管部署多个不同规模的大语言模型具有实际意义重大,相关成本缓解工作却鲜少受到关注。为此,本文提出任意精度大语言模型(any-precision LLM),将任意精度深度神经网络(DNN)的概念拓展至大语言模型领域。针对任意精度大语言模型面临的挑战,我们提出一种轻量级的大语言模型任意精度量化方法,该方法基于训练后量化框架,并开发了专用软件引擎以实现高效推理服务。最终,我们的方案通过将量化为3位、4位……n位等不同位宽的大语言模型叠加至与单个n位大语言模型相当的内存占用中,大幅降低了部署多个不同规模大语言模型的高昂成本。所有支持的不同位宽大语言模型均展现出当前最优的模型质量与推理吞吐量,证明其是部署多个不同规模大语言模型的极具竞争力的方案。我们的代码已开源,可在线获取。

英文摘要:

Recently, considerable efforts have been directed towards compressing Large Language Models (LLMs), which showcase groundbreaking capabilities across diverse applications but entail significant deployment costs due to their large sizes. Meanwhile, much less attention has been given to mitigating the costs associated with deploying multiple LLMs of varying sizes despite its practical significance. Thus, this paper introduces \emph{any-precision LLM}, extending the concept of any-precision DNN to LLMs. Addressing challenges in any-precision LLM, we propose a lightweight method for any-precision quantization of LLMs, leveraging a post-training quantization framework, and develop a specialized software engine for its efficient serving. As a result, our solution significantly reduces the high costs of deploying multiple, different-sized LLMs by overlaying LLMs quantized to varying bit-widths, such as 3, 4, ..., $n$ bits, into a memory footprint comparable to a single $n$-bit LLM. All the supported LLMs with varying bit-widths demonstrate state-of-the-art model quality and inference throughput, proving itself to be a compelling option for deployment of multiple, different-sized LLMs. Our code is open-sourced and available online.

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

↑