Moe Training
Training recipes for Mixture of Experts models with DeepSpeed or HuggingFace, covering routing, load balancing, and expert parallelism.
- CCM score
- 61 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 14.9K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers MoE architecture design, top-1 and top-2 routing mechanisms, auxiliary load-balancing and router z-loss terms, and expert parallelism setup
- Includes runnable PyTorch code for a top-k MoE layer, a
deepspeed pretrain_gpt_moe.pylaunch command, and a DeepSpeed JSON config withmoesettings - Provides capacity-factor and token-dropping controls for training versus evaluation, plus guidance on inference-time sparse activation
- Designed for teams training large models under limited compute budgets or implementing sparse architectures like Mixtral or DeepSeek-V3
Install
$ npx -y skills add orchestra-research/ai-research-skills --skill moe-training -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
MoE Training: Mixture of Experts
When to Use This Skill
Use MoE Training when you need to:
- Train larger models with limited compute (5× cost reduction vs dense models)
- Scale model capacity without proportional compute increase
- Achieve better performance per compute budget than dense models
- Specialize experts for different domains/tasks/languages
- Reduce inference latency with sparse activation (only 13B/47B params active in Mixtral)
- Implement SOTA models like Mixtral 8x7B, DeepSeek-V3, Switch Transformers
Notable MoE Models: Mixtral 8x7B (Mistral AI), DeepSeek-V3, Switch Transformers (Google), GLaM (Google), NLLB-MoE (Meta)
Installation
# DeepSpeed with MoE support
pip install deepspeed>=0.6.0
# Megatron-DeepSpeed for large-scale training
git clone https://github.com/microsoft/Megatron-DeepSpeed
cd Megatron-DeepSpeed
pip install -r requirements.txt
# Alternative: HuggingFace Transformers
pip install transformers accelerate
Quick Start
Basic MoE Architecture
import torch
import torch.nn as nn
class MoELayer(nn.Module):
"""Sparse Mixture of Experts layer."""
Details
- Repository
- github.com/orchestra-research/ai-research-skills
- Categories
- Data Science & Analytics, AI Agents & LLM Apps
- First seen
- Jun 3, 2026
Questions
What does the moe-training skill do?
The moe-training skill helps an agent train Mixture of Experts models using DeepSpeed or HuggingFace. It covers MoE architectures, routing mechanisms, load balancing, expert parallelism, and inference optimization, with examples for models like Mixtral 8x7B and DeepSeek-V3.
How do I install the moe-training skill?
Run npx -y skills add orchestra-research/ai-research-skills --skill moe-training -y in a project to install moe-training. Once installed, the agent can use it to plan and set up sparse model training.
Which category does moe-training belong to on Claude Marketplaces?
moe-training is listed in the Data Science & Analytics category on Claude Marketplaces. Its own description and SKILL.md focus on training large sparse models rather than analytics work.
What does the moe-training skill need before I use it?
The moe-training skill relies on deepspeed, transformers, torch and accelerate as its dependencies. Installing DeepSpeed version 0.6.0 or newer and HuggingFace Transformers with accelerate gives the agent the libraries the skill's examples use.
More from orchestra-research/ai-research-skills
All 92- Sglang1.1K
- Chroma1.1K
- Nemo Curator1.1K
- Llama Factory1.1K
- Pyvene Interventions1.1K
- Gptq1.1K
- Model Pruning1.1K
- Sentencepiece1.1K
- Evaluating Code Models1.1K
- Distributed Llm Pretraining Torchtitan1.1K
- Mamba Architecture1.1K
- Openrlhf Training1.1K
- Sparse Autoencoder Training1.1K
- Llamaindex1.1K
- Ml Training Recipes1.1K
- Outlines1.1K
- Simpo Training1.1K
- Slime Rl Training1.1K
- Training Llms Megatron1.1K
- Guidance1.1K
- Nnsight Remote Interpretability1.1K
- Rwkv Architecture1.1K
- Implementing Llms Litgpt1.1K
- Llamaguard1.1K
Similar to Moe Training
More Data Science & Analyticstraining-llms-megatronorchestra-research/ai-research-skills1.1K installsLarge-scale LLM training framework with 3D, MoE, and FP8 parallelism for models from 2B to 462B parameters.
ml-training-recipesorchestra-research/ai-research-skills1.1K installsBattle-tested PyTorch training recipes spanning LLMs, vision, diffusion, and biomedical domains with debugging guidance.
deep-learningmindrally/skills995 installsPractical guidelines for neural network design, training, multi-GPU scaling, and memory optimization in PyTorch-style workflows.
train-sentence-transformershuggingface/skills1.8K installsGuided training for sentence-transformers bi-encoders, cross-encoders, sparse, and multi-vector models with production-ready templates.
pytorch-fsdpdavila7/claude-code-templates395 installsExpert guidance for PyTorch FSDP training covering parameter sharding, mixed precision, CPU offloading, and FSDP2.
nemo-mbridge-perf-moe-vlm-trainingnvidia/skills1.9K installsPractical guide for training MoE vision-language models in Megatron Bridge, comparing FSDP and 3D-parallel setups.