Build a Tiny LLM

Build a tiny LLM from scratch.

Every chatbot does one thing: guess the next piece of text. You'll build that guesser yourself, one question at a time.

Start Lesson 1

This is me after Lesson 5. I only read one sentence, so I repeat myself a lot.

Your model is tiny, so it learns words and grammar, not meaning. ChatGPT works the same way, just millions of times bigger. Here you learn how, line by line.

The path

Each lesson ends with a question. The next lesson answers it.