SuperAPI AI Directory

More Info

autoresearch is a small research environment initiated by Andrej Karpathy, used to let existing AI agents repeatedly modify training code and compare experimental results. It is aimed at people who are familiar with model training, have suitable GPU resources, and want to automate experiments. The project code is MIT-licensed, but GPU, storage, and inference costs for external agents must be borne by the user. Before use, the repository must be cloned; upstream requires an NVIDIA GPU, Python 3.10+, and uv, with separate support in the Mac branch. The typical workflow is to first manually complete one preparation and training run, then have the agent read program.md, and, with data and evaluation fixed, allow only one class of changes in train.py, compare validation metrics, and keep improvements while discarding failed experiments.

Open website

About this tool

Purpose

autoresearch is a small research environment whose core purpose is to let an existing AI agent repeatedly modify training code and compare different experiments. It is aimed at people who are familiar with model training, have suitable GPU resources, and want to automate experiments. Main capabilities

According to the materials, it can do the following:

  • Propose and execute one training code modification;
  • Compare validation metrics under a fixed time budget;
  • Keep experiments that improve and discard failed experiments.

The materials emphasize that the validation metric uses val_bpb (validation bits per byte), where lower is better; it is not a general intelligence score. The five-minute budget covers only the training segment and does not include all steps such as startup, compilation, evaluation, or agent invocation, nor does it guarantee a fixed number of experiments per hour.

How to use

The starting steps given in the materials include: clone the repository; upstream requires an NVIDIA GPU, Python 3.10+, and uv, and the Mac branch has separate support. Before having an existing agent read program.md, first manually complete one preparation and training run. Keep data and evaluation fixed, and allow only one class of modification in train.py. Read program.md and record the baseline, then compare two learning rate settings, keep the configuration, logs, val_bpb, and conclusions, and do not change the evaluation data or metrics.

Regarding project structure: prepare.py provides data, constants, and evaluation; train.py is the agent's editing target; program.md defines the research rules written by humans.

Applicable scenarios

Suitable for automated comparison of small-model training experiments under fixed hardware and time budgets, for example comparing a single class of changes such as learning rate. The materials point out that the given task is small-model training; other domains require new code and evaluation.

Limitations and notes

  • This is not a hosted chatbot and does not provide GPUs; external agents and training code should run in a dedicated environment.
  • Regarding costs: the code is MIT-licensed; GPU, storage, and inference costs for external agents are borne by the user; cloud instances may incur costs when idle; agent subscriptions or API fees are separate. Experiment counts and stopping rules should be set.
  • The time budget supports comparison on the same hardware; results across hardware are not automatically comparable.
  • Situations such as out of memory, dependency issues, no improvement, and overfitting to the validation setup may occur; failed runs and baselines should be kept, not just the best results.
  • Upstream is aimed at NVIDIA; whether Mac can run it directly requires checking community ported versions.
  • The agent does not need to run without limits; a dedicated environment should be used and experimental boundaries clearly defined.

Official reference

Repository and platform support information can be found on the project page; the author is Andrej Karpathy (@karpathy).