mrkeyoor.comAsk

tinygrad/tinygradtested 05 Nov 2026commit d4201de

tinygrad review

Use tinygrad if inspecting or changing a tensor compiler is part of your work and you can investigate backend setup.

  • README install 17 s
  • README snippet failed
4/204passed, run exited non-zero
  • 19.1 MB on disk
  • 0 dependencies
AI Toolsevaluationupdated 27 Nov 2026
+42stars / 7d

tinygrad is a deep-learning stack with a tensor library, automatic differentiation, a compiler and JIT graph execution. Its README exposes generated code through DEBUG=4, making it a useful candidate for developers who want to inspect or change how tensor calculations execute.

Verdict

Use tinygrad if inspecting or changing a tensor compiler is part of your work and you can investigate backend setup. Our November 5 build completed in 8 seconds, but tests exited 1 with 200 failures; the November 27 README attempt stopped at a missing clang executable. Choose another route if your application requires varying input sizes in the quickstart's JIT path, or if your selection depends on a general speed advantage over PyTorch.

tinygrad infographic: inspect or change how tensor calculations execute, plus our test result and who it suits
Tested 27 November 2026: the README snippet failed with "FileNotFoundError: [Errno 2] No". Before that: 5 Nov: 4 of 204 source tests passed; uv install took 17 s.

We ran it

Lab card: what happened when we ran tinygrad
Lab card from our sandbox run
Screenshot of tinygrad (github.com/tinygrad/tinygrad)
github.com/tinygrad/tinygrad
Install✓ · 92s136 packages · 7953 MB
Build✓ · 8s
Tests✗ · 72s4 passed · 200 failed · 1 skipped of 204 (pytest)
Known vulns24(pip-audit)
Repo1663 files~559,099 lines of source · 45.1 MB · 9 CI workflows · tests dir

Answers from our run

Does tinygrad build from source?

Dependencies installed in 92 seconds (136 packages), and the build succeeded in 8 seconds. We cloned commit d4201de into a clean Debian container with 3 CPUs and no project-specific setup.

Do tinygrad's tests pass?

No. The project's own test command finished in 72 seconds and reported 4 passed, 200 failed, 1 skipped (pytest).

Does tinygrad have known vulnerabilities in its dependencies?

pip-audit flagged 24 known advisories in the dependency tree at the time of our run.

Who should not use tinygrad?

Applications requiring varying input sizes inside the quickstart's documented JIT path.

What are the alternatives to tinygrad?

PyTorch, MLX LM, llama.cpp. Use tinygrad if inspecting or changing a tensor compiler is part of your work and you can investigate backend setup.

Setup3/5In our 2026-11-27 run it installed as the README says in 17 s, but the README’s “Quick example comparing to PyTorch” example failed as written with “FileNotFoundError: [Errno 2] No such file or directory: 'clang'”.Editor’s note: The installation and build measurements are recorded, but toolchain failures and the newer package-identity discrepancy prevent a completed setup assessment.
Docs3/5The README has an install section (“Installation”) and a usage section (“Quick example comparing to PyTorch”), but its “Quick example comparing to PyTorch” example failed as written in our 2026-11-27 run (“FileNotFoundError: [Errno 2] No such file or directory: 'clang'”).Editor’s note: The README and tutorial explain concrete workflows, but their instructions were not fully reproduced through successful backend execution.
Community5/5Last push on 2026-11-27 and 33,995 stars.Editor’s note: The historical user account and repository activity do not provide sampled support response times or evidence of maintainer capacity.
Maturity3/5Latest release v0.14.0 on 2026-08-24 (pre-1.0), repository created 2020-10-18 and its test suite did not pass in our sandbox (4 of 204 passed).Editor’s note: The container checks do not assess sustained model reliability, production operation or compatibility across the listed accelerator backends.

How we score

Discussed on

  1. hnHacked Nvidia 4090 GPU driver to enable P2P829 points
  2. hnTinygrad: A simple and powerful neural network framework434 points
  3. hnTinygrad405 points
  4. hnFive Years of Tinygrad278 points
  5. hnTinygrad 0.9.0241 points

Who it’s for

Developers studying how tensor operations become device kernels.
Compiler contributors who want the tensor API and compiler in the same repository.
Python users learning training through the documented MNIST example and prepared to investigate backend toolchains.

Who it’s NOT for

Applications requiring varying input sizes inside the quickstart's documented JIT path.
Teams choosing a replacement for PyTorch on the assumption of generally faster execution.
New contributors whose intended starter task is a documentation or whitespace change.

Setup reality

Our November 5, 2026 run at d4201de installed in 92 seconds and built in 8 seconds. It recorded 136 dependencies and 7,953 MB on disk. Tests exited 1 after 72 seconds; the tail reports 200 failed, 4 passed and 1 skipped in 65.61 seconds. Pip-audit reported 24 known vulnerabilities. The displayed AMD hardware test failures repeatedly report an LLVM-loading error and suggest LLVM_PATH.

The November 27 run targeted b832485fae79 in a separate container. Cloning took 2 seconds. The installation record says git installed in 17.4 seconds; subsequent records report 19.1 MB in site-packages and 0 packages besides git. The unedited nine-line README gradient example exited 1 after 2.7 seconds because Python could not find clang. Teardown succeeded. The package-identity and measurement boundaries are collected in the testing-limits section.

tinygrad gives developers a tensor API and access to the compiler beneath it. That access is the reason to consider it: you can study how a calculation becomes device code, then change the machinery yourself. Our November 5 build completed in 8 seconds, followed by a test command that exited 1 with 200 failures. A separate November 27 README attempt stopped at a missing clang executable. The README's compiler description and our README attempt explain the attraction and the setup work behind this review.

What people use tinygrad for

tinygrad supports training and inference, and tiny corp names openpilot as an application running its driving model on a Snapdragon 845 GPU. The official FAQ describes that deployment and full forward and backward passes. For someone learning the stack, the MNIST tutorial provides a smaller task: train a classifier, inspect its kernels and follow the effect of JIT capture on a repeated training step. These are different reasons to use the same library, rather than evidence of a single performance result.

Who used it What they did What came out
openpilot, according to tiny corp Ran the driving model on a Snapdragon 845 GPU The FAQ says tinygrad replaced SNPE, ran faster and supported ONNX loading, training and attention. tiny corp's application account
The official MNIST tutorial authors Trained a handwritten-digit classifier The tutorial reports reaching 98% accuracy and usually reaching 99%. MNIST training result
Art9681 on Hacker News, June 2023 Deployed tinygrad and ran repository examples Art9681 reported that the examples worked without problems. Art9681's account
Pavle Pađin Wrote a walkthrough of the compiler's inference pipeline The article covers single-device inference and excludes training and multidevice inference. Pađin's compiler walkthrough

The learning route starts with tensors, multidimensional arrays on which the high-level operations act. Automatic differentiation calculates gradients for training; the compiler turns operations into device work. Pađin's article follows that latter path, while the MNIST tutorial connects the tensor API to model updates. Art9681's account contributes a historical user experience with repository examples. Keeping the speaker attached to each result makes the table useful without turning those accounts into results from our containers.

What happened when we ran it

Our November 27 README gradient example exited 1 after 2.7 seconds because Python could not find clang. The failed step records the exact error: FileNotFoundError: [Errno 2] No such file or directory: 'clang'. The task targeted commit b832485fae79 and ran the unedited nine-line Python block under "Quick example comparing to PyTorch". Its container configuration recorded 2 CPUs, 4 GB RAM, no published ports and no secrets.

Hands-on question Answer Verdict Why
Did cloning complete? The clone step took 2 seconds. Completed The runner recorded the quickstart-lib clone step.
What did the installation record say? It says git installed in 17.4 seconds after the direct GitHub installation command. Identity unresolved The command targets tinygrad, while the installed-package label says git.
What installed size was recorded? 19.1 MB in the virtual environment's site-packages. Recorded observation The size step names that directory.
What dependency count was recorded? 0 packages besides git. Recorded observation The count uses the same package label as the installation record.
Did the README gradient block finish? No. It exited 1 after 2.7 seconds with a missing clang executable. Failed Python raised FileNotFoundError before a successful result was recorded.
Did teardown finish? Teardown was recorded as ok. Completed The teardown record reports success.

Our November 5 run used commit d4201de and a separate sandbox configured with 3 CPUs, 8 GB RAM and image ghcr.io/astral-sh/uv:python3.12-bookworm. We measured a successful installation and build, followed by a failed test command. The sandbox measurements distinguish the outer test-step duration of 72 seconds from the pytest tail's 65.61 seconds. Keeping both durations preserves what each part of the record actually timed.

November 5 check Recorded result Interpretation
Install Succeeded in 92 seconds The installation step completed.
Environment footprint 136 dependencies; 7,953 MB on disk The recorded environment had this footprint.
Build Succeeded in 8 seconds The build step completed.
Tests Exit 1 after 72 seconds; 200 failed, 4 passed, 1 skipped in the tail The test command failed.
pip-audit 24 known vulnerabilities The audit reported this count.

The displayed failures occur in test/amd/hw/test_sop.py. They name TestQuadmaskWqm::test_s_wqm_b32_zero, two TestBranch cases for vccnz and vccz, Test64BitLiterals::test_64bit_literal_negative_encoding, three TestSCCBehavior cases, and four TestSignedArithmetic cases covering division and signed addition. Each displayed line ends with AttributeError: failed to load library llvm: try setting LLVM_PATH? in the test tail. The checkout scan also recorded 1,663 files, roughly 559,099 source lines, 45.1 MB checked out, nine CI workflow files, a tests directory and no Dockerfile.

Where people get stuck: TinyJit captures Python-dependent behavior

TinyJit skips ordinary Python execution when replaying captured tinygrad operations. The MNIST tutorial says non-tinygrad Python values affecting kernels freeze from the second run. This changes how a repeated function behaves: a Python value used during capture does not automatically become a fresh input on each replay. The same tutorial explicitly says Tensor randomness functions work as expected, so the capture rule does not imply that random sampling stops.

Obstacle What the evidence says Practical response
Missing clang in our README attempt Python raised FileNotFoundError for clang. Inspect the selected backend's executable requirements and installation record.
LLVM-loading failures in our older tests The displayed exceptions suggest LLVM_PATH. Investigate the library-loading exception and path configuration.
Python values freeze during capture Replay skips Python execution. Design the repeated step around the documented capture behavior. Capture explanation
Varying input sizes and non-tinygrad operations The quickstart excludes them from its JIT path. Use the fixed-input, tinygrad-only pattern described there. Quickstart restriction

The quickstart states that its JIT path does not support varying input sizes and non-tinygrad operations. That is a concrete application-selection rule: a program whose repeated step depends on those features needs a different arrangement. Familiar tensor syntax alone does not settle the surrounding control flow. The MNIST example provides the more useful pattern to inspect, because it places sampling, gradient calculation and optimizer work inside a repeated tinygrad training step.

TinyJit timing measures a different execution path

The MNIST tutorial reports roughly 75 ms for a training step on Colab T4 and roughly 1 ms after TinyJit capture. Its timing explanation says the first two calls execute normally while capture happens; from the third call, tinygrad operations replay without ordinary Python execution. Those numbers describe the tutorial's example and timing procedure. The mechanism explains why moving repeated work into TinyJit can change the cost visible to the Python caller.

Tiny corp's FAQ says tinygrad is not faster than PyTorch for most use cases yet. That official performance answer is the appropriate starting point for a framework choice. A useful comparison separates initial compilation from repeated execution and compares equivalent calculations and numerical results on the intended device. The tutorial's capture sequence gives readers a concrete reason to separate those phases instead of treating the first call and later calls as interchangeable observations.

Compilation and scheduling add distinct costs

BEAM compiles multiple variants of each kernel, and the developer speed documentation says this makes initial compilation slower. The speed page separates compilation, execution, scheduling and kernel speed. That separation helps explain a practical tradeoff: searching for an implementation consumes work before its execution time can benefit a repeated calculation. The relevant decision depends on how often the same calculation runs and how much of the job is spent compiling it.

Scheduling determines which operations share a kernel and which intermediate results are stored. The documentation discusses whether an expression should be recomputed or written to memory, then explains that movement operations and casts complicate that decision. It says tinygrad lacks a systematic solution. The same developer discussion identifies work involving on-chip SRAM, L2 cache awareness and NVIDIA Tensor Memory Accelerator support. These are named optimization topics, rather than a single score describing every model and backend.

Tiny corp's April 2025 X post reports speed on a DSP platform while saying the implementation was not generic yet. The team's development post also describes USB GPU work as almost done, with AMD support first. Reading those as dated engineering updates preserves their useful detail: they name the platform work and intended direction without turning a development announcement into a purchasing specification for an external GPU enclosure.

tinygrad vs PyTorch, MLX and llama.cpp

tinygrad is the candidate when inspecting or changing the tensor compiler is part of the job. PyTorch, MLX LM and llama.cpp document different starting workflows, so the comparison below follows those purposes. The tinygrad README describes a tensor library, compiler and JIT stack; the alternatives' own READMEs establish the tasks used for the recommendations. Choosing by task keeps compiler exploration separate from selecting a packaged language-model workflow.

Choice Documented purpose When to start there
tinygrad Tensor library, compiler and JIT graph execution You want to inspect or change how tensor operations become device work. tinygrad README
PyTorch GPU tensor computation and neural networks built on autograd Building the model is the main task. PyTorch README
MLX LM Text generation and LLM fine-tuning on Apple silicon Your Mac task fits its documented LLM workflow. MLX LM README
llama.cpp LLM inference in C and C++ Local LLM inference is the whole job. llama.cpp README

Axiomi's tinygrad and MLX comparison makes a similar distinction between a Mac model workflow and studying the compiler across hardware families. CUDA has a different relationship to tinygrad: it appears in tinygrad's accelerator list. AlphaSignal separately reports a custom driver, runtime, kernel library and training loop for Tinycorp's Llama 3.1 8B submission on AMD MI350X. That reported MLPerf software path belongs to a named hardware configuration.

tinybox is a separate hardware purchase

tinygrad is the software stack; tinybox is a computer sold by tiny corp. The manufacturer's FAQ describes configurable memory, storage and GPUs, making the hardware purchase a separate decision from installing the library. TechRadar reports an $11,000 four-GPU configuration in its tinybox coverage. That figure describes the configuration in the article, rather than a universal price for every tinybox order.

The manufacturer's terms assign import duties, fees and VAT to buyers outside the US. Returns within 30 days carry a 20% restocking fee, and the buyer pays return shipping. The order terms state those costs, while the FAQ requires bank transfer or wire and payment within five days of confirmation to guarantee an order. Those conditions are useful for a buyer assessing total cost and procurement fit, independently of the software's compiler features.

Security and contribution policy answer different questions

Our November 5 pip-audit reported 24 known vulnerabilities in the measured environment. The audit result is a concrete reason to inspect the environment's package inventory and advisories. The harness records two vulnerable packages among 136 scanned and reported packages, with zero skipped packages. Those figures describe the audit scope; the repository's small-core positioning and MIT licence answer different questions from the contents of that installed environment.

The README says documentation and whitespace changes will be closed unless the author is a well-known contributor. Its contribution policy also asks contributors to disclose AI use and welcomes bug fixes with regression tests, bounties, features and clear refactors. For a newcomer, that changes the choice of first task. Reading the code and producing a focused bug fix follows a stated route into the project; a documentation-only starter edit conflicts with its written policy.

What the other reviews get wrong

Onegen's guide lists only "Python 3.x" as its prerequisite. Axiomi's comparison table associates tinygrad 0.14.0 with Python 3.11 or later. The Onegen prerequisite therefore should not serve as the requirement for that later version; the Axiomi version table gives a narrower statement. The correction is to keep a prerequisite attached to its version, rather than carrying a broad Python-family description into an installation decision.

Pađin's compiler article and the repository-wide measurements also describe different units. His walkthrough follows single-device inference through the compiler. Our checkout scan counted roughly 559,099 source lines across 1,663 files, while the installed environment recorded 136 dependencies. Neither number is a measurement of the compiler core alone. Keeping the walkthrough's stated scope separate from the repository and environment scan prevents the word "tiny" from doing the work of a package inventory.

GitHub and the docs provide the entry points

The tinygrad README links its documentation and Discord community. Start with the tinygrad repository for installation and contribution rules, the tinygrad documentation for the tensor API and tutorials, and the linked Discord community for discussion. The docs direct new users to MNIST and tensor puzzles, then provide developer material for readers investigating compilation. That progression matches the review's distinction between learning model syntax and working on execution machinery.

FAQ

Tiny corp says tinygrad is not faster than PyTorch for most use cases yet. That official FAQ answer addresses the performance question directly, while the documentation supplies the more distinctive reason to try it: access to tensor operations, automatic differentiation and compilation in one stack. The questions below separate that software decision from hardware purchasing and from the timing procedure used in the MNIST tutorial.

What is tinygrad, and who should use it?

tinygrad combines a tensor library, automatic differentiation, a compiler and JIT graph execution. Its README describes those components and shows how DEBUG=4 exposes generated code. Use it when understanding or modifying that path is part of your task. The documentation's plain Python model classes and MNIST tutorial give a starting point before moving into scheduling and generated kernels.

Is tinygrad faster than PyTorch, and what benchmarks support that?

The official FAQ says it is not faster for most use cases yet. The MNIST tutorial reports roughly 75 ms before JIT and roughly 1 ms after capture, using different execution paths within that example. Its first two calls capture work and later calls replay operations. Those details explain the tutorial result more usefully than a framework-wide speed ranking.

Should I use tinygrad or llama.cpp for local LLMs?

llama.cpp identifies LLM inference in C and C++ as its purpose. Its README documents installation routes and commands for running a model or launching a server. Start there when inference is the complete task. Choose tinygrad for work that includes understanding or changing the tensor compiler, using its repository examples and documentation as the route into that stack.

Does tinygrad run on Apple silicon?

The tinygrad README lists Metal among its accelerators. That accelerator list is the documented starting point for a Mac evaluation. MLX LM separately documents generation and fine-tuning on Apple silicon, so a Mac language-model project has a packaged workflow to compare against tinygrad's broader tensor and compiler stack. The choice depends on whether the application or compiler work is your objective.

How do I buy and customize a tinybox?

Tiny corp directs buyers to its configurator or shop and offers choices of memory, storage and GPUs. The tinybox FAQ describes made-to-order systems and different shipping windows for standard and tall cases. Configuration, destination and order terms determine the purchase decision; the $11,000 four-GPU example reported by TechRadar is one configuration rather than a substitute for the selected order.

Can I pay for a tinybox without a wire transfer?

Tiny corp accepts bank transfer or wire only. Its payment answer requires payment within five days of order confirmation to guarantee the order. The same FAQ says it does not customize the ordering process or employ salespeople to discuss requirements. Those are concrete procurement conditions for an organization whose purchasing process needs supplier forms or another payment method.

Is tinygrad used in real applications?

Tiny corp says openpilot uses tinygrad to run its driving model on a Snapdragon 845 GPU. The application account says it replaced SNPE and added ONNX loading, training and attention support. That identifies an application, device and claimed outcome. It is a more useful adoption example than treating repository stars as a count of deployed systems.

Does tinygrad support training, or is it inference only?

Tinygrad supports full forward and backward passes with automatic differentiation, according to tiny corp's FAQ. The MNIST tutorial shows training with Adam, gradient calculation and optimizer updates. It reports reaching 98% accuracy and usually reaching 99%. Those documented training steps answer the inference-only question and provide a contained example for readers learning the tensor API.

When will tinygrad leave alpha?

Tiny corp ties leaving alpha to reproducing a common set of papers on one NVIDIA GPU at twice PyTorch's speed, along with good M1 speed. The FAQ's milestone answer uses "Q2 next year" for its ETA. The documentation describes tinygrad as pre-1.0. The concrete part of that answer is the stated performance milestone, which is more useful than treating its relative wording as a calendar date.

How does tinygrad choose between recomputing an operation and storing its result?

The developer speed page says tinygrad lacks a systematic way to make that decision. Its scheduler discussion compares reads and writes for recomputing an intermediate expression versus storing it, then explains that movement operations and casts make the choice harder. The issue is how operations are grouped and memory is used, rather than whether the repeated arithmetic expression has the same mathematical value.

Which low-level optimizations does tinygrad still need?

The developer speed documentation identifies on-chip SRAM use, L2 cache awareness and NVIDIA Tensor Memory Accelerator support as areas of work. The kernel-speed discussion separates these concerns from scheduling and initial compilation. That distinction helps a prospective contributor choose a concrete subsystem to investigate instead of treating all execution costs as a single optimization problem.

What we have not tested yet

Our runs cover two container attempts at d4201de and b832485fae79, rather than a synchronized model benchmark. The MNIST tutorial explicitly says its GPU timing does not synchronize the device. We have not tested completed-work performance against PyTorch, a direct llama.cpp comparison, Apple silicon, external GPU enclosures, training accuracy or BEAM's break-even point. The Python-value capture behavior comes from the tutorial, and neither container record includes a successful repair of its toolchain failure.

The November 27 installation command targets tinygrad, but the runner labels the installed package git. Its 19.1 MB size and zero-other-package count therefore cannot serve as tinygrad installation comparisons. The November 5 summary reports a total of 204 alongside 200 failed, 4 passed and 1 skipped, so we give no passing percentage. Actual Python and OS versions need runtime logs, and the audit details needed to name affected packages and severity are absent. The displayed LLVM errors do not diagnose every failure or prove LLVM_PATH would repair them.

The readable evidence contains no video transcripts establishing what the four YouTube creators demonstrated; the Bilibili item is a search listing. GitHub metadata records a November 27 push, and the latest-release record identifies v0.14.0, published August 24, 2026. Those dates do not measure support response times or sustained reliability. No sampled support-thread history supports a numerical community assessment, and no model operation record supports a numerical maturity assessment.

AlphaSignal's AMD MI350X MLPerf report has not been checked against the underlying submission here. Its planned 405B run is a future milestone, not a completed result. We also have no tinybox owner test of sustained throughput, acoustics or returns. The FAQ's relative alpha ETA lacks a calendar anchor, and the April 2025 USB GPU update does not certify a particular enclosure and GPU combination. Numerical setup and documentation ratings also remain unassessed because the toolchain and package-identity questions prevent a completed reproduction.

Alternatives

ProjectWhat it isPick it when
PyTorch gh↗A Python package for GPU tensor computation and neural networks built on automatic differentiation.Choose it when building the model is the main task and modifying tinygrad's compiler is not a requirement.
MLX LMA Python package for text generation and LLM fine-tuning on Apple silicon using MLX.Choose it when your Mac language-model task fits its documented generation and fine-tuning workflow.
llama.cpp gh↗A project for LLM inference in C and C++.Start there when local LLM inference is the complete task and tensor-compiler development is outside your objective.

Sources

  1. tinygrad README
  2. MNIST tutorial
  3. tinygrad FAQ
  4. Developer speed documentation
  5. PyTorch README
  6. MLX LM README
  7. llama.cpp README

More ai tools reviews