# karpathy/autoresearch: AI agents running research on single-GPU nanochat training automatically

_Friday, June 26, 2026 at 8:25 PM EDT · AI · Latest · Tier 2 — Notable_

![karpathy/autoresearch: AI agents running research on single-GPU nanochat training automatically — Primary](https://opengraph.githubassets.com/4484fb0dcaacc98836d4731ff937b468cc942cc3e270691f83912ddeb01129f2/karpathy/autoresearch)

The autoresearch repository enables an AI agent to conduct autonomous experiments on training a language model using a single GPU implementation of nanochat. The agent modifies the training code, runs a session for five minutes, evaluates the result with the validation bits per byte metric, and either retains or discards the changes before repeating the cycle. A user starts the process and later reviews a log of the experiments along with any improved model.

The project structure relies on three primary files. The prepare.py file handles fixed data preparation and utilities and remains unchanged. The train.py file contains the model, optimizer, and training loop and serves as the sole file the agent edits. The program.md file supplies the baseline instructions for the agent and is the file updated by the human.

Each training run uses a fixed five minute wall clock budget that excludes startup and compilation time. This produces approximately 12 experiments per hour and roughly 100 experiments over an overnight period. The setup requires a single NVIDIA GPU along with Python 3.10 or newer and the uv project manager.

The design limits agent changes to one file to keep modifications reviewable. Initial setup involves installing dependencies, preparing data, and then directing an AI coding agent to the program.md file.

## Sources

- [GitHub](https://github.com/karpathy/autoresearch)

---
Canonical: https://techandbusiness.org/newswire/dwShKCC5FBZlnWiQ1Ri4dB
Retrieved: 2026-06-27T04:55:52.682Z
Publisher: Tech & Business (techandbusiness.org)
