Given 4 experts of 2B params each, top-1 routing, and 5B always-on shared layers, how many active parameters does one token use?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
A MoE transformer has shared attention, embedding, and output layers totaling 5B parameters, these run on every token. One MoE FFN layer has N=4 experts, each expert FFN is 2B parameters. Top-k routing with k=1 selects one expert per token. Router weights are negligible. How many billion parameters are actively used per token (round to a whole number)?
Active params per token = always-on shared layers (5B) + k active experts (1 × 2B) = 7B; total stored would be 13B.
Think of a building with a front desk and four specialist offices. Every visitor checks in at the front desk (shared layers, 5B). Then a receptionist sends each visitor to exactly one specialist office (k=1, one 2B expert). The visitor's journey uses the desk plus one office, 7B total, even though four offices exist in the building (13B if you counted every office).
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: active vs total formula + k/N intuition + multi-layer extension + interview traps.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reporting 13B (total params) or 8B (using k=2 by mistake) instead of 5B + 1×2B = 7B active.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.