Router
In the MoE architecture, a component that decides which 'experts' will process each token.
How it Works
flowchart LR
A[Token] --> B[Router]
B --> C[Expert 2]
B --> D[Expert 7]
C --> E[Aggregation]
D --> E
The router looks at the token and sends it to two or three of the most suitable experts out of dozens.
Why It's Beneficial
The model is huge, but only a few experts work on each token. This results in the quality of a large model while saving computations.