r/FunMachineLearning • u/yagupta • Oct 18 '26
Training GPT2 on my Golf Simulator Machine
Title: Training GPT-2 (124M) from scratch on one RTX A5000 at home, live: every step, watt and checkpoint is public, and you can query any checkpoint
I wanted to actually understand pretraining, so I’m reproducing GPT-2 small with Karpathy’s build-nanogpt recipe (10B tokens of FineWeb-Edu, 19k steps) on a single 24 GB A5000 under my desk, and I put the whole thing on a live page:
- loss / lr / grad-norm / MFU charts updating as it trains (≈50k tok/s, 38% MFU with torch.compile + bf16)
- the GPU itself: power at the 230 W cap, 79 °C, VRAM, PCIe traffic
- a Playground where you can run any checkpoint (no login). At step 0, “The capital of France is” → word salad; at step 500 → “a large number of the number of the population.” Fluent, wrong. Facts come later.
- an auto-generated video at every checkpoint asking the same question with the same seed
Total cost for the full ~55-hour run: about $2 of electricity (vs ~$17 to rent the GPU).
Live: https://x.com/y99/status/2111668852656607496?s=20
Things I learned so far: [one or two real findings by the time you post]. Happy to answer questions about the setup.
(It’s my project; nothing to sell.)
2
u/mizhgun Oct 18 '26
> Things I learned so far: [one or two real findings by the time you post]. Happy to answer questions about the setup.
🤣