powerful-horse-58724
04/13/2026, 8:06 PMThe idea: 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 or discards, and repeats.https://github.com/karpathy/autoresearch Try to learn or build something with Tavily by April 17th!
powerful-horse-58724
04/13/2026, 8:06 PMpowerful-horse-58724
04/13/2026, 8:07 PMpowerful-horse-58724
04/13/2026, 8:07 PMfierce-magician-24790
04/16/2026, 3:02 PMpowerful-horse-58724
04/16/2026, 4:54 PMfierce-magician-24790
04/16/2026, 4:54 PMfierce-magician-24790
04/16/2026, 4:56 PMpowerful-horse-58724
04/16/2026, 4:57 PMfierce-magician-24790
04/16/2026, 8:10 PMpowerful-horse-58724
04/16/2026, 8:12 PMpowerful-horse-58724
04/16/2026, 8:13 PMpowerful-horse-58724
04/16/2026, 8:14 PMfierce-magician-24790
04/16/2026, 8:18 PMtrain.py
⢠Asks Claude to propose one focused change (hyperparameters, architecture, optimizer settings, etc.)
⢠Runs training, measures validation loss
⢠Keeps the change if it improves, reverts if it doesn't
⢠Repeats overnight on a GCP T4 GPU
So the model being trained is a small GPT (~25M params) on the TinyStories dataset ā because of using the T4 GPUfierce-magician-24790
04/16/2026, 8:31 PMF.scaled_dot_product_attention ā T4 doesn't support the custom FA3 kernel
⢠WINDOW_PATTERN changed from "SSSL" to "LLLL" ā sliding window attention requires Flash Attn 3
⢠DEVICE_BATCH_SIZE reduced from 128 ā 16 to fit T4's 16GB VRAM
Training loop fixes
Fixed train_loss to accumulate correctly across all GRAD_ACCUM_STEPS micro-batches ā original only captured the last micro-batch loss
⢠Added a 3-step warmup probe at startup to dynamically estimate total_steps for the LR schedule ā original assumed a fixed step count
Dataset
⢠Pointed data loading at TinyStories data/ directory instead of the original dataset
Agent-discovered at runtime (not our code changes)
⢠TOTAL_BATCH_SIZE reduced from 2^17 ā 2^14 across three consecutive experiments ā smaller batches = more optimizer steps in the 5-minute window = better convergence on a time-budgeted T4 run