Transformers & LLMs

How LLMs really work.

Every AI chatbot is built on one idea: the Transformer. Let's open it up, one question at a time.

Start learning

How it works

  1. 🎬Watch a lecture of CME295 (free on YouTube)
  2. 📒Open the lesson with the same number here
  3. ✋Try each idea yourself
The lectures ↗

The path

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

    An independent study companion, written in my own words. It follows the order of the Autumn 2026 lectures in Stanford's public CME295 syllabus; watch the lectures there, then come here to try each idea yourself. Not affiliated with or endorsed by Stanford.