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.
Karpathy holds wall-clock time, parameter count or the platform fixed so that differences reflect the change being tested. He removes one modification at a time to see what actually helped. He also wants changes to hold across model scales, not just at one tuned size.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
What following it looks like
- Runs every experiment with the same five-minute training budget and compares val_bpb
- Ablates one modification at a time and adds control runs, such as longer training only
- Matches parameter counts when comparing architectures
- Checks that an improvement still holds across the depth sweep
Evidence · 12 quotes from 3 videos
Each quote was matched word for word against the transcript. Tap the time to hear it.
“Try playing with the script!”
“You can try a different dataset.”
“Or you can train for longer (increase `num_steps`) or increase the size of the model to get increasingly better results.”
“by the human**. By design, training runs for a **fixed 5-minute time budget** (wall clock, excluding startup/compilation), regardless of the details of your compute.”
“First, this makes experiments directly comparable regardless of what the agent changes (model size, batch size, architecture, etc).”
“the details of your compute. The metric is **val_bpb** (validation bits per byte) lower is better, and vocab-size-independent so architectural changes are fairly compared.”
“Second, this means that autoresearch will find the most optimal model for your platform in that time budget.”
“The downside is that your runs (and results) become not comparable to other people running on other compute platforms.”
“for related documentation. For quick experimentation (~5 min pretraining runs) my favorite scale is to train a 12-layer model (GPT-1 sized), e.g. like this:”
“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.”
“To see if a run helps, I like to monitor the wandb plots for:”
“`val_bpb` (validation loss in vocab-size-invariant units of bits per byte) as a function of `step`, `total_training_time` and `total_training_flops`.”