Building makemore Part 5: Hierarchical Dilated Causal Convolutions (WaveNet)
Transforms a flat MLP into a DeepMind WaveNet tree-structured architecture while building clean torch.nn-style Sequential and FlattenConsecutive abstractions.
We take the 2-layer MLP from previous video and make it deeper with a tree-like structure, arriving at a convolutional neural network architecture similar to the WaveNet (2016) from DeepMind. In the WaveNet paper, the same hierarchical architecture is implemented more efficiently using causal dilated convolutions (not yet covered). Along the way we get a better sense of torch.nn and what it is and how it works under the hood, and what a typical deep learning development process looks like (a lot of reading of documentation, keeping track of multidimensional tensor shapes, moving between jupyter notebooks and repository code, ...).
Links:
- makemore on github: https://github.com/karpathy/makemore
Building makemore Part 4: Becoming a Backprop Ninja (Manual Tensor Gradients)
Next · Lecture 7Let's Build GPT: From Scratch, in Code, Spelled Out
