Pick the cheaper to serve option at equal quality: Llama 4 Maverick MoE or Llama 3.1 70B dense
At a fixed quality target where both models score within a few points on your eval, choose between Llama 4 Maverick (MoE: large total params, small active-params subset) and Llama 3.1 70B dense. State the conditions under which each wins on tokens per dollar at decode, and name the two failure modes that erase the MoE advantage.
MoE wins on tokens per dollar when batch is moderate to large and full expert set fits in HBM. It loses at batch 1-2 from router overhead and on H100 from expert spill.
Picture two restaurants serving the same menu. The dense restaurant has a small kitchen where every dish uses the same set of ingredients on the same prep counter. The MoE restaurant has a huge pantry with many specialty stations, but each order only uses two or three stations. The MoE saves work per dish because most stations stay idle for any given order. That savings is real when the pantry fits in the kitchen and there are lots of orders to amortize the runners who carry ingredients to the right station. If the pantry has to live in a back warehouse, the runners take forever and the savings disappear. If only one order comes in at a time, the runner overhead is bigger than the saved prep work.
Detailed answer & concept explanation~7 min readEverything 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. 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.
5 min: anchor active versus total parameters as the cost lens, walk through Maverick's 17B-active versus 70B dense, name the two failure modes (small-batch router overhead and HBM spill), and close with a hardware-specific decision rule (H200/B200 for Maverick, H100 for dense).
Real products, models, and research that use this idea.
- Meta's Llama 4 Maverick (400B total, 17B active) targets H200 and B200 deployments where the full expert set fits in single-node HBM.
- DeepSeek V4 uses similar MoE math, with serving stacks tuned for batch 32-128 on H800 clusters.
- Mistral Large 3 ships as a dense model precisely because it targets latency-sensitive single-stream use cases on H100.
- Together AI's hosted Maverick endpoint runs on 8x H200 nodes with expert parallel and prices per active-param equivalent.
- OpenAI's GPT-5.5 architecture is widely believed to use MoE for similar bandwidth-economic reasons at frontier scale.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does expert parallelism distribute the 400B weights across GPUs without breaking decode bandwidth?
QWhat is the role of load-balance loss in MoE training, and how does it affect inference?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Comparing total parameter counts. Maverick has 400B total but only 17B active per token, so decode cost compares to a 17B-class dense model, not a 400B one.
The night-before-the-interview bullets. Scan these on the way to the call.
Same topic, related formats. Practice these next.