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.


翻译:暂无翻译

0
下载
关闭预览

相关内容

模型不work怎么办?141页PPT告诉你怎么改模型
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
深度学习中Attention Mechanism详细介绍:原理、分类及应用
深度学习与NLP
10+阅读 · 2019年2月18日
meta learning 17年:MAML SNAIL
CreateAMind
11+阅读 · 2019年1月2日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
18+阅读 · 2018年12月24日
国家自然科学基金
20+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
11+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
10+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
6+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
10+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
17+阅读 · 11月25日
相关VIP内容
相关基金
国家自然科学基金
20+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员