---
title: "Eight lectures that reach GPT"
lesson_id: "02"
---

# Eight lectures that reach GPT

- **Lesson ID:** 02
- **Goal:** Give a map of the eight Zero to Hero lectures, with official links, and restate Hao's gate into the tokenizer repo.
- **Human lesson:** [02-eight-lectures-to-gpt.html](02-eight-lectures-to-gpt.html)

## Prerequisites

- Lesson 01, or an equivalent grasp of a scalar autograd engine.

## Inputs, outputs, and artifacts

- **Inputs:** The micrograd engine, and the question of how you get to a GPT.
- **Outputs:** A lecture map with one official video and notebook link per lecture.
- **Artifacts:** Progressive mermaid diagrams that grow from lecture 1 to the full eight-lecture path.

## Agent build steps

1. Point at [nn-zero-to-hero](https://github.com/karpathy/nn-zero-to-hero) and the official syllabus at [karpathy.ai/zero-to-hero.html](https://karpathy.ai/zero-to-hero.html).
2. Say this lesson is a map, not a substitute for the videos.
3. Tell the reader to watch lecture 1 with lesson 01, and link the lecture 1 video and notebooks.
4. Summarise lectures 2 to 6 in short, literal paragraphs with video and notebook links, plus the [WaveNet paper](https://arxiv.org/abs/1609.03499) for lecture 6.
5. Summarise lecture 7 (GPT) with [Attention Is All You Need](https://arxiv.org/abs/1706.03762) and the official video.
6. Summarise lecture 8 (tokenizer) and point forward to minbpe.
7. Restate Hao's gate: if you can rebuild the micrograd engine without looking, you are ready for stop 3.
8. Use progressive diagrams. Do not rely on a single all-at-once diagram.

## Constraints

Keep the language simple, friendly, and literal. No quizzes, no em dashes. Do not invent lectures or WWDC sessions. YouTube is the official host for these Karpathy lectures; also keep the syllabus page as the course home. Brand Edge FDE only.

## Key concepts

- nn-zero-to-hero is eight lectures. The official syllabus is on karpathy.ai/zero-to-hero.html.
- Lecture 1 builds micrograd. Watch it with lesson 1 of this course.
- Lectures 2 to 6 build character-level language models, then stronger nets, better training practice, manual backprop, and a WaveNet-style architecture.
- Lecture 7 builds a GPT. Lecture 8 builds the GPT tokenizer, and leads into the minbpe repo.
- Hao's suggested gate: if you can rebuild the micrograd engine without looking, you are ready for the tokenizer stop.

## Takeaways

- Keep the syllabus and the repo open while you watch: [karpathy.ai/zero-to-hero.html](https://karpathy.ai/zero-to-hero.html) and [github.com/karpathy/nn-zero-to-hero](https://github.com/karpathy/nn-zero-to-hero).
- Treat this lesson as a map. The videos and notebooks are the course.
- Move to minbpe when the engine is in your fingers, even if later lectures are still in progress.

## Acceptance checks

- All eight lectures are listed with official links.
- The readiness gate is present.
- Agent brief link is present.
- [ ] Proceed to [lesson 03 brief](03-what-the-model-reads.llms.md).
