Hugging Face 发布《The Ultimate MoE Training Handbook》免费开源
来自:https://t.co/c0J98gds7s
Hugging Face 花了 80 万 GPU 小时做实验,把 MoE 训练的坑全写成一本书,还带可跑的代码。想自己训 MoE 的直接收藏。
Hugging Face 的 Thomas Wolf 宣布发布《The Ultimate MoE Training Handbook》,耗用 80 万 GPU 小时跑实验整理而成。手册以问题为导向,覆盖专家数量与规模选择、all-to-all 通信隐藏、路由器选型、辅助损失与 DeepSeek 的 loss-free bias 对比等训练细节。全文约 7 万字,含 55 张交互式图表、可运行代码及 Hugging Face 自身实验数据。Wolf 指出当前 20 个最佳开源模型中有 18 个是 MoE 架构,而 MoE 训练经验仍集中在少数团队手中,这本手册旨在公开这些知识。
来自:https://t.co/c0J98gds7s
来自: x.com/Thom_Wolf/stat… 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: huggingface.co/spaces/hugging… Your browser does not support the video tag. 🔗 View on Twitter 🔗 View Quoted Tweet 💬 0 🔄 0 ❤️ 0 👀 326 ⚡