Skip to main content
Miles supports Google’s Gemma-4 in both released instruction-tuned sizes. Both train as language models on the base VLM checkpoint, through the HF to Megatron bridge (--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-dense branch of radixark/Megatron-Bridge, and runs a smaller per-GPU token budget because its 60 dense layers cost more activation memory per token.

Pairs well with