#7777th of 433 in ML frameworks and libraries

tinygrad

Small deep learning stack with tensors, autograd, and a readable compiler

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
34k
License
MIT
Last commit
Nov 2026
Last release
Aug 2026
Language
Python
Stars, last 35 weeks+2,322
24 Mar 2026: 31,680 stars31 Mar 2026: 31,749 stars7 Apr 2026: 31,955 stars14 Apr 2026: 32,139 stars21 Apr 2026: 32,259 stars28 Apr 2026: 32,325 stars5 May 2026: 32,379 stars12 May 2026: 32,437 stars19 May 2026: 32,496 stars26 May 2026: 32,595 stars2 Jun 2026: 32,726 stars9 Jun 2026: 32,839 stars16 Jun 2026: 32,904 stars23 Jun 2026: 32,960 stars30 Jun 2026: 33,012 stars7 Jul 2026: 33,087 stars14 Jul 2026: 33,132 stars21 Jul 2026: 33,164 stars28 Jul 2026: 33,233 stars4 Aug 2026: 33,285 stars11 Aug 2026: 33,318 stars18 Aug 2026: 33,359 stars25 Aug 2026: 33,416 stars1 Sept 2026: 33,451 stars8 Sept 2026: 33,493 stars15 Sept 2026: 33,528 stars22 Sept 2026: 33,574 stars29 Sept 2026: 33,624 stars6 Oct 2026: 33,666 stars13 Oct 2026: 33,716 stars20 Oct 2026: 33,760 stars27 Oct 2026: 33,798 stars3 Nov 2026: 33,830 stars10 Nov 2026: 33,901 stars17 Nov 2026: 33,960 stars24 Nov 2026: 34,002 stars

31,680 on 24 Mar 202634,002 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

tinygrad is a Python tensor library with autograd, an IR and compiler that fuses and lowers kernels, a JIT (TinyJit) with graph execution, and nn, optim and dataset modules for training. It targets OpenCL, CPU, Metal, CUDA, AMD, NV, QCOM and WebGPU, and a new backend needs about 25 low-level ops. The API follows PyTorch, but the compiler and IR are kept small enough to read and modify.

Who it is for: Engineers who want a hackable PyTorch alternative or a compiler to study

Strengths

  • Whole compiler and IR are visible and hackable, unlike PyTorch
  • Eager Tensor API and autograd close to PyTorch, so training loops look familiar
  • Backends for OpenCL, CPU, Metal, CUDA, AMD, NV, QCOM and WebGPU
  • New accelerator needs only about 25 low-level ops

Weaknesses

  • Fewer functional transforms than JAX: no full vmap or pmap yet
  • README says the library is not 1.0 yet
  • Recommended install is from source; no PyPI instructions in the README
  • Strict contribution rules: AI-looking PRs from new contributors are closed

What it needs

  • GPU optional
  • Models: OpenCL, CPU, Metal, CUDA, AMD

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#75riverPython library for online machine learning on streaming data6.2k starsBSD-3-Clause77 out of 100
#76deeplabcutMarkerless animal pose estimation toolbox with GUI and Python API Live demo ↗ (opens in a new tab)5.8k starsLGPL-3.077 out of 100
#78ncnnC++ neural network inference library for mobile, embedded and desktop devices24.1k starscustom license76 out of 100
#79visionPyTorch library of vision datasets, model architectures and image transforms18k starsBSD-3-Clause76 out of 100
#80flaxNeural network library for JAX built around mutable Python objects7.4k starsApache-2.076 out of 100