arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10816cs.PLcs.AIcs.ARcs.PF
收藏

基于Llama.cpp的Armv9架构通用大语言模型推理性能优化

Optimization of Armv9 architecture general large language model inference performance based on Llama.cpp

Hangzhou Dianzi University(杭州电子科技大学);Wuhan University(武汉大学)

Longhao Chen, Yina Zhao, Qiangjun Xie, Qinghua Sheng

AI总结:

本文针对Armv9架构,通过Int8量化、算子向量化和编译优化,在倚天710平台上显著提升Qwen-1.8B推理性能并大幅降低内存占用。

摘要:

本文通过执行Int8量化、对llama.cpp中的部分算子进行向量化处理,并修改编译脚本以提高编译器优化级别,从而优化Qwen-1.8B模型的推理性能。在倚天710实验平台上,预填充性能提升1.6倍,解码性能提升24倍,内存占用降低至原来的1/5,且精度损失几乎可以忽略不计。

英文摘要:

This article optimizes the inference performance of the Qwen-1.8B model by performing Int8 quantization, vectorizing some operators in llama.cpp, and modifying the compilation script to improve the compiler optimization level. On the Yitian 710 experimental platform, the prefill performance is increased by 1.6 times, the decoding performance is increased by 24 times, the memory usage is reduced to 1/5 of the original, and the accuracy loss is almost negligible.

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

↑