4 free courses

The best free Karpathy AI courses, curated

Andrej Karpathy — founding member of OpenAI and former director of AI at Tesla — makes some of the clearest deep-learning teaching anywhere, and gives it away for free on YouTube with matching code on GitHub. Below is his work organized into a path: start by building neural networks from scratch, then go deep on how modern LLMs actually work.

These are curated links to videos and code published freely by Andrej Karpathy on YouTube and GitHub. All content belongs to Andrej Karpathy. AnybodyCanAI is not affiliated with, sponsored by, or endorsed by him. His name is used only to identify the source.

Zero to Hero
Featured
Intermediate
Fully public

Neural Networks: Zero to Hero

Build neural nets from scratch, ending with a GPT

Andrej Karpathy · 2022–2023 · Video series

BackpropagationAutogradLanguage ModelingMLPsBatchNormTransformersGPTTokenization

Summary

A hands-on, code-first series that builds neural networks from the ground up: first a tiny autograd engine (micrograd), then character-level language models (makemore), and finally a working GPT and its tokenizer — spelled out line by line.

Our take

The single best way to actually understand what happens inside a neural network and a transformer. Every lecture is a full-length video paired with runnable code, so you learn by building — no black boxes. If you do one thing on this hub, do this.

Access

Every lecture is a free YouTube video with matching Jupyter notebooks in the nn-zero-to-hero repo. No signup. Basic Python and a little calculus help.

Source: Andrej Karpathy — all links open on the provider's own site.

Links verified 2026-09-15. Course terms and materials rotate each offering.Andrej Karpathy on YouTube