Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Hugging Face releases a practical MoE training handbook for Megatron-LM

AI summary

Hugging Face authors released a practical handbook for training Mixture-of-Experts models with Megatron-LM, along with 55 figures, scripts, and a consolidated block of recommended flags. It covers hardware testing, image building, dense-baseline training, a one-node MoE comparison, routing and load balancing, serving, and reinforcement learning. The authors say its lessons draw on about 800,000 GH200 GPU-hours of MoE training on CSCS's Alps cluster; this figure was not independently verified in the supplied reports.

In-depth insight

The handbook provides developers with an end-to-end reference for moving from dense-model training to MoE training with Megatron-LM, including code, scripts, configuration guidance, and recommendations based on the authors' reported training experience.

This handbook is for people who have trained a dense model and want to train an MoE next, or who are curious how MoE training works. Chapter 2 is a Megatron-LM runbook: test the hardware, build the image, train a dense baseline, then a first MoE on one node, compared against that baseline. Chapter 3 takes the MoE layer apart (router, routing, load balancing, experts, block layout, training, systems). For each part we give the Megatron-LM code, what to watch, our recommendation, and what frontier MoEs chose. Chapter 4 follows the model into serving and RL. Chapters 3 and 4 need no GPU. When a result comes from our runs, we say so. Claims about frontier models cite their paper, config or code, and the toy simulations are labelled as such. The lessons come from about 800k GH200 GPU-hours of MoE training on the Alps cluster at CSCS. Released: the handbook, its 55 figures as a gallery (https://huggingface.co/spaces/huggingface/moe-gallery), the scripts (https://gist.github.com/nmntz/5de952d686f66d7bce5bce8cba9d7139), and every recommended flag in one Megatron-LM block. Happy to answer questions! submitted by /u/lvwerra [link] [comments]

#Hugging Face#Megatron-LM#CSCS#Alps#GH200

Original · 1 min readRead the original
Group chat

No comments yet. Start the conversation.