Mixture of experts
Mixtral 8x7B has 47 billion parameters, yet it costs about as much per token as a 13-billion-parameter model. DeepSeek-V3 has 671 billion and uses 37 billion for each token. The trick is to own many small networks and only wake up a couple of them for each token.
In this lesson you'll learn to
- Explain how a mixture-of-experts layer replaces the MLP, and the difference between total and active parameters.
- Describe how the router picks the top-k experts for each token, and what experts actually specialise in.
- Explain load imbalance and the fixes used in training, such as balancing losses and capacity limits.
- Weigh what MoE makes cheap (compute per token) against what it doesn't (memory and communication), and when it pays off.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.