Hugging Face 耗时 80 万 GPU 小时发布《The Ultimate MoE Training Handbook》
Hugging Face 花了 80 万 GPU 小时把 MoE 训练的坑全踩了一遍写成手册,7 万字免费看,还有能跑的代码。
Hugging Face 团队花费 800k GPU 小时做实验,发布约 7 万字的《The Ultimate MoE Training Handbook》。手册指出当前 20 个最强开源模型中有 18 个采用 Mixture-of-Experts 架构。内容覆盖专家数量与大小选择、all-to-all 通信优化、router 设计(softmax、sigmoid、sqrt(softplus))、DeepSeek 的 loss-free bias 等具体问题。手册附带 55 个交互图表和可运行代码,在 Hugging Face Spaces 免费开放。
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: huggingface.co/spaces/hugging… Your browser does not support the video tag. 🔗 View on Twitter 💬 14 🔄 13 ❤️ 77 👀 2486 📊 31 ⚡