Plan the experiment

What we are building

Define one small language-model experiment you can train, inspect, compare, and explain without pretending it is a frontier model.

8 minute lesson

~~~

We are going to build a small language model on your Mac with Language Model Builder.

The goal is not to replace ChatGPT or Claude. The goal is to explain one complete learning system with evidence you collected yourself.

Our experiment follows this chain:

text → tokens → training examples → next-token loss
     → updated parameters → checkpoints → sampled text → evaluation

Later, supervised fine-tuning and preference training will shape how the same model responds. They do not replace tokenization, pre-training, or evaluation.

Open the app and choose Build a model. Do not start training yet.

Language Model Builder welcome screen with options to learn, build, or open a project

The built-in textbook is useful when you want to pause the lab and revisit one idea without leaving the app.

Language Model Builder interactive textbook with lessons about tokens, embeddings, and transformers

Create a new project with a simple name such as Tiny Stories Lab. The name should help you identify this experiment later.

Write one hypothesis before changing a setting:

A small model trained on short stories will move from random tokens toward grammatical story continuations, but it will remain unreliable outside that domain.

By the end, you will have:

  • the exact tokenizer, data split, and model blueprint
  • training and validation curves
  • samples from early, middle, and late checkpoints
  • SFT and preference comparisons
  • a report separating observations from explanations

The report matters as much as the weights. A model file cannot tell us which data it saw, which controls stayed fixed, or why we trust a conclusion.

Lesson completed

Take this course offline

Get every free book and course as PDF and EPUB files.

Get the download library →