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

HTML Artifacts Replace Google Docs for Technical Docs, but Lack Commenting
Claude-generated HTML artifacts are replacing Google Docs for long-form technical content like spike readouts and architecture notes, but the sandboxed iframe nature prevents inline commenting and review features.

LumaBrowser: Electron Browser Offloads DOM Parsing to Local LLMs for AI Agents
LumaBrowser is an Electron browser that offloads DOM parsing to local LLMs via OpenAI-compatible endpoints, helping autonomous agents avoid processing raw HTML. It uses models like Qwen 2.5 variants to identify UI elements and returns CSS selectors.

Code retrieval for AI agents: Why vector embeddings fail and per-file LLM graphs win
After a year of building a code indexing system, the team behind Bytebell found that vector embeddings on code chunks and Tree-sitter ASTs both fell short, while per-file LLM summaries stored in a Neo4j graph with semantic fulltext search significantly improved retrieval precision.

RubyLLM: One Ruby Framework for All Major AI Providers
RubyLLM provides a single Ruby framework for OpenAI, Anthropic, Gemini, Ollama, and 800+ models. Features chat, vision, audio, tools, agents, streaming, and Rails integration.