arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.01848cs.LGcs.DC

Optimizing Mixture of Experts using Dynamic Recompilations

ETH Zurich(苏黎世联邦理工学院);Carnegie Mellon University(卡内基梅隆大学)

Ferdinand Kossmann, Zhihao Jia, Alex Aiken

英文摘要:

The Mixture of Experts architecture allows for outrageously large neural networks by scaling model parameter size independently from computational demand (FLOPs). However, current DNN frameworks cannot effectively support the dynamic data flow in Mixture of Experts, and implementations on top of these frameworks need to use workarounds that introduce significant overheads. To address the limitation of these frameworks, we present DynaMoE, a DNN library that uses dynamic recompilations to optimize and adapt the use of computational resources to the dynamic needs of Mixture of Experts models. Our evaluation shows that DynaMoE achieves a 1.8x speedup and supports 2.3x larger model sizes when compared to existing MoE systems, even when not using recompilations. We then present further optimizations enabled by dynamic recompilations that yield an additional 1.7x speedup while simultaneously reducing memory pressure and improving model quality.

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

↑