将实验标准化为 5 分钟挂钟训练预算,并使用与词表大小无关的验证 bits per byte(val_bpb)指标进行比较。
限制与风险
目前需要单块 NVIDIA GPU,不支持 CPU、MPS 或 AMD 平台。
固定时间预算使同一平台上的结果具有可比性,但不同计算平台之间的运行结果不可比。
如何开始
首先安装 uv 项目管理器,使用其同步项目依赖。
运行 prepare.py 脚本下载训练数据并训练 BPE 分词器。
在启动自主循环前,手动运行一次训练实验以确认环境正常。
核验依据
README: give an AI agent a small but real LLM training setup and let it experiment autonomously overnight. It modifies the code, trains for 5 minutes, checks if the result improved, keeps…
README: train.py — the single file the agent edits. Contains the full GPT model, optimizer (Muon + AdamW), and training loop.
README: Requirements: A single NVIDIA GPU (tested on H100)
README: The `program.md` file is essentially a super lightweight "skill".
README: prepare.py — fixed constants, one-time data prep (downloads training data, trains a BPE tokenizer), and runtime utilities (dataloader, evaluation).