MoE-GPS:MoE负载均衡中动态专家复制的预测策略指南
MoE-GPS: Guidlines for Prediction Strategy for Dynamic Expert Duplication in MoE Load Balancing
AI总结:
针对多GPU MoE推理中动态专家复制需先预测token分布的问题,提出MoE-GPS框架量化预测开销与系统性能,并推荐Distribution-Only Prediction,在Mixtral 8x7B MMLU上提升端到端性能超23%。
摘要:
在多GPU混合专家(Mixture-of-Experts,MoE)网络中,专家分布在不同GPU上,由于每个专家处理的token数量不同,会造成负载不均衡。近期工作通过将热门专家动态复制到更多GPU以处理过量token,从而改善MoE推理负载均衡,但这需要在路由之前预测分布。本文讨论了预测策略、准确率、开销与端到端系统性能之间的权衡。我们提出MoE-GPS框架,通过量化对系统级模型运行时的性能影响,指导在各种系统配置下选择最优预测器设计。具体而言,我们倡导仅分布预测(Distribution-Only Prediction),该策略只预测整体token分布,与传统的Token-to-Expert Prediction相比可显著降低开销。在Mixtral 8x7B的MMLU数据集上,MoE-GPS建议采用Distribution-Only Prediction;与Token-to-Expert Prediction相比,其端到端推理性能提升超过23%。
英文摘要:
In multi-GPU Mixture-of-Experts (MoE) network, experts are distributed across different GPUs, which creates load imbalance as each expert processes different number of tokens. Recent works improve MoE inference load balance by dynamically duplicating popular experts to more GPUs to process excessive tokens, which requires predicting the distribution before routing. In this paper, we discuss the tradeoff of prediction strategies, accuracies, overhead, and end-to-end system performance. We propose MoE-GPS, a framework that guides the selection of the optimal predictor design under various system configurations, by quantifying the performance impact to system-level model runtime. Specifically, we advocate for Distribution-Only Prediction, a prediction strategy that only predicts overall token distribution which significantly reduces overhead compared to the traditional Token-to-Expert Prediction. On Mixtral 8x7B MMLU dataset, MoE-GPS suggests Distribution-Only Prediction which improves end-to-end inference performance by more than 23% compared with Token-to-Expert Prediction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。