
Andrej Karpathy's minimal, full-stack ChatGPT clone: train, fine-tune and chat with your own model.
“Every stage of building a chat model in one small, readable codebase. Nothing is hidden.”
Excellent for developers with PyTorch basics who want to read and run a whole LLM pipeline end to end; not a beginner tutorial.
Covers tokenizer, pretraining, SFT, RL, eval, KV-cache engine, Muon optimizer, explicit dtype design, scaling-law notebooks and dev/LOG.md
README is clear with a file-structure map with per-file comments and the single --depth dial; no step-by-step teaching, code itself is the lesson
Authored by Karpathy; leaderboard rows list commits and CORE metrics; MIT, 441 commits, tests/ directory exists
runs/speedrun.sh runs the full pipeline; chat_cli, runcpu.sh, d12 5-minute experiment command; but needs 8XH100 (~$48) for the headline run
All stages: tok_train, base_train, chat_sft, chat_rl, chat_eval, inference, plus tasks (GSM8K, MMLU, ARC, HumanEval)
Last push 2026-09-07; leaderboard entries through Mar 2026; fp8, FA3 fallback; 60k stars, active issues
Setup, speedrun, research and guides sections are ordered, but it is a repo, not a curriculum; no progressive exercises and some guides are external
Free MIT code with no sign-up; real GPU compute costs ~$15-48 to reproduce; CPU/MPS path is only a toy
No ads or upsell; minimal codebase by design; README is focused with a leaderboard and clear contribution philosophy
AI-assessed on 28 Nov 2026 from 5 pages read and GitHub data. Medium confidence.
Nobody has tagged this on X yet. Reply to a post about it and tag @resourcehivebot to be the first.
Picked by the Hive editors · Report a problem