跳到正文
Dongxi 东锡 NLP· @dongxi_nlp · X·· 26 天前AI 评分70
AI 导读

Hugging Face 发布免费开源的《The Ultimate MoE Training Handbook》,基于 800k GPU 小时的实验,围绕训练团队常见问题组织内容,包括专家数量与规模、共享专家、all-to-all 通信开销、路由函数选择、辅助损失与 DeepSeek 的无损偏置、稠密 checkpoint 复用以及推理时减少每 token 专家数等。手册约 7 万词,含 55 个交互图表和可运行代码,并附有实验数据。

正文

裂墙推荐就完事了!

如何训练 Mixture-of-Experts.

The Ultimate MoE Training Handbook

引用Thomas Wolf@Thom_Wolf
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://huggingface.co/spaces/huggingface/moe-blogpost
在 X 查看被引用的帖子

来源:Dongxi 东锡 NLP · x.com