arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.11424cs.AR
收藏

LlamaF:一种面向嵌入式 FPGA 的高效 Llama2 架构加速器

LlamaF: An Efficient Llama2 Architecture Accelerator on Embedded FPGAs

Han Xu, Yutong Li, Shihao Ji

AI总结:

本文提出嵌入式 FPGA 加速器 LlamaF,通过训练后量化、带宽优化、异步计算和全流水线矩阵-向量乘法,使 TinyLlama 1.1B 在 ZCU102 上较纯 PS 实现显著提速并提升能效。

摘要:

大型语言模型(LLM)已在自然语言处理中展现出卓越能力。然而,由于内存和计算需求,其在资源受限的嵌入式设备上的部署仍然困难。本文提出一种基于 FPGA 的加速器,旨在提升嵌入式 FPGA 上的 LLM 推理性能。我们采用训练后量化来减小模型尺寸,并针对片外内存带宽进行优化。该设计具备异步计算以及用于矩阵-向量乘法的全流水线加速器。在 Xilinx ZCU102 平台上对 TinyLlama 1.1B 模型进行的实验表明,与仅在 ZCU102 处理系统(PS)上运行相比,其实现了 14.3–15.8 倍加速和 6.1 倍能效提升。

英文摘要:

Large language models (LLMs) have demonstrated remarkable abilities in natural language processing. However, their deployment on resource-constrained embedded devices remains difficult due to memory and computational demands. In this paper, we present an FPGA-based accelerator designed to improve LLM inference performance on embedded FPGAs. We employ post-training quantization to reduce model size and optimize for off-chip memory bandwidth. Our design features asynchronous computation and a fully pipelined accelerator for matrix-vector multiplication. Experiments of the TinyLlama 1.1B model on a Xilinx ZCU102 platform show a 14.3-15.8x speedup and a 6.1x power efficiency improvement over running exclusively on ZCU102 processing system (PS).

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

↑