Muse-Spark-open-816B-A42B
Muse Spark Open is an omni Mixture-of-Experts model with an approximately
816B-parameter language backbone and 42B active parameters per token.
NeMo AutoModel provides a native model implementation, configuration,
multimodal processor, and checkpoint adapter for
meta-models/Muse-Spark-open-816B-A42B.
Model Reference
Model Architecture
The language backbone mixes 46 sliding-window attention layers with 16 full-attention layers. Sliding layers use a 2048-token causal window and adjacent-pair RoPE; full-attention layers omit RoPE. Attention includes Q/K normalization, output normalization, and a sigmoid output gate. MoE blocks project into a 4096-wide expert space and apply pre-expert and post-expert normalization.
The multimodal implementation includes a 50-layer NaViT vision tower, image and video preprocessing, and a waveform audio encoder. The recipes below cover text and image-text training. Audio and video training are outside the scope of these examples.
Choose a Workflow
Run the commands below from the linked recipe revision.
These distributed recipes instantiate the complete 62-layer model. The non-packed recipes pad or truncate each source sample to 4096 model tokens and freeze the vision and audio towers while training the language model or its LoRA adapters.
Run MedPix LoRA
Follow the installation instructions and the Slurm cluster guide. Use an environment with Transformer Engine, HybridEP, and the fused linear cross-entropy dependency installed.
Point MUSE_SPARK_MODEL to the checkpoint directory. The model path and run
directory must be accessible to every worker:
Within an eight-node allocation with four GB200 GPUs per node, run one
torchrun launcher per node. Set NODE_RANK to the node index from 0 to 7 and
MASTER_ADDR to the first node’s reachable hostname:
The LoRA recipe uses local batch size 1, global batch size 32, and one gradient accumulation step. It uses TE FusedAdam with FP32 master weights, parameter remainders, and BF16 optimizer moments. W&B and checkpoint writing are disabled by default; enable and configure them explicitly for runs whose metrics or checkpoints must be retained.
Packed Context Parallelism
Packed training preserves document boundaries through THD cumulative sequence lengths and per-document position IDs. Attention remains causal within each document, so tokens cannot attend across packed document boundaries. The 2048-token sliding-attention window does not impose a maximum document length.
The checked-in 128K recipe uses MagiAttention for packed text and combines
EP32, PP2, CP32, and VPP2 Interleaved1F1B on 64 GB200 GPUs. It uses local batch
size 8, global batch size 8, DP1, and one gradient accumulation step. The
default prepacked dataset location is
data/tulu3_128k_longdoc_shuffle_v2/train; override dataset.dataset_path at
launch when the packs are stored elsewhere.
Prepare the Tulu 3 documents with the model tokenizer and seed 1234. Shuffle eligible documents before packing, preserve each document boundary in the THD metadata, and shuffle the completed packed rows once more. Reuse the frozen packs and row order when comparing parallel configurations.
MagiAttention and its Blackwell attention-kernel dependencies must be present in the training environment. The Magi path is for packed text; image, video, and audio inputs are not supported by that path.
Distributed and Kernel Support
- FSDP2, expert parallelism, context parallelism, and pipeline parallelism, including Interleaved1F1B.
- Activation checkpointing and separate dense and MoE
reshard_after_forwardcontrols. - Transformer Engine and MagiAttention backends, TE linear layers, HybridEP
dispatch, and native
torch_mmgrouped experts. - Compiled normalization, QK-normalization/RoPE fusion, and output-normalization/gate fusion.
- Fused LM head plus cross entropy with the checkpoint’s logit soft cap of 20.
Tensor parallelism greater than one and TE GroupedLinear experts are not supported for this architecture. Preserve each recipe’s batch and parallelism relationships when adapting a launch.
See the LLM fine-tuning guide for shared training options.