Training NanoGPT in 39.9 Seconds — Hyperstition
hyperstition.cc · 1,651 words · saved by 4 readers
How I brought NanoGPT training from 73.889 to 39.914 seconds with ANVIL II, sampled softmax, and sparse updates to the bigram and trigram tables.
Authors Deven Pietrzak. TL;DR We train the NanoGPT model to the target loss in 39.914 seconds on 8×H100, down from the previous record of 73.889 seconds. By percentage reduction in training time, this is a greater improvement than the previous 45 world records combined. We derive gains from ANVIL II, sampled softmax and a larger sparse n-gram model. For reasons proprietary to Hyperstition, we redacted methods that scale to the frontier from our public record, apart from ANVIL II. Learn more about its extensions: Cutting Pretraining Costs by 62%. Introduction The NanoGPT speedrun…
saved by
related reading
- 10x Data Efficiency - NanoGPT Slowrunqlabs.sh
- Evidence on AI R&D Progress from NanoGPT - METRmetr.org
- [2509.14786] Pre-training under infinite computearxiv.org
- Pretraining progress is mostly coming from datadwarkesh.com
- microgptkarpathy.github.io
- GitHub - karpathy/nanochat: The best ChatGPT that $100 can buy.github.com
- Let's build GPT: from scratch, in code, spelled out.youtube.com
- Let's reproduce GPT-2 (124M)youtube.com
- [2005.14165] Language Models are Few-Shot Learnersarxiv.org
- GPT in 60 Lines of NumPy | Jay Modyjaykmody.com
- PyTorch Profiling 101 with Modded-NanoGPTblog.underfit.ai
- The Annotated Transformernlp.seas.harvard.edu