Karpathy’s ~300-line GPT trainer — the cleanest way to learn LLM training.
Catalog snapshot
Education-grade: expect pedagogy, not SOTA checkpoints.
Fetched 1
nanoGPT is Karpathy’s MIT teaching repo: train a small GPT from scratch in ~300 lines, reproduce the Shakespeare speedrun, or fine-tune GPT-2 class models. The best on-ramp to actually understanding training. Not a product.
GPT training from scratch · char and token models · Shakespeare speedrun · clean Karpathy code