Andrej Karpathy's rules
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Confirmed · 12
Stated in two or more videos.
Build before claiming understanding
Implement a system yourself from scratch, step by step and without copy-pasting, before claiming you understand it.
12 quotes ›
Understand the backward pass
Learn how gradients actually flow, practice backpropagation by hand, and monitor activation and gradient statistics instead of trusting autograd blindly.
12 quotes ›
Verify each stage before adding complexity
Start with the data and a tiny end-to-end pipeline, verify each stage against known values or a reference, and only then add complexity one change at a time.
12 quotes ›
Run small, comparable experiments
Iterate quickly at small scale under fixed budgets and controlled comparisons, and use ablations to attribute each gain to its real cause.
12 quotes ›
Program models with deliberate context
Treat prompts, examples and the context window as the program: condition the model toward the answer you want, give it tokens to reason, and supply context in forms LLMs can read and act on.
12 quotes ›
Present the problem before the solution
Let learners meet and attempt a problem at the right difficulty before giving them the answer.
12 quotes ›
Reduce to the minimal readable core
Strip a system to the smallest readable implementation that captures the algorithm, and reject complexity whose gains do not justify the cost.
12 quotes ›
Match the tool to the task
Choose models, AI tools, autonomy levels and configurations according to where they actually work, including whether the task's outcome can be cheaply verified.
12 quotes ›
Surface assumptions before generalizing
Before extrapolating a result or capability, identify the environmental, data and optimization assumptions behind it and test them against a contrasting case.
12 quotes ›
Keep AI on the leash
Build partial autonomy with fast human verification, keep AI work small and concrete, and keep ownership of the specification, design and understanding.
12 quotes ›
Demand products, not just demos
Judge AI by reliability across the long tail and at deployment scale, not by an impressive demo or a fast local prototype.
12 quotes ›
Program networks through data
Shape neural network behavior by curating large, accurate, diverse datasets and objectives, and iterate with a data engine on the cases where the model fails.
12 quotes ›
Retired · 3
The sources no longer support these.
Improve the whole stack
Make progress by improving data, objectives, architecture, hardware efficiency, and algorithms together rather than waiting for a single breakthrough.
12 quotes ›
Preserve entropy in learning
Deliberately keep diversity in data, thinking, and research directions instead of recycling your own outputs or exploiting one paradigm.
9 quotes ›
Use the format people understand fastest
Deliver information in the format each consumer reads fastest: visual and spatial for people, legible text and executable commands for agents.
12 quotes ›