microsoft/Tutel
Tutel MoE: Optimized Mixture-of-Experts Library, Support GLM/Kimi/Gpt/DeepSeek/Qwen using FP8/NVFP4/MXFP4
What it solves
Training and running very large Mixture-of-Experts (MoE) models is slow and resource-hungry. Tutel makes this faster by carefully optimizing how MoE layers communicate and compute, and by letting you switch key settings (parallelism, sparsity, capacity) on the fly without slowing down. It also provides ready-to-use inference for big open models like DeepSeek, GLM, Kimi, Qwen, and GPT-OSS on both NVIDIA and AMD GPUs.
How it works
Tutel provides a high-performance MoE layer that you can plug into your own models. It includes optimized implementations of data dispatch, all-to-all communication, and gating. A special feature is "no-penalty switching": you can change parallelism, top-k sparsity, capacity factor, and overlap granularity at runtime with no extra cost. For inference, Tutel supports low-precision formats (NVFP4, MXFP4, BlockwiseFP8) and includes examples for running large MoE chat models via Docker containers. It also provides fast gating APIs for popular MoE architectures like DeepSeek and Qwen3.
Who it's for
Developers and researchers who train or serve large MoE models, especially those who need to run models like DeepSeek V3, GLM-5.x, Kimi K3/K2, Qwen3-MoE, or GPT-OSS on NVIDIA A100/H100 or AMD MI300 GPUs. It suits people comfortable with PyTorch, Docker, and distributed training.
Highlights
- Enables dynamic switching of parallelism, sparsity, and capacity without performance penalty
- Provides optimized MoE training examples (helloworld, DDP, AMP, custom experts)
- Supports direct low-precision inference (NVFP4, MXFP4, BlockwiseFP8) for many large MoE models
- Includes prebuilt Docker images for serving DeepSeek 671B, GLM-5.x, Kimi K2/K3, and more on Azure GPU clusters
- Adds fast gating APIs for DeepSeek and Qwen3 MoE models
- Works on both NVIDIA and AMD (ROCm) GPUs
Related
- Dispatch
- Dispatch
- Project
- Project
- Project