This repository is a collection of Jupyter notebooks that closely follow Andrej Karpathy's "Neural Networks: Zero to Hero" lectures on YouTube. Alongside the primary content of the lectures, these notebooks offer added insights and notes on PyTorch, neural networks, the transformer architecture, and more.
You can find the notebooks directly within this repository or open them in Google Colab via the provided links.
Please note: For those interested in coding these projects entirely from scratch, I have created a separate repository dedicated to detailed workbooks that guide you through the process step-by-step. You can find these workbooks in the new Andrej Karpathy Zero-to-Hero Workbooks repository.
The spelled-out intro to neural networks and backpropagation: building micrograd
- Watch on YouTube
Part 1
Part 2
Solutions to micrograd exercises
The spelled-out intro to language modeling: building makemore
Building makemore Part 2: MLP
Building makemore Part 3: Activations & Gradients, BatchNorm
Building makemore Part 4: Becoming a Backprop Ninja
Building makemore Part 5: Building a WaveNet
Let's build GPT: from scratch, in code, spelled out.
- Watch on YouTube
(first time I worked through this tutorial)
(second time)
(third time)
Let's build the GPT Tokenizer.