arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.03712cs.LGcs.CLcs.CV
收藏

INT-FP-QSim:面向大语言模型与视觉Transformer的混合精度与格式模拟器

INT-FP-QSim: Mixed Precision and Formats For Large Language Models and Vision Transformers

Lightmatter Inc.(Lightmatter公司)

Lakshmi Nair, Mikhail Bernadskiy, Arulselvan Madhavan, Craig Chan, Ayon Basumallik, Darius Bunandar

AI总结:

本文提出开源模拟器INT-FP-QSim,支持在4-bit权重及4/8-bit激活下评估LLMs和视觉Transformer的多种数值格式,并比较了SmoothQuant、GPTQ等量化方法,以推动低精度模型研究。

摘要:

近年来大语言模型(LLMs)的兴起促使人们加大力度以降低精度运行LLMs。以较低精度运行LLMs有助于应对资源约束并进一步推动其普及化,使用户能够在个人设备上运行数十亿参数的LLMs。为补充这一持续努力,我们提出INT-FP-QSim:一个开源模拟器,能够灵活评估大语言模型和视觉Transformer在各种数值精度和格式下的表现。INT-FP-QSim利用现有的开源仓库,如TensorRT、QPytorch和AIMET,构建了一个支持多种浮点和整数格式的组合模拟器。借助我们的模拟器,我们考察了不同数值格式在4-bit权重和4-bit或8-bit激活下对大语言模型和视觉Transformer性能的影响。我们还比较了最近提出的方法,如Adaptive Block Floating Point、SmoothQuant、GPTQ和RPTQ对模型性能的影响。我们希望INT-FP-QSim能够帮助研究人员灵活地在各种精度下模拟模型,以支持大语言模型和视觉Transformer量化方面的进一步研究。

英文摘要:

The recent rise of large language models (LLMs) has resulted in increased efforts towards running LLMs at reduced precision. Running LLMs at lower precision supports resource constraints and furthers their democratization, enabling users to run billion-parameter LLMs on their personal devices. To supplement this ongoing effort, we propose INT-FP-QSim: an open-source simulator that enables flexible evaluation of LLMs and vision transformers at various numerical precisions and formats. INT-FP-QSim leverages existing open-source repositories such as TensorRT, QPytorch and AIMET for a combined simulator that supports various floating point and integer formats. With the help of our simulator, we survey the impact of different numerical formats on the performance of LLMs and vision transformers at 4-bit weights and 4-bit or 8-bit activations. We also compare recently proposed methods like Adaptive Block Floating Point, SmoothQuant, GPTQ and RPTQ on the model performances. We hope INT-FP-QSim will enable researchers to flexibly simulate models at various precisions to support further research in quantization of LLMs and vision transformers.

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

↑