karpathy/micrograd
A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
The project lists 2 contributors on GitHub.
Peaked at #38 in the weekly ranking the week of Oct 26, its best in the past year.
Use Cases & Benefits
- Implements a minimal scalar autograd engine and a small neural network library with a PyTorch-like API for educational purposes.
- Offers a highly concise and transparent codebase to understand backpropagation and neural network fundamentals in about 150 lines of code.
- Use for learning and experimenting with reverse-mode automatic differentiation on scalar values in Python notebooks.
- Use for building and training simple multi-layer perceptrons for binary classification with a clear, minimalistic implementation.
- Use for visualizing computation graphs and gradients to gain intuition about neural network operations and backpropagation.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
Watch-outs
- Owned by an individual account with only 2 contributors on GitHub; plan for bus-factor risk.
- No GitHub releases; pin a commit or tag instead of a release.
General guidance from repository metadata, not legal advice. How we score
From the README
A tiny Autograd engine (with a bite! :)). Implements backpropagation (reverse-mode autodiff) over a dynamically built DAG and a small neural networks library on top of it with a PyTorch-like API. Both are tiny, with about 100 and 50 lines of code respectively. The DAG only operates over scalar values, so e.g. we chop up each neuron into all of its individual tiny adds and multiplies. However, this is enough to build up entire deep neural nets doing binary classification, as the demo notebook shows. Potentially useful for educational purposes.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
3.0K+269
Open issues
84+6
Compared with peers in Deep Learning
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 22, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| harvard-edge/cs249r_book | 30.2K | — | 65 | 9 days ago |
| onnx/onnx | 21.7K | — | 63 | 43 days ago |
| mlc-ai/web-llm | 19.4K | — | 60 | 2 days ago |
| karpathy/micrograd | 18.8K | — | 6 | — |
| lukas-blecher/LaTeX-OCR | 16.6K | — | 18 | — |
| SharpAI/DeepCamera | 3.1K | — | 30 | 250 days ago |
| Category median | 19.4K | — | 60 | — |
Also by karpathy
Other repositories from this maintainer that GStars tracks
- Python100.4K stars
autoresearch
AI agents running research on single-GPU nanochat training automatically
- Python64.9K stars
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
- Python60.5K stars
nanochat
The best ChatGPT that $100 can buy.
- Jupyter Notebook25.9K stars
nn-zero-to-hero
Neural Networks: Zero to Hero
- Python25.0K stars
minGPT
A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training
Discover Repositories
Search across tracked repositories by name or description