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

基于卸载的流水线并行实现边缘设备上的协作无损LLM推理服务

LOIP:Collaborative Lossless LLM Inference Serving with Offloading-based Pipeline Parallelism on Edge Devices

School of Computer Science and Technology, Shandong University(山东大学计算机科学与技术学院);School of Artificial Intelligence, Shandong University(山东大学人工智能学院);School of Cryptologic Science and Engineering, Shandong University(山东大学密码学与工程学院);Shandong Provincial Key Laboratory of Computing-Network Integration, Shandong University(山东大学计算网络集成山东省重点实验室)

Mingyu Sun, Xiao Zhang, Shen Qu, Yan Li, Mengbai Xiao, Yanwei Zheng, Yuan Yuan, Dongxiao Yu

AI总结:

提出LOIP系统,通过卸载感知的交叉流水线并行、细粒度分配调度和在线内存自适应策略,在异构边缘设备上实现LLM无损推理,相比基线加速8.8-20.3倍。

摘要:

在边缘设备上提供LLM的无损推理服务仍然具有挑战性,尤其是在内存预算极其紧张的情况下。现有的卸载技术不可避免地引入了大量加载气泡,进一步增加了整个推理管道的端到端延迟。同时,动态波动的网络带宽和多样化的用户请求模式给边缘设备上的高效无损推理带来了额外障碍。为了解决这个问题,我们提出了LOIP,一个协作无损LLM推理系统,它采用基于卸载的交错流水线并行,以更好地重叠模型卸载与计算和通信。具体来说,LOIP首先构建了一个卸载感知的成本模型,以表征在异构设备能力和有限带宽下的推理延迟和内存开销。基于该成本模型,LOIP开发了一个细粒度分配调度器,在明确考虑卸载开销的情况下,确定跨设备的延迟高效层分区,以及使用自定义CUDA操作符的统一内存架构(UMA)感知加载优化,以减少运行时加载开销。LOIP进一步设计了一种在线内存自适应策略,以处理推理过程中不断增加的KV缓存压力和动态带宽波动。我们用2500多行Python代码和500多行C++/CUDA代码实现了LOIP,并将其部署在五个异构NVIDIA Jetson边缘设备上,用于LLaMA3.3-70B-Instruct的无损协作推理。大量实验表明,在不同带宽条件和请求模式下,LOIP在不影响模型准确性的情况下,相比最先进的基线实现了8.8倍到20.3倍的加速。

英文摘要:

Providing lossless inference services of LLMs on edge devices remains challenging, especially given the extremely tight memory budgets. The existing offloading techniques inevitably introduce numerous loading bubbles, which further inflate the end-to-end latency of the entire inference pipeline. Meanwhile, dynamically fluctuating network bandwidth and diverse user request patterns pose additional obstacles to efficient lossless inference on edge devices. To address this, we propose LOIP, a collaborative lossless LLM inference system that employs an offloading-based interleaved pipeline parallelism to better overlap model offloading with computing and communicating. Specifically, LOIP first constructs an offloading-aware cost model to characterize inference latency and memory overhead under heterogeneous device capabilities and limited bandwidth. Based on this cost model, LOIP develops a fine-grained allocation scheduler that determines latency-efficient layer partitions across devices while explicitly accounting for offloading overhead, along with a unified memory architecture (UMA)-aware loading optimization using customized CUDA operators to reduce runtime loading overhead. LOIP further designs an online memory adaptation strategy to handle the increasing KV cache pressure and dynamic bandwidth fluctuations during inference. We implement LOIP with 2500+ lines of Python and 500+ lines of C++/CUDA code, and deploy it on five heterogeneous NVIDIA Jetson edge devices for lossless collaborative inference of LLaMA3.3-70B-Instruct. Extensive experiments demonstrate that LOIP achieves 8.8$\times$$\sim$20.3$\times$ speedups over the SOTA baselines under different bandwidth conditions and request patterns without compromising model accuracy.

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

↑