What problem does it solve?
MoE Training enables scaling model capacity and specialization while reducing compute and training cost compared to dense models by activating only a subset of experts per token.
Core Features & Use Cases
- Efficient Large-Scale Training: DeepSpeed and HuggingFace-ready patterns and configuration examples for training sparse Mixture-of-Experts models.
- Routing & Load Balancing: Guidance on top-k routing (top-1, top-2), auxiliary losses, router z-loss, and capacity factor tuning to avoid token dropping and imbalance.
- Expert Parallelism & Inference: Expert sharding, expert-parallel sizing, inference optimizations (quantization, fused kernels, expert pruning, speculative decoding).
- Use Case: Reproduce Mixtral 8x7B-style top-2 MoE training or scale toward DeepSeek-V3 by configuring expert counts, capacity factors, and DeepSpeed expert parallelism for production training runs.
Quick Start
Use the moe-training skill to generate a DeepSpeed configuration and a training command for a Mixtral-style top-2, 8-expert model with 32 layers, hidden size 4096, global batch size 256, and fp16.