Skip to content
inference.academy

glossary/scale/moe-routing

MoE routing

also mixture of experts, gating, top-k routing

In a mixture-of-experts layer, a small gating network scores each token against every expert and sends it to the top few. Only those experts run for that token, so compute per token is a fraction of the parameter count. For serving, the question is balance: if popular experts get most of the tokens, the cards holding them are the step's critical path while the rest wait. Load-balancing losses and capacity limits exist to spread the load.


37B of 671B

Parameters active per token in DeepSeek-V3; the memory is for all of them, the arithmetic for a twentieth.


Related