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.

RULE 1Confirmed · 13 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 ›

RULE 2Confirmed · 9 videos

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 ›

RULE 3Confirmed · 16 videos

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 ›

RULE 4Confirmed · 12 videos

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 ›

RULE 5Confirmed · 16 videos

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 ›

RULE 6Confirmed · 4 videos

Present the problem before the solution

Let learners meet and attempt a problem at the right difficulty before giving them the answer.

12 quotes ›

RULE 7Confirmed · 20 videos

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 ›

RULE 8Confirmed · 22 videos

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 ›

RULE 9Confirmed · 16 videos

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 ›

RULE 10Confirmed · 7 videos

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 ›

RULE 11Confirmed · 7 videos

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 ›

RULE 12Confirmed · 13 videos

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.

RETIREDRetired

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 ›

RETIREDRetired

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 ›

RETIREDRetired

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 ›