Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

AI and machine learning

Build a Small LLM from Scratch

The planned outline of 11 modules. Lessons are written, run and reviewed before they are published.

Coming soon 11 modules

Coming soon. This track is being written. Below is its planned outline: a lesson appears here once its examples have been run and its technical review is signed off.

Before this track

Planned outline

  1. Module 1

    Start here: the pipeline, the model ladder and the workbench

    Coming soon
  2. Module 2

    Build a pretraining corpus: sources, cleaning, filtering, deduplication

    Coming soon
  3. Module 3

    Train the tokenizer and write token shards

    Coming soon
  4. Module 4

    Write a GPT you can verify

    Coming soon
  5. Module 5

    The pretraining run: loop, speed, sessions and curves

    Coming soon
  6. Module 6

    Scaling: laws you fit yourself and hyperparameters that transfer

    Coming soon
  7. Module 7

    Evaluate the base model: perplexity, benchmarks, contamination

    Coming soon
  8. Module 8

    Post-training your own model: chat format, SFT, DPO and a second language

    Coming soon
  9. Module 9

    Shrink and export the model: quantisation and file formats

    Coming soon
  10. Module 10

    Serve it in the browser: your own inference engine

    Coming soon
  11. Module 11

    Release, report and interview

    Coming soon

Related tools

Official documentation

More in AI and machine learning

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.