Train a model through its life cycle

Take one tiny model through the stages that turn raw text into a helpful assistant, and see what each stage gives and what it costs.

8 labs · about 97 min

Start here · about 15 min

Plan with small ablations

Start Lab 17
  1. Plan with small ablationsNot started15 min

    Before a big training run, teams try one change at a time on small models to see which changes help. You read what helped at a tiny size and run one test yourself.

    Open Lab 17
    Tick what you did
  2. Pre-training: learn from raw textNot started10 min

    Pre-training is where a model first learns language, by guessing the next piece of text in millions of stories. The small size is the one this path uses. You can train it yourself, or skip it: the ready-made base model is fine to start the next labs from.

    Open Lab 04
    Tick what you did
  3. Mid-training: teach a formatNot started10 min

    Mid-training keeps training on a new mix of text, here simple sums. You see what it gains and what it forgets.

    Uses what you learned in Lab 04

    Open Lab 11
    Tick what you did
  4. Fine-tuning: follow a requestNot started12 min

    Supervised fine-tuning (SFT) shows the model many requests with good answers, so it learns to follow the request format.

    Uses what you learned in Lab 11

    Open Lab 12
    Tick what you did
  5. Human feedback and RLHFNot started15 min

    People compare two answers and say which they like better. A reward model learns their taste, and reinforcement learning (RL) trains the model towards it, on a leash so it does not cheat.

    Uses what you learned in Lab 12

    Open Lab 13
    Tick what you did
  6. DPO: learn from preferred answersNot started10 min

    Direct preference optimisation (DPO) learns from pairs of better and worse answers in one stage, with no reward model.

    Uses what you learned in Lab 13

    Open Lab 14
    Tick what you did
  7. RL with verifiable rewardsNot started15 min

    Reinforcement learning where a program, not a person, checks each answer: here, is the sum right? The model tries a group of answers to the same sum and learns from the ones that beat the group.

    Uses what you learned in Lab 12

    Open Lab 15
    Tick what you did
  8. The whole life cycleNot started10 min

    Put every stage side by side: the same four scores and the same prompts for each, and which stages needed people.

    Open Lab 16
    Tick what you did