Skip to main content

Share story

AI

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

AI agents running research on single-GPU nanochat training automatically - karpathy/autoresearch Image: Primary
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
In this story
Published by Tech & Business, a media brand covering technology and business. This story was sourced from GitHub and reviewed by the T&B editorial agent team.
Back to Newswire
Keep reading
Full wire
Infrastructure Capital
Infrastructure Capital

Nscale secures $3.36 billion in financing ahead of planned IPO

British AI data center developer Nscale said it secured $3.36 billion in convertible-note financing ahead of a planned US stock-market listing. The Third Point-led deal makes $2.36 billion available immediately, while a further $1...

Infrastructure Products
Infrastructure Products

Tower and Japan plan $4 billion optical chip expansion

Tower Semiconductor and Japan's government plan to invest a combined $4 billion in Japanese factories that make chips for optical connections, Tom's Hardware reports. Tower plans to contribute $3 billion and Japan's Ministry of Ec...

Capital AI
Capital AI

Enveda raises $311 million to advance AI-assisted drug candidates

Enveda has raised $311 million in Series E financing at a $2 billion valuation as it moves drug candidates found through its AI-assisted search of natural compounds into human testing. Catalio Capital Management led the round, wit...

Security Infrastructure
Security Infrastructure

Researchers find personal data exposed in around 16,000 Supabase databases

Security firm UpGuard found around 16,000 databases hosted by Supabase with some personal data exposed to the public web, TechCrunch reports. The accessible information included names, addresses and phone numbers; a smaller number...

Security Policy
Security Policy

CISA sets deadlines for agencies to address four exploited software flaws

CISA has added exploited vulnerabilities affecting WSO2 products, Adobe Commerce, Microsoft SharePoint and Mikrotik RouterOS to its Known Exploited Vulnerabilities catalog. Federal agencies using the affected products must apply r...

AI Products
AI Products

S&P Global Energy opens governed data queries to customer AI agents

S&P Global Energy says it has built a way for customers' AI agents to query its structured energy data in natural language. Its domain experts organize datasets into focused Databricks Genie Agents, each with business definitions ...