karpathy/nanochat
Full ChatGPT-style training pipeline in a small codebase, ~$100 run
What
Minimal, hackable end-to-end pipeline (tokenizer, pretraining, midtraining, SFT, RL, eval, web chat UI) to train a small ChatGPT clone for about $100.
How to use
on an 8×H100 node, clone the repo and run bash speedrun.sh (~4 hours), then serve the chat UI with the provided web script.
Reach for it when
learning how an LLM chat model is built end to end.