计算机科学 > 分布式、并行与集群计算
[提交于 2026年11月30日]
标题:Activation-Aware Balancing of Fused CPU and GPU Expert Execution for Offline MoE Inference
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Frontier Mixture-of-Experts (MoE) models do not fit in single commodity GPU memory, so their routed experts stay in host memory and the CPU and GPU compute them together. The expert activation pattern of an MoE call, characterized by the number of activated experts and the tokens routed to each, affects the relative efficiency of CPU and GPU execution. In offline throughput-oriented inference, context length limits how many sequences fit in GPU memory, causing activation patterns and the optimal CPU-GPU partition to vary across workloads. Existing approaches sum fixed per-expert CPU costs, although a fused CPU call shifts between memory-bound and compute-bound execution as the activation changes. As a result, they often transfer too many experts to the GPU. To address these limitations, we present HeteroMoE, an activation-aware expert scheduler that selects the CPU-GPU partition for each MoE call based on its live activation pattern and GPU cache state. Its roofline cost model captures the compute and memory limits of the fused CPU call and the PCIe weight transfers of the GPU branch, determining how many of the most heavily activated uncached experts to transfer. An engine with one synchronization per layer and optimized kernels runs this partition close to the measured hardware limits. On the H100 server, HeteroMoE outperforms the strongest baseline in end-to-end throughput by 1.45-4.40$\times$ on DeepSeek-R1 and 1.51-3.70$\times$ on Kimi-K2. On the A6000 server, it is 1.16-3.86$\times$ faster on DeepSeek-R1.
提交历史
来自:Borui Xu[v1] 2026年11月30日 星期一 08:27:51 UTC (850 KB)