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

将Gemma3映射到边缘数据流架构上

Mapping Gemma3 onto an Edge Dataflow Architecture

Clemson University(克莱姆森大学);University of Rhode Island(罗德岛大学)

Shouyu Du, Miaoxiang Yu, Zhenyu Xu, Zhiheng Ni, Jillian Cai, Qing Yang, Tao Wei

AI总结:

本文提出将Gemma3模型高效部署到边缘数据流架构上,通过硬件感知技术提升推理速度和能效,实现低功耗的LLM和VLM边缘推理。

摘要:

我们首次将Gemma3系列的大语言和视觉模型端到端部署到一种 tiled edge dataflow 架构(AMD Ryzen AI NPU)上。我们的工作引入了一套硬件感知技术。在prefill阶段,我们引入了一个高效的dequantization引擎,优化了tiled矩阵乘法内核,并提出了FlowQKV,一种分块、流水线化的注意力机制。在解码阶段,我们引入了FusedDQP,将dequantization和投影融合到一个内核中,并提出了FlowKV,重新组织注意力以维持高内存带宽利用率。与iGPU相比,这些方法使prefill和解码分别快了5.2倍和4.8倍,与CPU相比分别快了33.5倍和2.2倍。与iGPU和CPU相比,能效分别提高了67.2倍和222.9倍。所提出的方法证明了现代NPU能够在边缘提供实用的低功耗LLM和VLM推理,并为将基于transformer的模型映射到tiled数据流加速器提供了通用的蓝图。

英文摘要:

We present the first end-to-end deployment of the Gemma3 family of large language and vision models on a tiled edge dataflow architecture (AMD Ryzen AI NPU). Our work introduces a set of hardware-aware techniques. For prefill, we introduce an efficient dequantization engine, optimize tiled matrix multiplication kernels, and propose FlowQKV, a chunked, pipelined attention mechanism. For decoding, we introduce FusedDQP, which fuses dequantization and projection into a single kernel, and FlowKV, which re-structures attention to sustain high memory bandwidth utilization. Together with a compact Q4NX 4-bit quantization format, these methods yield up to $5.2\times$ faster prefill and $4.8\times$ faster decoding versus the iGPU, and $33.5\times$ and $2.2\times$ over the CPU, respectively. Power efficiency improves by as much as $67.2\times$ and $222.9\times$ compared to the iGPU and CPU. The proposed approach demonstrates that modern NPUs can deliver practical, low-power LLM and VLM inference at the edge, and provides a generalizable blueprint for mapping transformer-based models onto tiled dataflow accelerators.

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

↑