--megatron-to-hf-mode bridge), so there is no offline torch_dist conversion.
Variants
Fastest path to train
Both recipes run on a single 8-GPU node:--num-nodes 1 shortens the response length for a smoke test. See
Gemma-4 for the full walkthrough.
Which variant do I pick?
- Cheaper to train, sparse → 26B-A4B. Four billion active parameters, and expert parallelism carries the width.
- Dense, no routing to reason about → 31B. It needs the
gemma4-densebranch ofradixark/Megatron-Bridge, and runs a smaller per-GPU token budget because its 60 dense layers cost more activation memory per token.
Pairs well with
- Backends Beyond Megatron, the bridge path Gemma rides on.
- P2P Weight Transfer

