Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 03 · AI · Past the basics · about 16 min to read

Play it as a journeyTutor comes with a plan

Mixture of Experts (a big brain with a cheap forward pass)

Many Experts One Router
Many Experts One Router · Open board

Many Experts One Router, from the How LLMs Work track. The architecture behind Mixtral, DeepSeek-V3 and Qwen-MoE, and the story of how a 1991 paper about vowel sounds became the way frontier models are built. The “forward pass” in the title is one word’s trip through the machine. The lab lets you change how many experts a word visits and watch work and memory come apart.

Before you start. A language model is a pile of numbers, called its weights or its dials. The formal word is parameters. There are billions of them, and the model runs on a graphics card. The idea from Inference at Scale (why an LLM is fast, and cheap): to write one word the card must read every one of those numbers out of its own memory, and that reading takes longer than the arithmetic it does with them. So the size of the pile is what you wait on. You also need, from Attention & the Transformer, that a layer is two steps: attention, where every word glances at every other, then a plain row of dials each word passes through alone. That second step is the feed-forward network. It holds nearly all the numbers, and it is what this lesson splits up.

Lesson 33 of 83 in AI

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 1991: interference, one network pulled two ways
  • The fix: experts and a router, small networks with a desk
  • 2017: sparse activation, a huge model, a sliver lit per word
  • 2021: one expert per word is enough
  • December 2023: Mixtral, a mixture of experts anyone could download
  • The bill nobody mentions: total parameters, rent on every expert
  • Load balancing: the router plays favourites unless penalised
  • By 2025 and 2026: the default design for frontier models
  • How big is one clinic?
  • What does the building store, and what does one word use?
  • What does the rent cost in time?
  • All of it in code

Terms it explains: How LLMs Work, expert, router, total parameters, active parameters, sparse activation, load balancing.

Lab

Doubling the experts doubles what the model knows and costs nothing per token. So what does it cost?

Drag Experts you hold to the right and watch What it computes refuse to move while the other two panels climb.

Open Many experts, one router

Related papers

Review AI