arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.19945cs.DCcs.AIcs.CL
收藏

GEM: 为MoE系统设计的GPU变异性感知专家到GPU映射

GEM: GPU-Variability-Aware Expert to GPU Mapping for MoE Systems

The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Sourish Wawdhane, Avinash Kumar, Poulami Das

AI总结:

GEM通过考虑GPU变异性,优化MoE模型中专家到GPU的映射,从而减少延迟,提升系统性能。

摘要:

混合专家(MoE)模型通过使用较小的专家并按每个token激活子集来实现高效的推理。MoE服务引擎将专家分布在多个GPU上,并在推理时根据激活的专家将token路由到适当的GPU。它们以锁步方式处理token,即每个batch中的token必须完成处理后才能进入下一层。这种同步障碍成为关键瓶颈,因为MoE模型的性能受限于最后一个完成的GPU(straggler)。stragglers出现在太多重用的专家被放置在同一GPU或最慢的GPU时。尽管先前的工作将专家平衡token负载分布在GPU上,但都忽略了GPU的变异性,并经常将高使用量的专家放置在最慢的GPU上。我们提出了GEM,即GPU变异性感知的专家映射框架,用于MoE模型的GPU变异性感知专家到GPU映射。GEM利用两个洞察:首先,必须将专家放置在每个GPU上根据其变异性接收非均匀的token负载,并且它们都在大约同一时间完成处理一层。我们的研究显示,存在两种类型的专家:一致的专家,通常被使用,以及时间性的专家,通常在剩余时间内一起使用。我们的第二个洞察是必须将同时使用的一致和时间性专家放置在不同的GPU上,并避免将它们放置在较慢的GPU上以减少延迟。GEM收集每个模型和任务的GPU变异性资料,并利用每个任务的token负载分布来映射专家到GPU。我们的实验表明,GEM在平均上将端到端延迟提高了7.9%,与基线相比最高提高了16.5%。

英文摘要:

Mixture-of-Expert (MoE) models enable efficient inference by employing smaller experts and activating only a subset of them per token. MoE serving engines distribute experts across multiple GPUs and route tokens to appropriate GPUs at inference time based on experts activated. They process tokens in lock-step fashion, where tokens within a batch must finish processing before proceeding to the next layer. This synchronization barrier acts as a critical bottleneck because the performance of MoE models is limited by the straggler GPU that finishes last. Stragglers emerge when too many heavily used experts are placed on the same GPU or the slowest GPU. While prior works place experts that balance token loads across GPUs, they all overlook GPU variability and often place highly used experts on the slowest GPUs. We propose GEM, GPU-variability-aware Expert Mapping, a framework for GPU variability-aware expert to GPU mapping for MoE models. GEM exploits two insights. First, we must place experts such that each GPU receives non-uniform token loads based on their variability and they all finish processing a layer at about the same time. Our studies show that there are two types of experts: consistent that are used most of the time and temporal that are often used together for the remaining time. Our second insight is that we must place simultaneously used consistent and temporal experts on different GPUs and avoid placing them on slower GPUs to reduce slowdown. GEM gathers the variability profile of GPUs for each model and task and uses the token load distributions per task to map experts to GPUs. Our experiments show that GEM improves end-to-end latency by 7.9% on average and by up to 16.5% compared to the baseline.

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

↑