Topic

From-scratch education

He teaches through minimal from-scratch builds that grow step by step, from micrograd and makemore to GPT, tokenizers and full chat pipelines.

Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.

Rules

Covered in

Andrej Karpathy

Karpathy presents AI education through parallel technical and general-audience tracks, covering neural networks, LLM fundamentals, and practical LLM use. His projects also demonstrate a recurring emphasis on building systems from scratch, creating accessible interactive tools, and solving concrete problems such as research discovery and private productivity tracking.

A from-scratch tour of Bitcoin in Python

Karpathy walks through creating, signing, and broadcasting a Bitcoin testnet transaction in pure Python with zero dependencies, implementing elliptic curve key generation, SHA256, RIPEMD160, address encoding, transaction serialization, and ECDSA signing from scratch. He uses the build-it-yourself approach to demystify how Bitcoin represents value (UTXOs with locking scripts) and how cryptography secures transactions.

The spelled-out intro to language modeling: building makemore

This source, a video description, outlines building a bigram character-level language model as the starting point for a series that later grows into a modern Transformer language model like GPT. It states the focus is on introducing torch.Tensor, its subtleties, and its use in efficiently evaluating neural networks. The text is truncated, so the second stated focus is not available.

GitHub · LLM101n: LLM101n: Let's build a Storyteller

Karpathy outlines a planned course in which learners build a Storyteller AI large language model and turn it into a functioning ChatGPT-like web app. He teaches LLMs end-to-end from basic language modeling through training, optimization, inference, finetuning, deployment, and multimodal systems, using Python, C, and CUDA with minimal prerequisites.

GitHub · build-nanogpt: Video+code lecture on building nanoGPT from scratch

This README describes Karpathy's from-scratch reproduction of nanoGPT, built step by step in clean git commits alongside a video lecture, starting from an empty file and ending with a GPT-2 (124M) reproduction. He explains that such base models only "dream" internet documents and are not chat models, notes that reproduction now costs about an hour and $10, and documents errata openly.

Let's build GPT: from scratch, in code, spelled out.

This source is a short video description in which Karpathy outlines building a Generatively Pretrained Transformer (GPT) from scratch, following the "Attention is All You Need" paper and OpenAI's GPT-2/GPT-3. He connects the build to ChatGPT and shows GitHub Copilot, itself a GPT, helping write a GPT.

Neural Networks: Zero To Hero

This is the course page for Karpathy's 'Neural Networks: Zero To Hero', which teaches neural networks by building them from scratch in code. It starts with backpropagation and works up to GPT and tokenizers. He argues that language models are an excellent vehicle for learning deep learning in general.

microgpt

Karpathy teaches the complete algorithmic essence of training and running a GPT by reducing it to a dependency-free, 200-line Python program. He explains how data, tokenization, autograd, Transformer architecture, optimization, training, and inference fit together, while distinguishing the core algorithm from the engineering required to operate production-scale LLMs.

Let's reproduce GPT-2 (124M)

This source, a short video description, outlines Karpathy's end-to-end reproduction of GPT-2 (124M) from scratch. He walks through building the network, optimizing training speed, configuring the run according to the GPT-2 and GPT-3 papers' hyperparameters, and then launching training.

GitHub · nn-zero-to-hero: Neural Networks: Zero to Hero

This README outlines Karpathy's course that teaches neural networks from the basics by coding and training them together, progressing from a scalar autograd engine (micrograd) through character-level language models (makemore) to building GPT and its tokenizer from scratch. He emphasizes hands-on implementation, understanding internals like gradients and activations, and building intuition that enables debugging and innovation.

Building makemore Part 5: Building a WaveNet

This source, a short video description, outlines how Karpathy extends the 2-layer MLP from the previous makemore video into a deeper, tree-like hierarchical model. The result is a convolutional neural network architecture similar to DeepMind's 2016 WaveNet. The description notes that the WaveNet paper implements the same hierarchical architecture more efficiently using causal dilated convolutions; the text cuts off at that point.