karpathy / micrograd
git clone https://github.com/karpathy/micrograd.git
🔥 on GitHub Trending today
A tiny scalar-valued autograd engine with a small PyTorch-like neural network library built on top of it.
Why you might care
Roughly 100 lines for the autograd engine and 50 for the nn library, making it a compact way to see how backpropagation over a dynamic DAG works. Suited to learning and teaching; the README points to microgpt as a more efficient follow-up engine.
+11
stars, 24h · #3,180
—
stars, 7 days
—
stars, 30 days
18k
★ total
2.9k
forks · 31 open issues
Star history starts 2026-10-24; the chart appears after the second daily snapshot.
LanguageJupyter Notebook
LicenseMIT
Created2020-04-13 (6y ago)
Last push2mo ago
Watchers199
OwnerUser
Seen on GitHub Trending
- 2026-10-24 — #18 daily in jupyter-notebook · +11 ★
Links
README
Loading README…
Blurb generated by claude-haiku-5-5 today. Star deltas marked ~ are extrapolated from partial history.