Mixture of experts

Grouped expert routing

Experts are organized into groups; the router first picks groups, then experts inside them - friendlier to multi-GPU serving.

With hundreds of experts spread across devices, letting a token pick any k experts scatters traffic everywhere. Grouped routing first selects the best expert groups (which map to devices), then the best experts within those groups. DeepSeek introduced this 'node-limited' routing to cap cross-device communication; you will see it in graphs as a two-stage top-k.

See it in real models

Open any of these on hfviewer to find this block in the interactive architecture graph.

Related concepts

hfviewer renders the full architecture of 2,300+ Hugging Face models as interactive graphs - hover any block to see what it does, with this model's real numbers.

Browse all model graphs →