Dr. Rajat Dandekar
Free Lesson

Mixture of Experts and Looped Transformers, From Scratch

60 min
Nov 27, 2026 8:30 AM

By continuing, you agree to Maven's Terms and Privacy Policy.

169 students

What you'll learn

Rebuild a model's three sizes by hand

Inkling 2 Mini stores 26.4B, reads 3.4B per token, and 5.4B with loops. Work out each number yourself.

Trace one token through a mixture of experts

Router scores, top-k, and the three matrices inside each expert, worked by hand on a small example.

See how looping buys depth, and what it costs

Running 12 layers three times gives 48 layers of depth from 24 stored. See what it costs in speed and memory.

Why this topic matters

On 21 November, Thinking Machines released Inkling 2 Mini, an open model that stores 24 layers and runs 48. It has three sizes: 26.4B parameters stored, 3.4B read per token, and 5.4B once the loop is counted. Mixture of experts explains the first gap: which weights a token reads. Looping explains the second: how many times. In this free live hour I build both from scratch, by hand, with one token from start to end.

You'll learn from

Dr. Rajat Dandekar

Dr. Rajat Dandekar

Vizuara Co-founder | Purdue PhD | Teaching engineers to build AI systems

Education & research
Purdue University
See all products from Rajat
Get free access