Scaling Karpathy's Autoresearch: What Happens When the Agent Gets a GPU Cluster
TL;DR Highlight
Giving Claude Code 16 GPUs ran ~910 experiments in 8 hours, cutting val_bpb 2.87%.
Who Should Read
ML infra or backend developers who want to automate hyperparameter search or training experiments with a coding agent
Core Mechanics
- 16 GPUs made experiments 9x faster
- One GPU gives about 10 experiments per hour, while 16 GPUs gave about 90.
- The agent submitted about 910 experiments in 8 hours, with about 700 valid results.
- val_bpb (validation bits per byte) fell from 1.003 to 0.974, a 2.87% improvement over baseline.
- Parallelism changed how the agent searched
- With one GPU it does greedy hill-climbing: try one thing, check, repeat.
- With 16 GPUs it ran factorial grids of 10-13 experiments per wave.
- It tested six model widths in one wave and saw the trend immediately.
- Going wider beat every hyperparameter tweak
- Scaling from the default AR~48 (model_dim=384) to AR=96 (model_dim=768) outperformed all Phase 1 hyperparameter changes.
- AR=112 was too big because the model got too few training steps in 5 minutes.
- The agent noticed the H100 vs H200 gap on its own
- Identical configs scored about 0.005 val_bpb lower on H200.
- It built a two-tier strategy: screen 10+ ideas on H100s, then confirm the top 2-3 on H200s.
- FINAL_LR_FRAC=0.03 sometimes beat 0.05 on H100 but consistently lost on H200.
- Returns faded late in the run
- muon_beta2 from 0.95 to 0.98 was the biggest late find at about 0.001 val_bpb.
- After experiment ~700, gains dropped below 0.0001 per experiment.
- Total cost was under $300
- Claude Code API cost was about $9.
- 13 H100s for 8 hours was about $200, and 3 H200s for 8 hours about $60.
Community Reactions
- Opinion that the same 12 experiments could be run sequentially, choosing the next branch afterward
- The commenter thinks this would give the same outcome.
- They questioned whether worse design plus parallelism equals better design plus serial execution.
- Rebuttal that parallel is less efficient per GPU-hour
- The commenter argued that 16 GPUs for 4.5 hours is the fair match for 72 hours, not 8.
- At 4.5 hours the loss is about 0.978, equal to about 44 sequential hours, so sequential is about twice as efficient.
- The takeaway is trading efficiency for wall-clock time.
- Concern that 5-minute runs only measure early velocity
- The agent might pick a setting that is fast in the first five minutes but has a high noise floor and stalls later.
- Opinion that this is just hyperparameter tuning
- One asked whether Bayesian optimization is still SOTA on a small cluster.
- Another complained that optuna on one server now requires GPU clusters with LLMs.
- Experience applying a similar setup to physics simulation parameter tuning, which worked well
- Giving the agent tuning intuition and physical reasoning let it find and exploit implicit constraints.
How to Apply
- Turn an existing tuning loop into parallel waves
- Pick one experiment you run one at a time and submit 5-6 values at once today.
- Use the trend to narrow the range for the next wave.
- Pin down the agent's editable scope and eval criteria
- Make the evaluation code read-only and limit edits to one file.
- Write in a program.md-style file what it may change and the keep/discard rule.
- Screen on cheap GPUs, confirm on fast ones
- If you have mixed GPUs, screen 10+ candidates in parallel on cheaper ones.
- Re-verify only the top 2-3 on the faster GPU.
- Rankings can differ across hardware, so compare within the same GPU type.
- Run the SkyPilot example on your own cluster
- Grab the instructions and YAML from skypilot/examples/autoresearch.
- Have your coding agent read instructions.md and set infra: for your environment.
Try It
# Paste into Claude Code (the article's parallel-wave search turned into a prompt)
Goal: lower {{metric}} for {{training script}}. You may edit only {{editable file}} and must not touch the evaluation code.
Rules:
1. Don't try one thing at a time; bundle 5-12 values of related parameters into one wave and submit them simultaneously.
2. After each wave, summarize the results table and trend, then narrow the range around top candidates for the next wave.
3. If two parameters may interact, test them together as a grid (e.g. 3x4).
4. Screen candidates on cheap resources, then confirm only the top 2-3 on better resources.
5. Stop and report when improvement per experiment falls below {{threshold}}.
Experiment environment: {{how to run}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques