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 01 · AI · Neurons to a language model · about 22 min to read

Play it as a journeyTutor comes with a plan

From Transformer to LLM

From Transformer to LLM
From Transformer to LLM · Open board

The How LLMs Work board that takes the transformer block from Attention & the Transformer and asks the question left over: how does that become the thing you are talking to?

Before you start. The last lesson built a machine that takes a row of word-pieces and lets each absorb meaning from the ones before it, and How It Learns (loss, gradient descent, backprop) gave you the loop that turns a machine’s dials, the adjustable numbers inside it, whenever it gets an answer wrong. This lesson is the one exam question those two things were pointed at.

Lesson 10 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

  • 1951: prediction, the guessing game that measures what you know
  • Next-word prediction: no trick fills the blank, only knowing things
  • 2018: pretraining, the exam that marks itself
  • Autoregressive: one word, stuck on the end, then read back in
  • 2019: GPT-2, a base model that continues instead of answering
  • 2020: scaling laws, the curve you read before you spend
  • Frozen knowledge, and alignment: the cheap step that adds the manners
  • The blank, scored
  • What a miss costs
  • Which way to turn the dials
  • The real machine, scored word by word
  • Reading the board in this story
  • What the whole exam costs
  • All of it in code

Terms it explains: How LLMs Work, 0.6 and 1.3 bits, pretraining, autoregressive, base model, alignment, logits, softmax, cross-entropy, self-supervised, perplexity, 6 sums, Chinchilla, decoder-only, distribution, emergent ability, in-context learning, next-token prediction, parameters / data / compute, scaling laws.

Related papers

Review AI