LESSON 10.C2 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
A MoE layer end to end
Watch 8 tokens pass one MoE layer: routed, capped, mixed, then balanced.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 10.C2 · MOE LAYERSTORED 400 · ACTIVE 208 · DENSE 96
01
Stage 1 of 6 · Four experts
Eight token rows enter the layer. It stores 4 experts of 96 weights; a dense model has one MLP.
Explain it simply
On the left, each row of four cells is one token. Next are four experts, small MLPs of 96 weights each, as in 10.10. A dense layer runs one MLP on every token. The bars at the bottom count the weights: stored, active and dense.
Eight token rows of 4 cells on the left. Next, four expert boxes. Weight bars: dense 96, active 208, stored 400.
token vectors, token copies (thick outline: moved in balancing)experts, weights, slots, biases brouter shares, gates, layer outputdropped copies, lost gate, aux lossempty slot
Toy: 10.C2's 8 tokens, 4 experts, top 2; the lean is an extra score on expert 1; random weights, not trained on a task
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A token uses 2 of the 4 experts.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 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.