arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.01384cs.LGcs.AIcs.CL
收藏

量化大语言模型的可压缩性研究

On the Compressibility of Quantized Large Language Models

City University of Hong Kong(香港城市大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学)

Yu Mao, Weilan Wang, Hongchao Du, Nan Guan, Chun Jason Xue

AI总结:

本文研究在内存受限设备上通过数据压缩减少量化大语言模型加载时的I/O延迟,分析其可压缩性与性能的权衡,并探索联合优化路径。

摘要:

在边缘或移动设备上部署大语言模型(LLMs)具有显著优势,例如增强的数据隐私性和实时处理能力。然而,由于LLMs对内存的巨大需求,这一部署也面临关键挑战。量化是一种在保持良好性能的同时减小模型规模的有效方法。然而,即使经过量化,LLMs仍可能过大,无法完全装入边缘或移动设备有限的内存中,必须从存储中部分加载才能完成推理。在这种情况下,模型加载的I/O延迟成为LLM推理延迟的瓶颈。在本工作中,我们迈出了初步一步,研究应用数据压缩技术来减少数据移动,从而加速量化LLM在内存受限设备上的推理。具体而言,我们讨论了量化LLMs的可压缩性、量化LLMs的可压缩性与性能之间的权衡,以及联合优化两者的机会。

英文摘要:

Deploying Large Language Models (LLMs) on edge or mobile devices offers significant benefits, such as enhanced data privacy and real-time processing capabilities. However, it also faces critical challenges due to the substantial memory requirement of LLMs. Quantization is an effective way of reducing the model size while maintaining good performance. However, even after quantization, LLMs may still be too big to fit entirely into the limited memory of edge or mobile devices and have to be partially loaded from the storage to complete the inference. In this case, the I/O latency of model loading becomes the bottleneck of the LLM inference latency. In this work, we take a preliminary step of studying applying data compression techniques to reduce data movement and thus speed up the inference of quantized LLM on memory-constrained devices. In particular, we discussed the compressibility of quantized LLMs, the trade-off between the compressibility and performance of quantized LLMs, and opportunities to optimize both of them jointly.

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

↑