Optimization of Armv9 architecture general large language model inference performance based on Llama.cpp
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.
Paper
References (8)
01Qwen Technical ReportJinze Bai, Shuai Bai, Yunfei Chu et al.2023 · arXiv.org · 4.1k citations In Library
04A framework for few-shot language modelevaluation
05Neon — developerarm.com
06Language Extensions — arm-softwaregithub.io
07AArch64 Options (Using the GNU Compiler Collection (GCC)) — gcc
08LTO (GNU Compiler Collection (GCC) Internals) — gccgnu.org