qmetrics.net

Tinygrad

Compact hackable deep learning stack with autograd and compiler

Tinygrad is an end-to-end deep learning stack with tensors, autograd, a visible compiler, and training utilities. It targets familiar training loops while keeping the IR small and editable.

Overview

Tinygrad sits between a minimal teaching library and a full framework like PyTorch. It bundles a tensor library with autograd, an intermediate representation and compiler that fuse and lower kernels, JIT graph execution, and modules for neural networks, optimizers, and datasets.

The design draws on PyTorch-style eager tensors, JAX-like IR-based autodiff and function-level JIT, and TVM-inspired scheduling and codegen, but keeps the whole stack small enough to read and modify. Operations can lazy-fuse into single kernels, and debug modes can show generated code.

For training, it includes optimizers, data loading, and layer primitives so you can run standard loops. Example workflows include neural network training on accelerators with autograd and tensor ops at the core.

Hardware support listed in the project includes OpenCL, CPU, Metal, CUDA, AMD, NV, QCOM, and WebGPU, with the note that new backends need only a modest set of low-level ops. Documentation and a quick start guide are published separately from the core code.

Key features

  • Tensor library with autograd
  • IR and kernel compiler with fusion
  • JIT and graph execution
  • Neural network and optimizer modules
  • Lazy operation fusion
  • Multiple accelerator backends
  • Dataset helpers for training
  • Debug views of generated kernels

Use cases

  • Training neural networks locally
  • Experimenting with compiler and IR design
  • Running familiar PyTorch-style loops
  • Targeting diverse GPU and CPU backends
  • Learning how small DL stacks are built

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0