KellerJordan/modded-nanogpt
NanoGPT (124M) in 90 seconds
Recommended between 2025-10-13 and 2026-04-05. Last pushed 2026-09-28.
▲ 3 recommend · ▼ 0 criticisms
What hackers say
“There's also modded-nanogpt which turns the same kind of experimentation into a training speedrun (and maybe loses some rigor on the way)”
— wongarsu, 2026-04-05 · original comment on Hacker News ↗
show original comment
It's also a great base for experimentation. If you have an idea for an architecture improvement you can try it for $36 on the 20 layer nanocode setting, then for another $200 see how it holds up on the "full scale" nanocode Kaparthy's notes on improving nanochat [1] are one of my favorite blog-like things to read. Really neat to see which features have how much influence, and how the scaling laws evolve as you improve the architecture There's also modded-nanogpt which turns the same kind of experimentation into a training speedrun (and maybe loses some rigor on the way) [2] 1 https://github.com/karpathy/nanochat/blob/master/dev/LOG.md 2 https://github.com/kellerjordan/modded-nanogpt
“I'd say try the nanogpt speedrun. It's much easier to train and gives you a better comparison vs optimized systems.”
— Herring, 2026-01-18 · original comment on Hacker News ↗
show original comment
I'd say try the nanogpt speedrun. It's much easier to train and gives you a better comparison vs optimized systems. https://github.com/KellerJordan/modded-nanogpt
“modded-nanoGPT [1] is a great project, well worth checking out, it's all about massively speeding up the training of a small GPT model.”
— montebicyclelo, 2025-10-13 · original comment on Hacker News ↗
show original comment
> nanochat is also inspired by modded-nanoGPT Nice synergy here, the lineage is: Karpathy's nano-GPT -> Keller Jordan's modded-nanoGPT (a speedrun of training nanoGPT) -> NanoChat modded-nanoGPT [1] is a great project, well worth checking out, it's all about massively speeding up the training of a small GPT model. Notably it uses the author's Muon optimizer [2], rather than AdamW, (for the linear layers). [1] https://github.com/KellerJordan/modded-nanogpt [2] https://kellerjordan.github.io/posts/muon/
Badge for your README
[](https://hackerrepos.org/repo/kellerjordan/modded-nanogpt)