▲ 277 today101k starsPythonHN ×1
AI agents auto-train a nanochat model on a single GPU
What is autoresearch?
The repo lets an autonomous AI agent iteratively modify a tiny LLM training script, run a five-minute nanochat training run on one GPU, evaluate the result and repeat. You just write a markdown file that tells the agent what to try, and in the morning you get a log of experiments and a hopefully better model.
Who it is for
Researchers and hobbyists who want to experiment with self-optimising training loops should check it out, because it automates the trial-and-error cycle.
How autoresearch works
The repo provides a single-GPU training loop that is a simplified version of nanochat. A fixed 5-minute wall-clock budget is enforced for each run, and the model’s performance is measured by validation bits per byte. The Python file train.py contains the entire GPT model, optimizer and training code, and an AI agent is allowed to edit this file autonomously. prepare.py handles one-time data download, tokenization and utility functions, while program.md supplies the human-written instructions for the agent. Experiments are logged so the human can review any improvements.
What you can do with it
- Run a 5-minute training experiment on a single NVIDIA GPU.
- Let an AI coding agent automatically modify train.py to try new architectures or hyper-parameters.
- Compare different model variants using the val_bpb metric.
- Use program.md to steer the agent’s research agenda.
Good to know
- Only works on a single NVIDIA GPU; other platforms are not supported out of the box.
- Results are not directly comparable across different hardware because the time budget is fixed, not the compute.
- The project is a minimal, experimental setup with no distributed training or advanced platform support.
Written from the project's own README.
Try it in 60 seconds
You need: Python 3.x and a CUDA-enabled GPU
No one-line install. The README has the setup steps.
No license listedUpdated 8 months agoPython195 open issues
New projects are not vetted. Skim the code, and run it in a fresh folder or a container before giving it your files or keys.
The story so far
Early Signal first spotted karpathy/autoresearch on December 5, 2026, when it had 101k GitHub stars. It now has 101k. On its busiest day it gained 277 stars. It has been discussed in 1 Hacker News thread, the top one with 208 points. Early Signal files it under Agents, Coding, LLMs.
Questions about autoresearch
- What do I need to run autoresearch?
- Python 3.x and a CUDA-enabled GPU