tinygrad

Small, readable deep learning framework with autograd, a kernel-fusing compiler and many GPU backends.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Built by tiny corp, the company George Hotz started around it, tinygrad tries to be a full deep learning stack that one person can read top to bottom. On the surface sits a PyTorch-style Tensor with autograd, nn layers, optimizers and dataset helpers. Underneath, a small compiler records operations lazily, fuses chains of them into one generated kernel, and can run a BEAM search over kernel variants; raising the DEBUG environment variable prints the code it emits, and TinyJit captures kernel graphs once and replays them. Devices include NVIDIA via CUDA or its own NV runtime, AMD, Apple Metal, OpenCL, WebGPU, Qualcomm and CPU, and a new accelerator only has to implement a short list of primitive ops. It ships in real products: comma.ai's openpilot runs its driving model with it on a Snapdragon 845 GPU, and tiny corp sells tinybox machines built for it. Install from source with pip; the project is pre-1.0, so expect API churn. The MIT license puts no limits on commercial use. A good match for researchers, compiler hackers and hardware vendors who want to see how tensor code becomes GPU programs.

Should you use tinygrad?

Pick it when

Pick this when you want a deep learning framework small enough to read end to end, to study how lazy evaluation and kernel fusion work, or to experiment with new accelerator backends without wading through PyTorch's C++ core.

Look elsewhere when

Its model zoo, documentation, and third-party ecosystem are a fraction of PyTorch's, and its pre-1.0 APIs still change. For production training use PyTorch; to learn autograd basics alone, micrograd is simpler.

Alternatives to tinygrad

  • micrograd

    About a hundred lines of scalar autograd for learning only; easier to grasp, but it cannot run real models the way tinygrad can.

  • PyTorch

    The production default with a vast ecosystem and mature GPU support; far too large to read and modify the way tinygrad invites.

  • JAX

    Shares the functional-transform ideas, with XLA compilation and TPU support; a mature research tool rather than a hackable minimal one.

  • Triton (OpenAI)

    If your real interest is fast GPU kernels, it compiles hand-written Python kernels directly; a kernel language, not a full framework.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
MIT
Added
Apr 3, 2026

Tags