Thomas Wolf 团队正式免费开源《终极 MoE 训练手册》(The Ultimate MoE Training Handbook),基于 80 万 GPU 小时实验系统梳理了 MoE 训练技术细节。手册篇幅约 7 万字,配有 55 个交互图表与可运行代码,重点解答了专家规模设置、全互联通信隐藏、路由算法选型、DeepSeek 无损偏置以及密集检查点升级等工程实践难题。
手册汇总了八十万卡时的实测经验与可运行代码,为模型训练团队在混合专家架构选型和通信优化上提供了系统参考。
18 of the 20 best open models today are Mixture-of-Experts. Dense is basically over.
And yet the know-how to train a good MoE still lives mostly in the heads of a handful of teams.
So we spent 800k GPU hours running the experiments ourselves and wrote everything down. Super happy to finally release "The Ultimate MoE Training Handbook", free and open, organized around the questions training teams hit:
- how many experts, how big, shared or not?
- why is half my step spent in all-to-all, and how do I hide it?
- why is my run 25x slower with no error in the logs?
- softmax, sigmoid or sqrt(softplus) router, and why keep it in fp32?
- aux loss or DeepSeek's loss-free bias?
- upcycle a dense checkpoint or train from scratch?
- can I serve with fewer experts per token than I trained with?
⚠️ Warning: it's long (~70k words, budget a few days, sorry) but with 55 interactive figures, code you can run and numbers from our own runs.
Read it here: https://t.co/6XihlUrj92
来源:Thomas Wolf · x.com