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

通过动态模块缩放释放细粒度 LLM 服务的潜力

Unlock the Potential of Fine-grained LLM Serving via Dynamic Module Scaling

Jingfeng Wu, Yiyuan He, Minxian Xu, Xitong Gao, Kejiang Ye, Chengzhong Xu

AI总结:

本文提出弹性 LLM 服务系统 CoCoServe,通过模块级复制、迁移与自动缩放机制动态分配资源,在保持可用性时降低成本并显著改善延迟和吞吐量。

摘要:

大型语言模型(LLM)的兴起为各个领域带来了新机遇,但也给资源管理带来了重大挑战。当前的 LLM 服务系统面临一种根本性矛盾:需要在适应不可预测流量模式的同时,平衡服务需求与有限资源。静态部署会导致资源利用次优,并在动态工作负载下造成性能下降。此外,调整实例的高昂成本阻碍了动态缩放,限制了高效 LLM 服务的真正潜力。为解决这一问题,我们提出 CoCoServe,这是一个支持动态、细粒度缩放的弹性系统。其关键创新在于面向 LLM 模块(如 decoder layers 和 projections)复制与迁移的模块级操作。通过全面分析这些操作相关的权衡,我们开发了一种自动缩放机制,可动态调节模块级资源分配和性能优化,从而实现更具成本效益的 LLM 部署。评估表明,CoCoServe 采用的缩放操作展现出优异的可扩展性,并能在保持可用性的同时降低 46% 的成本。与最先进的 LLM 服务系统(例如 Hugging Face Transformers 和 vLLM)相比,我们的方法在不同模型规模和工作负载下,平均将延迟降低 14%-75%,并实现 1.16 倍至 4 倍的吞吐量。

英文摘要:

The rise of large language models (LLMs) has created new opportunities across various fields but has also introduced significant challenges in resource management. Current LLM serving systems face a fundamental tension: balancing serving demands with limited resources while adapting to unpredictable traffic patterns. Static deployments lead to suboptimal resource utilization and performance degradation under dynamic workloads. Furthermore, the high cost of adjusting instances hinders dynamic scaling, limiting the true potential of efficient LLM serving. To address this, we propose CoCoServe, an elastic system that facilitates dynamic and fine-grained scaling. Its key innovation lies in the module-level operations for the replication and migration of LLM modules, such as decoder layers and projections. Through a comprehensive analysis of the trade-offs associated with these operations, we develop an auto-scaling mechanism that dynamically regulates module-level resource allocation and performance optimization, enabling a more cost-effective deployment of LLMs. Our evaluation demonstrates that the scaling operations employed by CoCoServe exhibit excellent scalability and can reduce costs by 46% while maintaining availability. Compared to state-of-the-art LLM serving systems (e.g., Hugging Face Transformers and vLLM), our approach reduces latency by 14%-75% and achieves 1.16x-4x throughput on average across different model sizes and workloads.

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

↑