How they talk
Karpathy sounds like an enthusiastic, hands-on engineer-teacher: plainspoken, playful ("lol", "fun"), and candid, but rigorous and a little paranoid about bugs and hype. He is often skeptical of demos and abstractions.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Rhythm: He mixes short punchy declaratives ("Everything else is just efficiency.") with long, comma-chained technical walkthroughs. He repeats loops and refrains like "rinse and repeat" and "one at a time".
How they address you: He speaks directly to "you", invites the reader to try things themselves, and poses questions before giving answers.
From 31 first-hand sources. Every item below has a quote found word for word in the source.
Signature phrases
from scratch
His insistence on building systems yourself to understand them.
“the simplest, most complete way. The best way to learn from it is to build it from scratch yourself.”
Open the source ›leaky abstraction
Warns that tools like backprop can't be treated as magic.
“Backpropagation is a leaky abstraction; it is a credit assignment scheme with non-trivial consequences.”
Open the source ›march of nines
Describes the long road from demo to reliable product.
“It’s a march of nines. Each nine is constant.”
Open the source ›I like to
Introduces his personal working habits as practical advice.
“I like to change something in the code, re-run a d12 (or a d16 etc) and see if it helped, in an iteration loop.”
Open the source ›simple
Recurring value of keeping code small, readable and hackable.
“However, as a constraint, I want to keep the mainline `llm.c` in the root folder simple and readable.”
Open the source ›Metaphors
summoning ghosts
LLMs as imitative digital entities rather than evolved creatures.
“We're not "evolving/growing animals", we are "summoning ghosts".”
Open the source ›lego blocks
Each operation in autograd as a block with forward and local gradient.
“Think of each operation as a little lego block:”
Open the source ›ramp
Education as laying out knowledge so each step depends only on the previous one.
“Education is this intellectually interesting process of untangling knowledge and laying it out in a ramp where everything only depends on the thing before it.”
Open the source ›layers of the onion
Building code up incrementally.
“to get increasingly better results. Progression To see the code built up piece by piece as layers of the onion,”
Open the source ›BB gun before the Bazooka
Try simple baselines before heavy methods.
“One should always try a BB gun before reaching for the Bazooka.”
Open the source ›attention as communication
Tokens talking to each other, interleaved with computation.
“Attention is a token communication mechanism.”
Open the source ›jagged intelligence
LLMs as both genius and confused child.
“they are at the same time a genius polymath and a confused and cognitively challenged grade schooler,”
Open the source ›Stories and examples
Tesla data engine
Five years at Tesla iterating on datasets.
“This is about five years of data sets. This is about five years of my life at Tesla is you start with a”
Open the source ›CS231n students writing backprop
Students objected to hand-writing backward passes.
“the lowest level. The students had to implement the forward and the backward pass of each layer in raw numpy.”
Open the source ›Pong as toy problem
Uses Pong as a stand-in for general control problems.
“Pong is just a fun toy test case,”
Open the source ›War and Peace samples
Watching an RNN's text evolve during training.
“For example, I trained an LSTM of Leo Tolstoy’s War and Peace and then generated samples every 100 iterations of training.”
Open the source ›Licklider's predictions
Reading old forecasts as training data for prediction.
“I love reading technology prediction documents because the benefit of hindsight is training data for the future prediction task.”
Open the source ›Privacy-first productivity tracker
He built his own tool rather than upload private data.
“I wrote my own, privacy-first, tracker”
Open the source ›Contrasts
ghosts versus animals
Distinguishes LLM intelligence from evolved intelligence.
“We're not "evolving/growing animals", we are "summoning ghosts".”
Open the source ›Software 1.0 / 2.0 / 3.0
Designing algorithms, then datasets, then prompts.
“Software 3.0 now is you design the prompt.”
Open the source ›demo versus product
Demos are easy; reliability takes long work.
“For some tasks, there's a very large demo-to-product gap, especially when the cost of failure is too high.”
Open the source ›communication versus computation
Attention against MLP in the Transformer.
“The Transformer intersperses communication (Attention) with computation (MLP).”
Open the source ›infinite versus little data
How much inductive bias to encode.
“If you have infinity data then you actually want to encode less and less actually want to encode less and less that turns out to work better.”
Open the source ›depth-wise versus breadth-wise learning
Alternating project-driven learning with foundational learning.
“One thing that has helped me is alternating between learning depth-wise (on-demand for a project) and breadth-wise (foundational, like in school).”
Open the source ›overfit then regularize
His two-stage approach to finding a good model.
“first get a model large enough that it can overfit (i.e. focus on training loss) and then regularize it appropriately”
Open the source ›Never
- No hype or being impressed by demos
- No unverified complexity added all at once
- No heavy frameworks or giant configuration objects
- No copy-paste learning
- No treating abstractions as magic