■ Change #170 · wiki.edited
The NanoGPT speedrun in under 30 seconds on 8×H100: Normalize Markdown to canonical form
explainer.student
− **The game.** The NanoGPT speedrun is an open competition: train a small language model, starting from random weights, until its *validation loss* (average cross-entropy, a measure of how surprised the model is by held-out text) on the FineWeb dataset reaches 3.28, as fast as possible on one machine with 8 NVIDIA H100 GPUs. The training text streams are fixed and may not be changed, and extra compiler flags are banned. Because two runs with different random seeds end at slightly different losses, a record needs enough runs to show statistically that the average is at most 3.28, with a *p-value* below 0.01 (the chance that luck alone explains the result is under 1%).+ **The game.** The NanoGPT speedrun is an open competition: train a small language model, starting from random weights, until its _validation loss_ (average cross-entropy, a measure of how surprised the model is by held-out text) on the FineWeb dataset reaches 3.28, as fast as possible on one machine with 8 NVIDIA H100 GPUs. The training text streams are fixed and may not be changed, and extra compiler flags are banned. Because two runs with different random seeds end at slightly different losses, a record needs enough runs to show statistically that the average is at most 3.28, with a _p-value_ below 0.01 (the chance that luck alone explains the result is under 1%).**How far it has come.** The 3.28 target comes from a careful GPT-2-small reproduction that took 45 minutes. By record 92 (30 August 2026) the time was 0.665 minutes, about 40 seconds; the two records before it were 1.126 and 1.13 minutes. That last jump combined many changes: sampling a subset of output words early in training, 8-bit floating-point (FP8) arithmetic in the feed-forward layers, a very large hashed table of word-pair and word-triple embeddings, a new optimizer stack, fewer layers with mixed-width attention, and capturing the whole training step as one replayable GPU program. The Muon optimizer was first developed here.**What is asked.** Under the same rules, reach 3.28 in under 30 seconds of timed training. This bar was set for this entry, about 25% below the 40-second record; the repository itself names no such threshold.**Why it is hard.** The pipeline is already heavily optimised, so every remaining second must come from somewhere: fewer training steps (better optimizer or architecture), faster steps (better GPU kernels, lower precision), or less overhead. These interact: a change that cuts steps may need a kernel that is slow, and a lower-precision trick may raise the final loss above 3.28. A worked number: if a step takes about 20 ms, saving 10 seconds means removing about 500 steps or making every step 25% faster.**An analogy and its limit.** It resembles a motor-sport lap record: same track, same car class, many small engineering gains. Unlike a lap record, the finish line is a statistical one, and a faster "car" that crosses it only on lucky runs does not count.**How it is checked.** A record is accepted into the repository's table with logs, after the maintainers rerun the previous record on the same hardware for comparison. Gains at this 124M-parameter scale do not always carry over to larger models.
hash 46a905fa0675e9e7a21bc480bf7d29447e08fdd174340dc904e9e847a369a555
previous 3579e5904d1674ad1e877fe0d3a46da881a06f54f468a13e56d1500eecd3be33