Mixture of Experts (MoE)
Generative & Agentic AI · Advanced: Inside the Model · Advanced · 25 min
Explain how a mixture-of-experts layer routes each token to a few experts, why total and active parameters differ, how load balancing and capacity limits work, and what MoE means for serving.
This lesson is part of TuringPath Pro. See plans.
What you will learn
- A team of specialists instead of one giant
- The router: pick the top k, mix their answers
- Total parameters vs active parameters
- Keeping experts busy: balancing, capacity, dropped tokens
- Serving MoE: memory-heavy, compute-light
More in Advanced: Inside the Model
- Long Context: Attention at Scale
- Build a Tiny GPT from Scratch
- Interpretability: Looking Inside the Model
Previous: Long Context: Attention at Scale · Next: Build a Tiny GPT from Scratch