Bootcamp / Session 1 / 1.2

Session 1.2 · Act one · Eric Ma, Moderna

How language models actually work.

One trick, next-token prediction, explained well enough that you can teach it to your own lab and trace any answer a model gives you back to it. No math, no code. Every demo runs a real, tiny model in your browser.

Open Eric's interactive lesson Use the arrow keys to move between sections

Recording

Eric Ma · 1 hour 2 minutes · Download (183 MB)

What the lesson covers

  1. One trick. A language model is a very well-read autocomplete, predicting the next piece of text.
  2. Tokens. Text becomes numbers, which is why models miscount letters and garble exact strings.
  3. Dice and temperature. A probability list, then a weighted roll. Why answers vary between runs.
  4. Training. Where the numbers come from, and why the model copies flaws in its training text.
  5. The big library. It interpolates within what it read. It does not look things up, and it stops at a cutoff date.
  6. Confidently wrong. Hallucination is the mechanism working normally. Quiz: spot the invented references.
  7. Scale. What changes as models grow, and what does not.
  8. Foundation models. The same machinery for proteins, genes, and cells: AlphaFold 2, Geneformer, scGPT, Enformer.
  9. Limits. Where the trick breaks, and the habit that catches each failure.

Carry this into the rest of today

Eric's closing table is the starting point for Part 1.4, where each row gets a practice from Tommy and a rule from us.

What you seeCauseHabit that catches it
It makes something upPrediction without lookupVerify against primary sources
Same prompt, different answerSamplingLog model, settings, and prompts
Out-of-date answersTraining cutoff dateCheck current sources
Repeats the field's old mistakesCopies its training dataRead with the literature's biases in mind
Echoes sensitive text you pastedNothing in the mechanism keeps secretsKeep patient and unpublished data out of consumer tools

Materials