AI News
All projects
Learning

Neural Networks: Zero to Hero is a video course that builds neural nets in code

A YouTube video course with Jupyter notebooks that builds neural networks, language models and a GPT from scratch in code.

nn-zero-to-hero by karpathy · 26,040 GitHub stars when we found it · added

The README describes Neural Networks: Zero to Hero as a course on neural networks that starts at the basics. It is delivered as a series of YouTube videos in which the author codes and trains networks on screen. The Jupyter notebooks built in the videos are stored in a lectures directory in the repository. Each lecture also lists exercises in its video description, which the README says may grow into something more respectable.

The lectures run from micrograd, a backpropagation lecture that assumes basic Python and a vague recollection of high-school calculus, to makemore. Makemore is a series of character-level language models that grows from a bigram model to an MLP, then covers batch normalization and a WaveNet-style convolutional network. The last two entries cover building a GPT from scratch, following the 'Attention is All You Need' paper and OpenAI's GPT-2 and GPT-3. They also cover building the GPT tokenizer with Byte Pair Encoding, which has its own minBPE repository. The README marks the course as ongoing.

Each lecture links to its own YouTube video and notebook, and the README points to the makemore and micrograd repositories. The lecture 5 exercise is a Google Colab, and the author writes that the video is not meant simply to be watched. The repository is released under the MIT licence. The README gives no installation steps beyond the notebooks, so readers need Python and PyTorch, which the lectures use, to run them.

In the author's words

A course on neural networks that starts all the way at the basics.

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

Reach for it when you want to understand how backpropagation, batch normalization or tokenization work by reading code built step by step; the micrograd and makemore notebooks are small enough to follow line by line.

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made