The essence of text diffusion in ~150 lines of pure Python. Inspired by Karpathy's MicroGPT.
-
Updated
Mar 12, 2026 - Python
The essence of text diffusion in ~150 lines of pure Python. Inspired by Karpathy's MicroGPT.
"Everything else is just for efficiency." — Karpathy's microgpt benchmarked across scalar autograd, NumPy, and PyTorch (RTX 5080)
Composable tiny intelligence from microgpt. Pure Python. Zero dependencies.
Pure Python Grassmann Flow language model (~130 lines, no dependencies) — "Attention Is Not What You Need" (arXiv:2512.19428) in microGPT style
MiniGPT-16MB: The Ultra-Light Storyteller, driven by a high-performance Language Model (LLM) designed to run entirely in the browser. At under 16MB, this model is optimized for low-end hardware, mobile devices, and offline use.
Add a description, image, and links to the microgpt topic page so that developers can more easily learn about it.
To associate your repository with the microgpt topic, visit your repo's landing page and select "manage topics."