arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.23219cs.DC
收藏

Ghidorah:利用推测解码与异构核心并行在边缘端实现快速 LLM 推理

Ghidorah: Fast LLM Inference on Edge with Speculative Decoding and Hetero-Core Parallelism

Jinhui Wei, Ye Huang, Yuhui Zhou, Jiazhi Jiang, Jiangsu Du, Yutong Lu

AI总结:

针对边缘端 LLM 解码受内存带宽限制、异构单元利用率低的问题,提出 Ghidorah,结合推测解码、HCMP 异构模型并行与 ARCA 策略优化,在 Jetson NX 上实现最高 7.6 倍解码加速。

摘要:

由于具备隐私优势并可降低对外部基础设施的依赖,在终端用户设备上进行原位 LLM 推理已引起广泛关注。然而,由于解码过程受内存带宽限制,现代终端用户设备中的多种处理单元无法得到充分利用,从而导致 LLM 推理速度缓慢。本文提出 Ghidorah,这是一种面向具有统一内存架构的终端用户设备的 LLM 推理系统。Ghidorah 的核心思想可概括为两个步骤:1)利用推测解码方法增强并行性;2)巧妙地在多个异构处理单元之间分配工作负载,以最大化计算能力利用率。Ghidorah 包含异构核心模型并行(HCMP)架构和架构感知性能分析(ARCA)方法。HCMP 架构利用终端用户设备的统一内存设计,并适应推测解码的混合计算需求,以指导模型划分。ARCA 方法用于确定最优的推测策略和划分策略,在接受率与并行能力之间取得平衡,从而最大化加速比。此外,我们还优化了 ARM CPU 上的稀疏计算。实验结果表明,在 NVIDIA Jetson NX 上,与顺序解码方法相比,Ghidorah 在占主导地位的 LLM 解码阶段可实现最高 7.6 倍的加速。

英文摘要:

In-situ LLM inference on end-user devices has gained significant interest due to its privacy benefits and reduced dependency on external infrastructure. However, as the decoding process is memory-bandwidth-bound, the diverse processing units in modern end-user devices cannot be fully exploited, resulting in slow LLM inference. This paper presents Ghidorah, a LLM inference system for end-user devices with the unified memory architecture. The key idea of Ghidorah can be summarized in two steps: 1) leveraging speculative decoding approaches to enhance parallelism, and 2) ingeniously distributing workloads across multiple heterogeneous processing units to maximize computing power utilization. Ghidorah includes the hetero-core model parallelism (HCMP) architecture and the architecture-aware profiling (ARCA) approach. The HCMP architecture guides partitioning by leveraging the unified memory design of end-user devices and adapting to the hybrid computational demands of speculative decoding. The ARCA approach is used to determine the optimal speculative strategy and partitioning strategy, balancing acceptance rate with parallel capability to maximize the speedup. Additionally, we optimize sparse computation on ARM CPUs. Experimental results show that Ghidorah can achieve up to 7.6x speedup in the dominant LLM decoding phase compared to the sequential decoding approach in NVIDIA Jetson NX.

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

↑