autoresearch: A small, self-contained setup for autonomous AI agents that iterate on single-GPU LLM training.
What problem it solves
Researchers normally need to modify training code manually for every experiment, which can make autonomous overnight experimentation difficult to organize and review. The project provides a constrained workflow in which an agent can edit one training file, run fixed-duration experiments, evaluate the results, and retain or discard changes.
Key features
Agent-driven training experiments — An agent can modify the training implementation and iterate through experiments while a human supplies the research instructions.
Source: README
Focused single-file scope — The agent changes only the training file, keeping the area under experimentation manageable and the resulting diffs reviewable.
Source: train.py, README
Automated evaluation and selection — Each run uses validation bits per byte as its evaluation metric, allowing the agent to compare changes and keep or discard an experiment.
Source: README
Self-contained training setup — Data preparation, tokenizer training, model code, optimization, and the training loop are included without distributed training or complex configuration.
Source: README, prepare.py, pyproject.toml
Human-authored research instructions — Markdown instruction files define the autonomous research setup and can be refined over time as the research process evolves.
Source: program.md, README
Quick start
Copied verbatim from the project's README.
# 1. Install uv project manager (if you don't already have it)
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. Install dependencies
uv sync
# 3. Download data and train tokenizer (one-time, ~2 min)
uv run prepare.py
# 4. Manually run a single training experiment (~5 min)
uv run train.pyWho it may suit
Inference: This may suit researchers and developers who want an agent to experiment autonomously with a constrained LLM training setup, particularly those comfortable directing a coding agent through Markdown instructions.
Topics to discuss
What kinds of research instructions should be included in program.md for an autonomous agent?
Which architectural or training changes are most effective within this constrained workflow?
How should agents compare experiments and decide whether to keep or discard a change?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/karpathy/autoresearch#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…