SuperAPI AI Directory

更多介绍

autoresearch is a research environment created by Andrej Karpathy for having an existing AI agent repeatedly modify code, run experiments, and compare results in small language model training projects. It provides three main files: prepare.py handles data, constants, and evaluation; train.py is the object the agent modifies; program.md contains the research rules written by a human for the agent. The original version requires an NVIDIA GPU, Python 3.10+, and uv. The code is provided free of charge under the MIT license, but GPU, storage, and model invocation costs for the external agent are your responsibility. It is suitable for people who understand model training, have a suitable GPU, and want to study automated experiment loops.

Open website

About this tool

autoresearch is a research environment for small language model training projects. Its core purpose is to let an existing AI agent (such as Claude Code, Codex, etc.) repeatedly modify code, run experiments, and compare results in training experiments.

Main capabilities and structure: The project contains three main files. prepare.py handles data, constants, and evaluation; train.py is the object the agent modifies; program.md contains the research rules written by a human for the agent. The original version uses a fixed time budget so that experiments on the same hardware are comparable. The evaluation metric is val_bpb (bits per byte on the validation set), where lower is better.

How to use: Obtain the code from the official repository. The original version requires an NVIDIA GPU, Python 3.10+, and uv. It is recommended to first manually run data preparation and training once, then have an existing agent such as Claude Code or Codex read program.md. At the start, fix the data and evaluation conditions, allow only one class of variables in train.py to be modified, and record a baseline first. For example, compare only two learning rate settings, and each time keep the configuration, logs, val_bpb, and conclusions; do not change the evaluation data or metrics.

Use cases: Suitable for people who understand model training, have a suitable GPU, and want to study automated experiment loops. The default environment focuses on small language model training; migrating to other tasks requires redefining the code and evaluation.

Limitations and cautions: The original version targets NVIDIA GPUs; the repository lists community ports, and the compatibility of the Mac branch must be checked separately and should not be treated as supported by the original. The fixed five minutes is the time budget for the training segment and does not include startup, compilation, evaluation, and agent inference time, so it cannot be used to guarantee a fixed number of experiments per hour. val_bpb is not a general intelligence score, and a single improvement may need to be re-tested; after changing hardware, you cannot assert that a method is better or worse based on the metric alone. Cloud GPUs are billed by actual instance time, and idle instances may also incur charges; subscriptions or APIs for external agents are billed separately. Training may encounter issues such as insufficient VRAM, dependency incompatibilities, no improvement, or overfitting to the validation conditions; keep failure logs and baselines, and do not cherry-pick only the best result. It is not a chat product with a built-in large model, nor does it provide a GPU; the agent will run training code, so resources and file access should be controlled in a dedicated environment, and broad-permission examples need not be copied directly; dedicated directories, resource limits, and clear experiment boundaries can be used. Regarding cost, the MIT code is free, while GPU, storage, and model invocation costs for the external agent are your responsibility.