Chammarychammary

Andrej Karpathy

YouTube

Summaries

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

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

Building a functional GPT-style language model involves constructing a neural network that uses self-attention to allow tokens to communicate with one another, iteratively proce...

Andrej Karpathy • 1:56:20
The spelled-out intro to neural networks and backpropagation: building micrograd

The spelled-out intro to neural networks and backpropagation: building micrograd

Training a neural network is essentially building a mathematical expression and using backpropagation—a recursive application of the chain rule—to measure how every parameter af...

Andrej Karpathy • 2:25:52
The spelled-out intro to language modeling: building makemore

The spelled-out intro to language modeling: building makemore

Building a character-level language model can be achieved by either direct statistical counting or neural network optimization, with both methods yielding identical probabilisti...

Andrej Karpathy • 1:57:45
Building makemore Part 2: MLP

Building makemore Part 2: MLP

This lecture builds a multilayer perceptron (MLP) language model to overcome the limitations of simple bigram counting by using learned character embeddings and context windows ...

Andrej Karpathy • 1:15:39
Building makemore Part 3: Activations & Gradients, BatchNorm

Building makemore Part 3: Activations & Gradients, BatchNorm

Deep neural networks are often fragile during training due to improper initialization, which leads to vanishing gradients or saturated neurons; Batch Normalization provides a so...

Andrej Karpathy • 1:55:57
Building makemore Part 4: Becoming a Backprop Ninja

Building makemore Part 4: Becoming a Backprop Ninja

Manually implementing backpropagation on tensors is an essential exercise that transforms neural network optimization from a "magical" black box into a transparent, mechanical p...

Andrej Karpathy • 1:55:24
Building makemore Part 5: Building a WaveNet

Building makemore Part 5: Building a WaveNet

This hierarchical, tree-like architecture improves character-level language modeling by progressively fusing information, outperforming previous flat model designs after correct...

Andrej Karpathy • 56:21
[1hr Talk] Intro to Large Language Models

[1hr Talk] Intro to Large Language Models

Large language models (LLMs) function like the kernel of an emerging operating system, using next-word prediction to coordinate memory, external tools, and reasoning, while faci...

Andrej Karpathy • 59:48
Let's build the GPT Tokenizer

Let's build the GPT Tokenizer

Tokenization is a critical pre-processing stage that translates raw human text into sequences of numbers, but its underlying complexities and design choices—rather than the lang...

Andrej Karpathy • 2:13:34
Let's reproduce GPT-2 (124M)

Let's reproduce GPT-2 (124M)

Reproducing the GPT-2 (124M) model is achievable using PyTorch by implementing the architecture from scratch, applying standard initialization techniques, and utilizing modern s...

Andrej Karpathy • 4:01:26
Deep Dive into LLMs like ChatGPT

Deep Dive into LLMs like ChatGPT

Large language models function as sophisticated statistical engines that predict sequences of tokens rather than sentient entities. Because they rely on stochastic generation an...

Andrej Karpathy • 3:31:23
How I use LLMs

How I use LLMs

LLMs function as highly compressed, probabilistic versions of internet data that predict the next piece of text, rather than intelligent beings. To get the best results, users m...

Andrej Karpathy • 2:11:12