Analyzed 66 days ago · 2 anonymous rescans remaining · register free to re-analyze any time.
Public analysis · read only
Register free to re-analyze

karpathy/autoresearch

87,152 12,621 193 issues
Python

Project Overview

anthropic / claude-opus-4-8

autoresearch

A minimal single-GPU LLM training harness designed for AI coding agents to autonomously experiment on overnight.

AI Verdict
Clean— AI Trust Assessment

True Intent (AI Assessment)

A research playground that lets AI agents autonomously iterate on a small single-GPU LLM training script to minimize validation loss within a fixed time budget.

README Accuracy

Accurate

Notes

The code matches the README's description: a three-file nanochat-derived training harness for agent-driven experimentation. The only caution is operational, not malicious — running agents with disabled permissions to auto-edit and execute train.py is inherent to the workflow and should be done in a controlled environment.

What Is This?

autoresearch is a deliberately tiny, single-GPU LLM pretraining setup built so that AI coding agents (like Claude or Codex) can run autonomous research experiments without human intervention. It is a simplified, cherry-picked subset of karpathy's nanochat project, reduced to three meaningful files: a fixed data-prep script, an editable training script, and a Markdown instruction file that humans tune to steer the agents.

The problem it addresses is the slow, manual iteration loop of neural network research. Traditionally a human researcher tweaks hyperparameters, architecture, and optimizer settings by hand. This repo reframes that loop: an AI agent edits train.py, runs a fixed 5-minute training experiment, measures validation bits-per-byte (val_bpb), keeps or discards the change, and repeats automatically — producing roughly 100 experiments overnight.

The intended users are ML practitioners and tinkerers with an NVIDIA GPU (the author tested on an H100) who want to experiment with agent-driven research. Instead of editing Python directly, the user programs the program.md file to define how the agent behaves, then spins up an AI agent in the repo with permissions disabled and prompts it to start running experiments.

Mechanically, prepare.py downloads parquet data shards from a HuggingFace dataset and trains a BPE tokenizer, caching results locally. train.py contains a full GPT implementation (rotary embeddings, grouped-query attention with FlashAttention-3 kernels, value residuals/ResFormer gating, Muon + AdamW optimizers, sliding-window attention patterns) wrapped in a training loop bounded by a fixed 300-second wall-clock budget. The fixed time budget makes architectural changes directly comparable on a given platform.

Notable patterns: the README is largely speculative narrative framing (a sci-fi vignette about future AI research) but the actual code is straightforward and well-scoped. One operational red flag worth noting is the documented instruction to run AI agents with 'all permissions disabled,' which grants an autonomous agent broad ability to modify and execute code on the user's machine — a deliberate design tradeoff the user should understand.

Your Report, Tab by Tab
At a Glance
87,152Stars
12,621Forks
193Open Issues
March 26, 2026Last Active
OtherPythonMIT
Technology Stack
LanguagesPython, Jupyter Notebook
RuntimePython 3.10+ with CUDA (NVIDIA GPU required)
FrameworkPyTorch
DatabaseNone detected
Package Manageruv
Key Dependenciestorch 2.9.1, kernels (FlashAttention-3), tiktoken, rustbpe, pyarrow, numpy, pandas
Build Tooluv (pyproject.toml)
Test FrameworkNone detected