The right model for every task. Try Nexus

Blog

Scaling and Optimizing Frontier Model Training

How Fireworks scales frontier model training and offers the broadest set of fine-tunable MoE models on any platform.

COMPOSABLE PARALLELISMQwen-MoE decoder blocks × N. Both pipeline stages process different microbatches simultaneously.FSDPStage 0 (GPU 0)microbatch NBlock 0Self-AttentionMoE FFNBlock 1Self-AttentionMoE FFNμNStage 1 (GPU 1)microbatch N−1Block 2Self-AttentionMoE FFNBlock 3Self-AttentionMoE FFNμN−1FSDP (DATA PARALLELISM)All-gathers sharded parameters before each layerShard 0Shard 1Shard 2Shard 3before first layerCONTEXT PARALLELISMShards attention sequence across GPUstokens 0–32ktokens 32k–64ktokens 64k–96kat attention layersEXPERT PARALLELISMRouter dispatches tokens to experts on different GPUsrouterE0E1E2E3at MoE FFN layersAll four parallelism dimensions compose into a single configuration per training job