arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.05313cs.DCcs.LG
收藏

优化无服务器计算中混合专家模型推理的分布式部署

Optimizing Distributed Deployment of Mixture-of-Experts Model Inference in Serverless Computing

The University of Hong Kong(香港大学);The Hong Kong University of Science and Technology(香港科技大学)

Mengfan Liu, Wei Wang, Chuan Wu

AI总结:

针对无服务器平台上大型MoE推理的专家热度倾斜与scatter-gather通信瓶颈,提出结合多维epsilon-greedy搜索的贝叶斯优化部署框架,在AWS Lambda上显著降低计费成本并保持吞吐量。

摘要:

随着无服务器计算的发展,在无服务器平台上运行机器学习(ML)推理服务因其免运维的可扩展性和成本效益而受到推崇。混合专家(MoE)模型凭借并行的专家网络,已成为当今支撑大模型的主流模型架构类型之一。在无服务器计算上服务大型MoE模型具有潜在收益,但由于在MoE模型执行中处理倾斜的专家热度和scatter-gather通信瓶颈存在重大挑战,该方向尚未得到充分研究,难以实现兼具成本效益的无服务器MoE部署与性能保障。我们研究在无服务器平台上优化MoE模型部署和分布式推理服务,以有效预测专家选择、将通信与模型执行流水线化,并最小化服务MoE模型的总体计费成本。特别是,我们提出了一个带有多维epsilon-greedy搜索的贝叶斯优化框架,用于学习专家选择和实现最优计费成本的MoE部署,包括:1)用于预测专家热度的贝叶斯决策方法;2)灵活流水线化的scatter-gather通信;以及3)用于分布式MoE服务的最优模型部署算法。在AWS Lambda上的大量实验表明,与CPU集群相比,我们的设计将所有MoE层的计费成本降低了至少75.67%,同时保持了令人满意的推理吞吐量。与无服务器计算中的LambdaML相比,我们的设计实现了43.41%的成本降低,而吞吐量下降最多为18.76%。

英文摘要:

With the advancement of serverless computing, running machine learning (ML) inference services over a serverless platform has been advocated, given its labor-free scalability and cost effectiveness. Mixture-of-Experts (MoE) models have been a dominant type of model architectures to enable large models nowadays, with parallel expert networks. Serving large MoE models on serverless computing is potentially beneficial, but has been underexplored due to substantial challenges in handling the skewed expert popularity and scatter-gather communication bottleneck in MoE model execution, for cost-efficient serverless MoE deployment and performance guarantee. We study optimized MoE model deployment and distributed inference serving on a serverless platform, that effectively predict expert selection, pipeline communication with model execution, and minimize the overall billed cost of serving MoE models. Especially, we propose a Bayesian optimization framework with multi-dimensional epsilon-greedy search to learn expert selections and optimal MoE deployment achieving optimal billed cost, including: 1) a Bayesian decision-making method for predicting expert popularity; 2) flexibly pipelined scatter-gather communication; and 3) an optimal model deployment algorithm for distributed MoE serving. Extensive experiments on AWS Lambda show that our designs reduce the billed cost of all MoE layers by at least 75.67% compared to CPU clusters while maintaining satisfactory inference throughput. As compared to LambdaML in serverless computing, our designs achieves 43.41% lower cost with a throughput decrease of at most 18.76%.

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

↑