Building makemore Part 4: Becoming a Backprop Ninja
Watch on YouTubeThis source describes a lesson in which Karpathy takes a 2-layer MLP with BatchNorm from a previous video and backpropagates through it manually, without using PyTorch autograd's loss.backward(). He walks through each component in turn, from the cross entropy loss back to the embedding table, so that learners build intuition for how gradients flow. The provided text is a short, truncated description, so only its outline can be noted.
- He builds on the 2-layer MLP with BatchNorm from the previous video. - He performs backpropagation manually instead of calling PyTorch autograd's loss.backward(). - The manual backward pass covers the cross entropy loss, the 2nd linear layer, tanh, batchnorm, the 1st linear layer, and the embedding table. - The stated aim is for learners to gain strong intuition, though the text cuts off at that point.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Supports these rules
Quotes from this video
“backpropagate through it manually without using PyTorch autograd's loss.backward():”