arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.07657cs.LGcs.AI
收藏

SplitQuantV2:无需 GPU 增强大语言模型的低位量化

SplitQuantV2: Enhancing Low-Bit Quantization of LLMs Without GPUs

The Hong Kong University of Science and Technology(香港科技大学)

Jaewoo Song, Fangzhen Lin

AI总结:

SplitQuantV2 通过将线性层和卷积层拆分为量化友好结构,在无需 GPU 和校准数据的情况下提升 LLM 低位量化精度,并在 Llama 3.2 1B 上使 INT4 模型准确率提升 11.76 个百分点、达到浮点模型水平。

摘要:

大语言模型(LLMs)的量化对于将其部署在计算资源有限的设备上至关重要。虽然先进的量化算法相比基础线性量化能提供更好的性能,但它们通常需要高端图形处理单元(GPU),往往局限于特定的深度神经网络(DNN)框架,并且需要校准数据集。这一限制给在各种神经处理单元(NPU)和边缘 AI 设备上使用此类算法带来了挑战,因为这些设备具有多样的模型格式和框架。在本文中,我们展示了 SplitQuantV2,这是一种创新算法,旨在增强 LLMs 的低位线性量化,能够取得与先进算法相当的结果。SplitQuantV2 通过将线性层和卷积层拆分为功能等价且对量化友好的结构来预处理模型。该算法平台无关、简洁且高效,无需 GPU 即可实现。我们使用 AI2 的 Reasoning Challenge(ARC)数据集对 Llama 3.2 1B Instruct 模型进行评估,结果表明 SplitQuantV2 将 INT4 量化模型的准确率提高了 11.76 个百分点,达到了与原始浮点模型相当的性能。值得注意的是,SplitQuantV2 仅使用 Apple M4 CPU,就只用了 2 分 6 秒完成对 1B 模型的预处理和线性 INT4 量化。SplitQuantV2 为 LLMs 的低位量化提供了一种实用解决方案,尤其是在复杂且计算密集的算法因硬件限制或框架不兼容而无法使用时。

英文摘要:

The quantization of large language models (LLMs) is crucial for deploying them on devices with limited computational resources. While advanced quantization algorithms offer improved performance compared to the basic linear quantization, they typically require high-end graphics processing units (GPUs), are often restricted to specific deep neural network (DNN) frameworks, and require calibration datasets. This limitation poses challenges for using such algorithms on various neural processing units (NPUs) and edge AI devices, which have diverse model formats and frameworks. In this paper, we show SplitQuantV2, an innovative algorithm designed to enhance low-bit linear quantization of LLMs, can achieve results comparable to those of advanced algorithms. SplitQuantV2 preprocesses models by splitting linear and convolution layers into functionally equivalent, quantization-friendly structures. The algorithm's platform-agnostic, concise, and efficient nature allows for implementation without the need for GPUs. Our evaluation on the Llama 3.2 1B Instruct model using the AI2's Reasoning Challenge (ARC) dataset demonstrates that SplitQuantV2 improves the accuracy of the INT4 quantization model by 11.76%p, matching the performance of the original floating-point model. Remarkably, SplitQuantV2 took only 2 minutes 6 seconds to preprocess the 1B model and perform linear INT4 quantization using only an Apple M4 CPU. SplitQuantV2 provides a practical solution for low-bit quantization on LLMs, especially when complex, computation-intensive algorithms are inaccessible due to hardware limitations or framework incompatibilities.

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

↑