LESSON 10.11 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Routers and top-k routing
Watch a router score 4 experts and send each token to the best few.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 10.11 · ROUTERSAT · TOP SCORE 1.41 (EXPERT 2)
01
Stage 1 of 5 · Router scores
The router multiplies the sat row by the weights of each expert. Each expert gets one score.
Explain it simply
You see the token sat as a row of 4 numbers at the top. Under it, each expert has its own row of 4 router weights. The router multiplies the numbers in each column and adds them up. That sum is the expert's score, the bar beside its row.
The sat row times each expert's router weights gives 4 scores. Expert 1 scores −1.33. Expert 2 scores 1.41. Expert 3 scores −1.62. Expert 4 scores −0.20.
token vectorrouter weights, the cutscores, shares, gate weightsskipped expert
Toy: 8 tokens of width 4, a router of 16 weights, 4 experts; random weights, not trained
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each score is the dot product of the token and that expert's weights.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.