(选择性)四舍五入到最近整数量化是否就足够了?
Is (Selective) Round-To-Nearest Quantization All You Need?
AI总结:
本研究重新评估了RTN量化方法,证明其在成本、吞吐量和准确性上可与先进方法媲美,并通过选择性精度提升进一步优化,为LLM量化提供了实用选择。
摘要:
量化成为服务日益增长的大型语言模型(LLM)的必要工具。RTN(四舍五入到最近整数)可能是最简单的量化技术,早在LLM成为机器学习(ML)研究前沿之前就已存在。然而,最近更先进的量化方法几乎在性能的各个方面都声称优于RTN,导致RTN在很大程度上被忽视。这项工作旨在打破这一既定观点,表明RTN不仅应用成本更低,而且其令牌生成吞吐量可能优于更先进的替代方案,且准确率可能与之相似。具体而言,我们讨论了基于最近Marlin内核的RTN实现,并展示了如何通过选择性地提高某些模型层和模块的数据精度格式来逐步提高RTN的准确性。基于我们的结果,我们认为RTN为量化LLM提供了一个可行且实用的选择。
英文摘要:
Quantization became a necessary tool for serving ever-increasing Large Language Models (LLMs). RTN (Round-to-Nearest) is perhaps the simplest quantization technique that has been around well before LLMs surged to the forefront of machine learning (ML) research. Yet, it has been largely dismissed by recent and more advanced quantization methods that claim superiority over RTN in nearly every aspect of performance. This work aims to dispel this established point of view, showing that RTN is not only much cheaper to apply, but also its token generation throughput can be better than and accuracy can be similar to more advanced alternatives. In particular, we discuss our implementation of RTN based on the recent Marlin kernels and demonstrate how the accuracy of RTN can be gradually improved by selectively increasing the data precision format of certain model layers and modules. Based on our results, we argue that RTN presents a viable and practical choice for quantizing LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。