Skip to content
Sabaqاردو

Neural Networks: Zero to Hero (Andrej Karpathy)

By Andrej Karpathy

Course audio
Course audio: English
Level
Advanced
Length
9 lessons · 18.6 hours

What you'll be able to do

  • Implement backpropagation from scratch
  • Build and train character-level language models
  • Write a small GPT and a BPE tokenizer
  • Understand what it takes to train GPT-2 scale models

About this course

Andrej Karpathy's hands-on series that builds neural networks and language models in code from an empty file: 10 long videos, about 19 hours. It starts by building micrograd to explain backpropagation, then the makemore character-level language models through bigrams, an MLP, activations, gradients and batch norm, manual backprop and a WaveNet-style model. It goes on to build a GPT from scratch, explain and build the GPT tokenizer, and finally reproduce GPT-2 (124M), with a talk on the state of GPT. Best for developers comfortable with Python who want to truly understand how ChatGPT-style models work.

Before you start: Solid Python and basic calculus

Syllabus

9 lessons · 18:38:22 in total

  1. 1The spelled-out intro to neural networks and backpropagation: building micrograd2:25:52
  2. 2The spelled-out intro to language modeling: building makemore1:57:45
  3. 3Building makemore Part 2: MLP1:15:40
  4. 4Building makemore Part 3: Activations & Gradients, BatchNorm1:55:58
  5. 5Building makemore Part 4: Becoming a Backprop Ninja1:55:24
  6. 6Building makemore Part 5: Building a WaveNet56:22
  7. 7Let's build GPT: from scratch, in code, spelled out.1:56:20
  8. 8Let's build the GPT Tokenizer2:13:35
  9. 9Let's reproduce GPT-2 (124M)4:01:26

What to take next

Videos by Andrej Karpathy, played from their official YouTube channel. Subscribe on YouTube

Official upload by the teacher or institution on their own channel, shown with YouTube's embedded player.

Lessons listed from the official YouTube playlist. Full playlist on YouTube

Lessons last checked Oct 2026. Course summary and lesson structure by Sabaq.

Report a problem or a rights request