arXiv:2507.01438cs.DCcs.AI2025-07被引 16

让边缘设备同时高效运行多个AI模型,降低延迟并节省内存。

EdgeLoRA: An Efficient Multi-Tenant LLM Serving System on Edge Devices

  • 动态选择适配器,减少配置复杂度。
  • 通过智能缓存与批量推理,吞吐量提升4倍。
  • 适合需要多用户、低延迟的边缘AI部署场景。

大型语言模型(LLMs)因其广泛的应用潜力受到关注。使用参数高效适配器(如低秩适应,LoRA)微调LLM,可在不进行大规模重训练的情况下高效适配下游任务。在多租户边缘设备上部署微调后的LLM可带来低延迟、增强隐私和个性化响应等优势。然而,在资源受限的边缘设备上高效服务LLM面临严峻挑战,包括不同任务的适配器选择复杂性以及频繁适配器切换带来的内存开销。此外,多租户环境中多个请求串行处理会导致计算资源利用率低、延迟增加。本文提出EdgeLoRA,一种面向多租户边缘环境的高效LLM服务系统。EdgeLoRA包含三项关键创新:(1) 自适应适配器选择机制,简化适配器配置流程;(2) 异构内存管理,结合智能适配器缓存与池化,降低内存操作开销;(3) 批量LoRA推理,实现高效批处理,显著降低计算延迟。基于Llama3.1-8B模型的全面评估表明,EdgeLoRA在延迟和吞吐量方面均显著优于现有方案(如llama.cpp),吞吐量最高提升4倍,同时可并发支持数量级更多的适配器。这些结果凸显EdgeLoRA在多租户边缘部署中的变革潜力,为资源受限环境提供可扩展、高效的解决方案。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have gained significant attention due to their versatility across a wide array of applications. Fine-tuning LLMs with parameter-efficient adapters, such as Low-Rank Adaptation (LoRA), enables these models to efficiently adapt to downstream tasks without extensive retraining. Deploying fine-tuned LLMs on multi-tenant edge devices offers substantial benefits, such as reduced latency, enhanced privacy, and personalized responses. However, serving LLMs efficiently on resource-constrained edge devices presents critical challenges, including the complexity of adapter selection for different tasks and memory overhead from frequent adapter swapping. Moreover, given the multiple requests in multi-tenant settings, processing requests sequentially results in underutilization of computational resources and increased latency. This paper introduces EdgeLoRA, an efficient system for serving LLMs on edge devices in multi-tenant environments. EdgeLoRA incorporates three key innovations: (1) an adaptive adapter selection mechanism to streamline the adapter configuration process; (2) heterogeneous memory management, leveraging intelligent adapter caching and pooling to mitigate memory operation overhead; and (3) batch LoRA inference, enabling efficient batch processing to significantly reduce computational latency. Comprehensive evaluations using the Llama3.1-8B model demonstrate that EdgeLoRA significantly outperforms the status quo (i.e., llama.cpp) in terms of both latency and throughput. The results demonstrate that EdgeLoRA can achieve up to a 4 times boost in throughput. Even more impressively, it can serve several orders of magnitude more adapters simultaneously. These results highlight EdgeLoRA's potential to transform edge deployment of LLMs in multi-tenant scenarios, offering a scalable and efficient solution for resource-constrained environments.

边缘计算LoRA多租户推理优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。