🧠

Courses · Level 5 Frontier

Train a Transformer in Your Browser

Watch a real model learn, in a tab, on your own machine.

In production 13 chapters ~60 minutes One file, yours forever Works offline
In production — no buy button until the file exists
What it is

Watch a real model learn, in a tab, on your own machine.

Not an animation of training. Training. A real char-level transformer, built in pure browser JavaScript, learns from a corpus while you watch the loss fall — then you sample from the model you just trained and watch gibberish turn word-shaped. Every piece is taught as it is used: tokenization, embeddings, attention, the MLP, softmax, gradient descent.

🎧
Narrated end to end

Press play and a teacher talks you through the whole build, with a read-along transcript that highlights as it speaks.

🧪
Demos on the page

Working, offline interactives — not screenshots. When the narration says "try it", the thing is right there.

📦
One file forever

No account, no app, no subscription. It runs from a single HTML file and will still run in ten years.

Measured claims only

Every number is computed live on the page from inputs you can edit. Nothing is asserted that cannot be checked.

Who it is for

Written for the curious who want to see it actually learn.

Train a real transformer end to end without a GPU or framework

Read an attention heatmap computed from your own trained model

Explain what a gradient step is doing to the weights

Compute the parameter count and see the honest gap to frontier models

Inside

13 chapters, the first four free

The free preview is not a teaser: those chapters are complete, and the paid chapters are physically absent from the preview file rather than hidden behind a script.

00
Welcome — and the live demo

What this hour is, how to use the page, and the interactive demo you will keep coming back to.

FREE
01
Chapter 1

Part of the free preview — the full narration, page content and exercises, nothing held back.

FREE
02
Chapter 2

Part of the free preview — the full narration, page content and exercises, nothing held back.

FREE
03
Chapter 3

Part of the free preview — the full narration, page content and exercises, nothing held back.

FREE
04
Chapter 4

Narrated in full, with the on-page build and exercises for this idea.

PAID
05
Chapter 5

Narrated in full, with the on-page build and exercises for this idea.

PAID
06
Chapter 6

Narrated in full, with the on-page build and exercises for this idea.

PAID
07
Chapter 7

Narrated in full, with the on-page build and exercises for this idea.

PAID
08
Chapter 8

Narrated in full, with the on-page build and exercises for this idea.

PAID
09
Chapter 9

Narrated in full, with the on-page build and exercises for this idea.

PAID
10
Chapter 10

Narrated in full, with the on-page build and exercises for this idea.

PAID
11
Chapter 11

Narrated in full, with the on-page build and exercises for this idea.

PAID
12
Chapter 12

Narrated in full, with the on-page build and exercises for this idea.

PAID