bridge.recipes.muse_spark_open.gb200.muse_spark_open#
Bounded GB200 training recipes for Muse Spark Open.
Every recipe dispatches the 256 routed experts with HybridEP, which needs each expert-parallel group inside one NVL72 NVLink domain (16 nodes of 4 GPUs); allocate nodes in 16-node segments, one per NVL72 rack. The 4K and 8K SFT, LoRA, and image-text SFT recipes shard the experts with EP64: one EP64 group is one pipeline stage’s 64 contiguous ranks, so the 192-GPU EP64 recipes run three pipeline stages and the 256-GPU one four. The 16-GPU image-text LoRA recipe and the 16-GPU pretraining proxy, which keeps the first six decoder blocks, use EP16 inside one NVLink domain. The pretraining and the 32K and 64K SFT recipes keep EP32, one group per pipeline stage of 32 ranks: pretraining runs TP1 with full activation recompute and six pipeline stages on 192 GPUs, where that layout is faster than EP64 without recompute, or eight stages on 256 GPUs; the 32K recipe runs TP4/PP6/CP4 and recomputes only the MoE layers, and the 64K recipe runs TP4/PP6/CP4 with full activation recompute. The image-text SFT recipe also recomputes full layers because its first stage trains the vision tower.
Each recipe is self-contained: it sets every model, data, and training option it relies on, even where that repeats another recipe.
Module Contents#
Functions#
Return a 100-step bounded text pretraining config on 192 GB200 GPUs. |
|
Return a 100-step bounded text pretraining config on 256 GB200 GPUs with eight pipeline stages. |
|
Return a deterministic 100-step text pretraining config for a six-block proxy on 16 GB200 GPUs. |
|
Return a one-epoch full SFT config on 100K packed Tulu 3 conversations with 192 GB200 GPUs. |
|
Return a 100-step full SFT config on packed Tulu 3 data with 256 GB200 GPUs and four pipeline stages. |
|
Return a 20-step packed 32K Tulu 3 full SFT config with context parallelism on 192 GB200 GPUs. |
|
Return a 20-step packed 64K CoderForge agent-trajectory full SFT config with CP4 on 192 GB200 GPUs. |
|
Return a one-epoch LoRA config on 100K packed Tulu 3 conversations with 64 GB200 GPUs. |
|
Return a 100-step attention-projection LoRA config on image-text CORD-v2 data with 16 GB200 GPUs. |
|
Return a 100-step full SFT config on image-text CORD-v2 data with 192 GB200 GPUs. |
Data#
API#
- bridge.recipes.muse_spark_open.gb200.muse_spark_open._MODEL_ID#
‘meta-models/Muse-Spark-Open-816B-A42B’
- bridge.recipes.muse_spark_open.gb200.muse_spark_open._CORD_V2_REVISION#
‘7f0115a4b758a71d6473b8d085751692da2fef98’
- bridge.recipes.muse_spark_open.gb200.muse_spark_open._TULU3_REVISION#
‘b14afda60f1bbebe55d5d2fa1e4df5042f97f8be’
- bridge.recipes.muse_spark_open.gb200.muse_spark_open._CODERFORGE_REVISION#
‘060fca96cf723b2ebab3181e9e59fafd273df3cb’
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_pretrain_192gpu_gb200_bf16_config() megatron.bridge.training.config.ConfigContainer#
Return a 100-step bounded text pretraining config on 192 GB200 GPUs.
TP1/PP6/EP32 gives every GPU a unique slice of the experts. The data is text-only, so the perception towers stay frozen rather than receiving only weight decay. Pass the imported checkpoint with
--pretrained_checkpointto start from natural expert routing; the recipe leaves it unset.The peak learning rate is 3e-5, decaying to 3e-6, instead of the bounded pretraining contract’s from-scratch 3e-4: at 3e-4 the warm-started model’s loss rises until the learning rate decays, while at 3e-5 it falls.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_pretrain_256gpu_gb200_bf16_config() megatron.bridge.training.config.ConfigContainer#
Return a 100-step bounded text pretraining config on 256 GB200 GPUs with eight pipeline stages.
TP1/PP8/EP32 makes each pipeline stage’s 32 contiguous ranks (8 nodes) one HybridEP group inside one NVL72 domain and gives every GPU a unique slice of the experts. The data-parallel size is 32, as in the 192-GPU recipe, so both see the same batches. The data is text-only, so the perception towers stay frozen. Pass the imported checkpoint with
--pretrained_checkpoint.The peak learning rate is 3e-5, decaying to 3e-6, instead of the bounded pretraining contract’s from-scratch 3e-4: at 3e-4 the warm-started model’s loss rises until the learning rate decays, while at 3e-5 it falls.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_pretrain_16gpu_gb200_bf16_proxy_config() megatron.bridge.training.config.ConfigContainer#
Return a deterministic 100-step text pretraining config for a six-block proxy on 16 GB200 GPUs.
The proxy keeps the first six of the 62 decoder blocks at full width, with their attention schedule: sliding-window attention with RoPE in blocks 0, 2, 3, and 4, and full attention without RoPE in blocks 1 and 5. Each block keeps the gated attention, the residual gates, and the latent MoE with all 256 routed experts and top-8 sigmoid routing, so the proxy runs every decoder computation of the full model with 82B parameters, 5.8B of them active per token. TP1/PP1/EP16 makes the 16 GPUs one HybridEP group inside one NVL72 domain, and the 16 data-parallel replicas run 16 microbatches each per step at GBS 256; activations fit without recompute.
Megatron-Core deterministic mode with the unfused cross-entropy loss and NCCL Ring makes reruns on one software stack repeat the same losses. Pass a checkpoint cut to the first six blocks with
--pretrained_checkpointto start from natural expert routing; the recipe leaves it unset.The peak learning rate is 3e-4, decaying to 3e-5, instead of the 192-GPU recipe’s 3e-5. The cut model starts above the loss of a uniform guess because its output layer was trained on the last block’s output: at 3e-5 the loss is still above 5 when warmup ends at step 40, while at 3e-4 it falls below 5 by step 20 and keeps falling without spikes. Every other setting matches the 192-GPU recipe.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_sft_192gpu_gb200_bf16_config() megatron.bridge.training.config.ConfigContainer#
Return a one-epoch full SFT config on 100K packed Tulu 3 conversations with 192 GB200 GPUs.
The first 100,000 Tulu 3 conversations pack into 10,951 4K sequences; 85 steps at GBS 128 make one epoch. TP4/PP3/EP64 with sequence parallelism makes each pipeline stage one EP64 HybridEP group in one NVL72 domain and leaves 16 data-parallel replicas, each running eight microbatches per step. The stages hold 21, 22, and 19 decoder blocks; the first also holds the embedding with the perception towers and the last the output layer.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_sft_256gpu_gb200_bf16_config() megatron.bridge.training.config.ConfigContainer#
Return a 100-step full SFT config on packed Tulu 3 data with 256 GB200 GPUs and four pipeline stages.
Data is Tulu 3 train[:10000] packed to 8K at GBS 8, the cross-model bounded SFT contract; the 192-GPU recipe instead trains one epoch of 100K conversations at 4K and GBS 128. TP4/PP4/CP2/EP64 with sequence parallelism makes each pipeline stage one EP64 HybridEP group in one NVL72 domain and leaves eight data-parallel replicas, one packed sequence each. Context parallelism uses A2A because Transformer Engine rejects P2P for the sliding-window layers.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_sft_192gpu_gb200_bf16_long_context_config() megatron.bridge.training.config.ConfigContainer#
Return a 20-step packed 32K Tulu 3 full SFT config with context parallelism on 192 GB200 GPUs.
TP4/PP6/CP4/EP32 with sequence parallelism leaves two data-parallel replicas, each running four microbatches per step, which keeps the six-stage pipeline busier than CP2 with two microbatches. Context parallelism uses A2A because Transformer Engine rejects P2P for the sliding-window layers. Packing aligns each sequence to lcm(2CP, TPCP) = 16. Backward recomputes only the MoE layers.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_sft_192gpu_gb200_bf16_coderforge_64k_config() megatron.bridge.training.config.ConfigContainer#
Return a 20-step packed 64K CoderForge agent-trajectory full SFT config with CP4 on 192 GB200 GPUs.
SWE-Rebench trajectories are long single sequences (median about 46K tokens), so they exercise the 2,048-token sliding window and long-range full attention under context parallelism, unlike packed short chat rows. TP4/PP6/CP4/EP32 with sequence parallelism keeps 4K tokens per GPU and leaves two data-parallel replicas. Packing aligns each sequence to lcm(2CP, TPCP) = 16. Experts are dispatched with HybridEP and backward recomputes full layers. Only the SWE-Rebench files are downloaded; the dataset metadata lists every split, so split completeness is not verified.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_peft_64gpu_gb200_bf16_config(
- peft_scheme: str | megatron.bridge.peft.base.PEFT = 'lora',
Return a one-epoch LoRA config on 100K packed Tulu 3 conversations with 64 GB200 GPUs.
LoRA rank 32 / alpha 32 adapts the attention projections, every routed expert (one adapter per expert), and the latent MoE projections. The frozen base runs at TP4/PP1/EP64 with sequence parallelism: the EP64 HybridEP group is all 64 GPUs in one NVL72 domain, and 16 data-parallel replicas each run eight microbatches of GBS 128 packed 4K sequences; 85 steps make one epoch of the 10,951 packs from the first 100,000 Tulu 3 conversations. DoRA has no per-expert adapter controls and keeps attention-only adapters.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_peft_16gpu_gb200_bf16_multimodal_config(
- peft_scheme: str | megatron.bridge.peft.base.PEFT = 'lora',
Return a 100-step attention-projection LoRA config on image-text CORD-v2 data with 16 GB200 GPUs.
The frozen base runs at TP4/EP16 with sequence parallelism; 16 GPUs hold one EP16 HybridEP group inside one NVL72 domain. Context parallelism uses A2A because Transformer Engine rejects P2P for sliding-window layers.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.muse_spark_open_sft_192gpu_gb200_bf16_multimodal_config() megatron.bridge.training.config.ConfigContainer#
Return a 100-step full SFT config on image-text CORD-v2 data with 192 GB200 GPUs.
TP4/PP3/EP64 with sequence parallelism makes each pipeline stage one EP64 HybridEP group in one NVL72 domain and leaves 16 data-parallel replicas. The stages hold 21, 22, and 19 decoder blocks; the first also holds the embedding with the perception towers and the last the output layer. Backward recomputes full layers: the first stage also trains the vision tower, and without recompute it runs out of memory. The audio tower stays frozen because the image-text dataset never exercises it.
- bridge.recipes.muse_spark_open.gb200.muse_spark_open.__all__#
[‘muse_spark_open_peft_16gpu_gb200_bf16_multimodal_config’, ‘muse_spark_open_peft_64gpu_gb200_bf16_c…