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

QIGen:为大型语言模型上的量化推理生成高效内核

QIGen: Generating Efficient Kernels for Quantized Inference on Large Language Models

ETH Zurich(苏黎世联邦理工学院);IST Austria(奥地利科学技术研究所);Neural Magic

Tommaso Pegolotti, Elias Frantar, Dan Alistarh, Markus Püschel

AI总结:

本文提出QIGen自动代码生成方法,结合目标架构与性能模型,在现成CPU上为LLaMA等大型语言模型生成高效量化推理内核,实现高性能与高精度。

摘要:

我们展示了正在进行的工作,即一种新的自动代码生成方法,用于在现成CPU上支持LLaMA或OPT等大型语言模型的量化生成式推理。我们的方法以目标架构和性能模型为依据,包括硬件特性和方法特定的精度约束。基于CPU的LLaMA模型推理结果表明,我们的方法可以实现高性能和高精度,与现有最佳开源解决方案相比具有优势。初步实现可在https://github.com/IST-DASLab/QIGen获取。

英文摘要:

We present ongoing work on a new automatic code generation approach for supporting quantized generative inference on LLMs such as LLaMA or OPT on off-the-shelf CPUs. Our approach is informed by the target architecture and a performance model, including both hardware characteristics and method-specific accuracy constraints. Results on CPU-based inference for LLaMA models show that our approach can lead to high performance and high accuracy, comparing favorably to the best existing open-source solution. A preliminary implementation is available at https://github.com/IST-DASLab/QIGen.

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

↑