Skip to content
  • Video
  • YouTube
  • 1 h 55 min

Building makemore Part 4: Becoming a Backprop Ninja

About this

We take the 2-layer MLP (with BatchNorm) from the previous video and backpropagate through it manually without using PyTorch autograd's loss. backward: through the cross entropy loss, 2nd linear layer, tanh, batchnorm, 1st linear layer, and the embedding table.

Continue at source

Key topics

Chapters

  1. 0:00intro: why you should care & fun history
  2. 7:26starter code
  3. 13:01exercise 1: backproping the atomic compute graph
  4. 1:05:17brief digression: bessel’s correction in batchnorm
  5. 1:26:31exercise 2: cross entropy loss backward pass
  6. 1:36:37exercise 3: batch norm layer backward pass
  7. 1:50:02exercise 4: putting it all together
  8. 1:54:24outro
Report or remove