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

基于微缩格式的大型语言模型训练后量化

Post Training Quantization of Large Language Models with Microscaling Formats

d-Matrix;Purdue University(普渡大学)

Sayeh Sharify, Utkarsh Saxena, Zifei Xu, Wanzin Yazar, Ilya Soloveychik, Xin Wang

AI总结:

本文研究了SmoothQuant、AWQ和GPTQ三种训练后量化技术的组合应用,通过引入微缩格式扩展了PTQ算法的适用性,实现了4位权重和8位激活的量化且精度损失可忽略。

摘要:

大型语言模型(LLMs)在复杂语言建模任务中表现出色,但面临显著的计算和存储挑战。本文探讨了量化技术以缓解这些挑战的潜力。我们系统研究了三种知名训练后量化技术SmoothQuant、AWQ和GPTQ的组合应用,并全面分析了它们的相互作用及对推进LLM量化的影响。我们通过支持向微缩(MX)格式量化,增强了这些方法的通用性,将这些PTQ算法的适用范围扩展到其原始定点格式目标之外。我们表明,结合不同PTQ方法能够使用MXINT格式将模型量化为4位权重和8位激活,与未压缩基线相比精度损失可忽略不计。

英文摘要:

Large Language Models (LLMs) have distinguished themselves with outstanding performance in complex language modeling tasks, yet they come with significant computational and storage challenges. This paper explores the potential of quantization to mitigate these challenges. We systematically study the combined application of three well-known post-training techniques, SmoothQuant, AWQ, and GPTQ, and provide a comprehensive analysis of their interactions and implications for advancing LLM quantization. We enhance the versatility of these methods by enabling quantization to microscaling (MX) formats, extending the applicability of these PTQ algorithms beyond their original fixed-point format targets. We show that combining different PTQ methods enables us to quantize models to 4-bit weights and 8-bit activations using the MXINT format with negligible accuracy loss compared to the uncompressed baseline.

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

↑