MoEless:通过无服务器计算实现高效的MoE大语言模型服务
MoEless: Efficient MoE LLM Serving with Serverless Experts
AI总结:
MoEless通过无服务器计算实现高效的MoE大语言模型服务,减少推理延迟和成本。
摘要:
大型语言模型(LLMs)已成为人工智能的基石,推动了内容创作、搜索和推荐系统以及AI辅助工作流等多样化领域的进步。为缓解极端训练成本和模型规模的提升,混合专家(MoE)已成为现代LLMs的流行基础架构,通常使用专家并行性(EP)在分布式部署中进行服务。然而,MoE的稀疏激活机制导致严重的专家负载不平衡,其中几个专家过载而其他专家闲置,导致专家滞后者,从而增加推理延迟和服务成本。现有的专家负载平衡解决方案假设在服务器充足的基础架构上具有静态资源配置,限制了专家的可扩展性和弹性,导致要么成本高昂的实时专家交换,要么生成质量下降。我们提出了MoEless,这是首个无服务器MoE服务框架,通过无服务器专家减轻专家负载不平衡并加速推理。MoEless采用轻量级、层感知的预测器,准确估计 incoming 专家负载分布,并主动识别滞后者。我们设计了优化的专家扩展和放置策略,以最大化功能局部性,提高GPU利用率,并在专家和GPU之间平衡负载。MoEless是在Megatron-LM上原型化并部署在八块GPU测试平台上的。使用开源MoE模型和真实世界工作负载的实验表明,与最先进的解决方案相比,MoEless将推理延迟减少了43%,将推理成本减少了84%。
英文摘要:
Large Language Models (LLMs) increasingly adopt Mixture-of-Experts (MoE) architectures to scale efficiently under stringent resource constraints. However, MoE's sparse activation causes severe expert load imbalance, where a few experts become stragglers while others remain underutilized, leading to inflated inference latency and cost. Existing solutions assume static, serverful model deployments, limiting expert elasticity and often incurring costly expert swapping or degraded output quality. We present MoEless, an efficient serverless MoE serving framework that mitigates expert load imbalance via elastic expert execution. MoEless leverages lightweight, layer-aware predictors to estimate incoming expert load distributions and proactively identify stragglers. We design optimized scaling and placement strategies to improve function locality, GPU utilization, and cross-expert load balance. MoEless is prototyped on top of Megatron-LM and deployed on an eight-GPU testbed. Experiments with open-source MoE models and real-world workloads show that MoEless reduces inference latency by 43% and inference cost by 84% compared to state-of-the-art solutions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。