talira

autoresearch

A small LLM training setup that a coding agent experiments on by itself overnight

commercial softwarefree

autoresearch, by Andrej Karpathy, gives an AI coding agent a small but real LLM training setup, a simplified single-GPU version of nanochat, and lets it run research on its own. The agent edits train.py (the model, optimizer and training loop), trains for a fixed 5 minutes, keeps the change if validation bits per byte improved and discards it if not, then repeats: about 12 experiments an hour, or 100 overnight. The person programs the agent through program.md, a plain Markdown file of instructions, rather than editing the Python. You run it by pointing Claude Code, Codex or another coding agent at the repository.

Problems it solves

  • let a coding agent run machine learning experiments on its own while I sleep
  • try automated research on a small language model with one GPU
  • set up an agent loop that keeps only the training changes that improve the model

Features

  • the agent edits one file, train.py, so diffs stay reviewable
  • fixed 5-minute training runs make experiments comparable
  • one metric, validation bits per byte, independent of vocabulary size
  • program.md holds the agent's instructions, edited by the person
  • community forks for macOS, MLX, Windows and AMD GPUs

Limitations

  • Needs a single NVIDIA GPU (tested on an H100); other platforms need one of the community forks.1
  • The repository has no LICENSE file, so although its README says MIT, it isn't open source.12

Alternatives

The same job

These do what autoresearch does.

  1. The AI Scientist Automated open-ended scientific discovery with LLMs: ideas, experiments, papers and reviews

Compare autoresearch with the top 3