Karpathy's autoresearch project: AI agents run overnight LLM training experiments

What Karpathy's autoresearch project does
Andrej Karpathy released a tiny repository called "autoresearch" that demonstrates an "AI researcher in a loop" concept. The system uses an AI agent to autonomously run LLM training experiments overnight on a single GPU.
How it works
The agent follows this workflow:
- Continuously edits the
train.pyfile - Runs 5-minute nanochat training experiments
- Checks whether the validation bits-per-byte (
val_bpb) metric improved - Repeats this cycle while you sleep
Setup and configuration
The project has a super minimal setup:
- Hardware: One GPU
- Files: One main file
- Metrics: One primary metric (
val_bpb)
The human writes the research organization prompt in program.md, and the agent handles the code iteration.
Experiment throughput
With a fixed 5-minute budget per experiment, the system can run approximately 12 experiments per hour.
This approach demonstrates a practical implementation of automated research where AI agents can explore parameter spaces and training configurations autonomously, potentially accelerating experimentation cycles for developers working with language models.
📖 Read the full source: r/LocalLLaMA
👀 See Also

HomeButler: MCP Server for Managing Homelab Servers from Claude Without API Keys
HomeButler is an MCP server that lets Claude install, monitor, and manage self-hosted apps on homelab servers without requiring API keys. It runs locally, keeps everything on your network, and was built with Claude Code.

Engram: Hybrid Memory Plugin for OpenClaw Agents — Vector + Semantic Search with Decay
Engram gives OpenClaw agents persistent memory across sessions using SQLite+FTS5 for exact recall and LanceDB for semantic search, with decay classes and auto-capture hooks.

Reduce AI Coding Session Costs by 90% with Graph-Based Code Indexing
A developer built a local graph database that indexes a codebase using LLM-generated summaries, cutting Claude Code session costs from $6-10 to cents by avoiding redundant file re-reads.

Persistent AI Advisor with Cross-Platform Memory: Tracks Decision History for 3 Months
A Reddit user built a persistent AI advisor that remembers every product decision across Claude Code, Cursor, and a web interface, catching contradictions and improving over months.