Back to Devoured - September 23, 2026
DEVOURED
Keeping Large MoE Training Within Fixed GPU Memory

Keeping Large MoE Training Within Fixed GPU Memory

AI ArXiv
New scheduling techniques allow training of massive Mixture-of-Experts models at 1M context length within fixed GPU memory limits.
What: Researchers Shrey Pandit, Xuan-Phi Nguyen, Yiran Zhao, and Shafiq Joty introduced four scheduling techniques (PipelinedLLEP, Ring-DTP, SCO, and OffloadStreamAdamW) that bound memory usage for expert dispatch, vocabulary projection, checkpointing, and optimizer states. The method achieves up to 10.4x higher throughput compared to FSDP2 baselines on models up to 667B parameters.
Why it matters: Memory peaks often force developers to reduce model size or context length; eliminating these spikes allows for training much larger architectures on existing hardware clusters.
Deep dive
  • PipelinedLLEP: Extends least-loaded expert parallelism by capping token contributions per dispatch chunk.
  • Ring-DTP: Circularly moves activation or weight shards to handle large vocabulary projections without memory blowouts.
  • SCO (Selective Checkpoint Offload): Offloads long-lived tensors to CPU memory during gradient checkpointing.
  • OffloadStreamAdamW: Pipelines the optimizer update step to hide latency and reduce memory footprint.
  • Memory Bottleneck Analysis: Identifies that expert dispatch, vocab projection, checkpointing, and optimizer state grow at different rates, requiring specific strategies for each.
Decoder
  • Mixture-of-Experts (MoE): A model architecture that uses sparse activation, meaning only a subset of parameters ('experts') is used for any given input, saving compute.
  • FSDP2: Fully Sharded Data Parallel 2, a technique for sharding model parameters, gradients, and optimizer states across multiple GPUs.
  • Vocabulary Projection: The final layer in a language model that maps hidden states to the probability distribution of tokens.
Original article

Flattening Every Memory Peak in Long-Context Mixture-of-Experts Training

Training a Mixture-of-Experts (MoE) model at long context or large batch size fails as soon as any one component's peak allocation exceeds device memory, so the target is every peak at once, not the average footprint. Four are left unbounded by the parallelism plans in common use, and each grows differently: expert dispatch with the routing matrix, the vocabulary projection with tokens times vocabulary, gradient checkpoint boundaries with depth times sequence length, and optimizer state with parameter count. Which one runs out first changes with the model, the context length, and the device count, so lowering the largest only exposes the next. We bound all four with schedules whose GPU working set is fixed at launch: PipelinedLLEP extends least-loaded expert parallelism with a cap on the tokens each source contributes to a dispatch chunk, Ring-DTP circulates activations or weight shards around a ring at the vocabulary projection and folds each block of logits into an online log-sum-exp, Selective checkpoint offload (SCO) keeps the one long-lived tensor of each checkpoint boundary in CPU memory, and OffloadStreamAdamW turns the serial CPU Adam update of optimizer offload into a bucket pipeline. All four change only the order and granularity of computation and data movement, so the loss and gradients stay exact. In matched component tests, they cut the MoE dispatch peak by up to 59.3% without losing throughput, the vocabulary projection peak by 86.6%, and the offloaded optimizer step by 2.05x faster. Composed on MoE models from 120B to 667B parameters, they train at 1M context length, 8--32x the reach of a tuned FSDP2 baseline, and up to 10.4x its throughput.
Explore all 56 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi