Build and train GPT-2 from scratch using PyTorch
differ.blog
differ.blog
You don't need to skim through the 4 hour video long to see it's full of whys and hows and explanations and demonstrations that massively dwarf the blog post. It's basically a mini course.
Programming is an interactive process, so transcribing the video to text also removes a lot information. The video isn't just an audio form of what could've been a long text tutorial. You're watching someone do something.
And those ideas absolutely can't be communicated in concise writing, I have to waste my life on listening to talking heads?
Whether you have the preference for it or not is not up for debate here.
So not all 4 hours are worth watching? :)
Different people learn in different ways. I wouldn’t call any of it a waste.
* yt-dlp
* whisper
(whisper is surprisingly good for a lot of educational videos)
Even better is to connect text to images. but that's less of a simple trick (although I do have the code).
And so are his other neural net videos.
He keeps bringing you back to first principles, again and again, does not let a single doubt remain, and the code is very accessible and practical.
The intersection between those who can teach and those who truly understand the deepest essence of a subject is much smaller than we would hope. People like Feynman, Tanenbaum, Sussman, Susskind, and now Karpathy are exceedingly rare. Each of them is a gift for generations to come. So, when you find one whose style resonates with the way you think, I suggest watching their videos multiple times. :)
I did a similar project a couple of years ago for a university course, only I also added style transfer, it turned out pretty cool. I scraped a bunch of news data together with it's news section and trained a self attention language model from scratch, turned out pretty hilarious. Data was in Hebrew, which is a challenge to tokenize because of the morphology. I posted it on ArXiV if someone's interested in the style transfer and tokenization process: https://arxiv.org/abs/2212.03019
Otherwise it's like learning to build a website and stopping short of actually doing the final bit where you put it on a webserver and run it live.