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

λScale: 为无服务器大型语言模型推理实现快速扩展

λScale: Enabling Fast Scaling for Serverless Large Language Model Inference

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));University of Virginia(弗吉尼亚大学);Hong Kong University of Science and Technology(香港科技大学);Alibaba Group(阿里巴巴集团);Nokia Bell Labs(诺基亚贝尔实验室)

Minchen Yu, Rui Yang, Chaobo Jia, Zhaoyuan Su, Sheng Yao, Tingfeng Lan, Yuchen Yang, Zirui Wang, Yue Cheng, Wei Wang, Ao Wang, Ruichuan Chen

AI总结:

λScale通过高效模型组播和分布式推理实现无服务器LLM推理的快速扩展,显著提升延迟性能并降低成本。

摘要:

无服务器计算已成为云原生模型推理的有吸引力解决方案。然而,随着现代大型语言模型(LLMs)的持续增长,现有无服务器平台往往面临显著的模型启动开销。这在现实世界中观察到的动态、突发工作负载高效扩展模型实例方面提出了重大挑战。在本文中,我们介绍了λScale,一种高效的无服务器推理系统,以实现快速模型扩展。λScale的核心思想是利用GPU节点之间的高速RDMA网络进行快速模型组播,同时在模型传输期间启用分布式推理执行——称为“执行期间加载”。λScale提出了一种高效的模型扩展方案,λPipe,它支持自适应模型组播,并动态构建执行管道,跨接收节点进行协作分布式推理。此外,λScale支持在GPU和主机内存之间高效的模型管理,允许在不同存储层级上快速扩展模型。评估结果表明,λScale实现了快速模型扩展,并有效处理负载峰值,与最先进的解决方案相比,在真实世界LLM推理跟踪中实现了高达5倍尾部延迟改进和31.3%的成本降低。

英文摘要:

Serverless computing has emerged as a compelling solution for cloud-based model inference. However, as modern large language models (LLMs) continue to grow in size, existing serverless platforms often face substantial model startup overhead. This poses a significant challenge in efficiently scaling model instances to accommodate dynamic, bursty workloads commonly observed in real-world inference services. In this paper, we introduce λScale, an efficient serverless inference system to achieve fast model scaling. The key idea behind λScale is to leverage high-speed RDMA networks between GPU nodes for fast model multicast, while enabling distributed inference execution during model transmission -- referred to as "execute-while-load". λScale proposes an efficient model scaling scheme, λPipe, which supports adaptive model multicast and dynamically constructs execution pipelines across receiving nodes for collaborative, distributed inference. Additionally, λScale supports efficient model management across GPU and host memory, allowing fast scaling for models across different storage tiers. Evaluation results show that λScale enables fast model scaling and effectively handles load spikes, achieving up to 5x tail-latency improvement and 31.3% cost reduction compared to state-of-the-art solutions on real-world LLM inference traces.

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

↑