← LibraryLatent Space

George Hotz — Commoditizing the Petaflop

Latent Space
✓ Source-grounded

To achieve true efficiency in AI, we must move away from 'CISC' (Complex Instruction Set Computing) frameworks like PyTorch toward a 'RISC' (Reduced Instruction Set Computing) model that treats neural networks as static, predictable operations.

Watch the episode

In one sentence

The core thesis of tinygrad is that because neural networks are fundamentally static and predictable, we can achieve superior performance by stripping away the "Turing-complete" overhead of current frameworks to create a "RISC" architecture for machine learning.

Why read this (who it's for)

This is for ML engineers, systems architects, and AI researchers who feel the friction of current deep learning frameworks. It explains why current tools (like PyTorch) are often over-engineered for the specific needs of neural networks and provides a roadmap for building a more efficient, "bare-metal" software stack for the next generation of local and edge AI.

The big idea

George Hotz argues that the current state of ML frameworks is a victim of "Turing completeness." Because frameworks like PyTorch and XLA are designed to handle any possible computation (CISC), they rely on complex, power-hungry features like branch prediction, warp scheduling, and complex cache hierarchies to manage unpredictable execution.

However, neural networks are not "any" computation. They are primarily composed of ADD/MUL operations with static memory access patterns. Hotz argues that by intentionally making a framework less capable—by removing the ability to execute arbitrary, complex instructions—we can optimize at a much lower level. This "RISC" approach allows for extreme efficiency, such as operation fusing and better memory management, because the system knows exactly what the data will do before it even runs.

Key ideas

The RISC vs. CISC of ML

Turing Completeness as a Hindrance

The "Developer Platform" Moat

Operation Fusing and Laziness

The "Personal Compute Cluster"

Frameworks & tools

The RISC-ML Design Principles

To build a high-performance ML framework, follow these principles:

  1. Strip Turing Completeness: Remove the ability to execute arbitrary instructions. Focus only on the ADD/MUL operations required for neural networks.
  2. Static Memory Planning: Leverage the fact that neural network data loads/stores are consistent. Optimize for static scheduling rather than dynamic warp scheduling.
  3. Operation Fusing: Use "lazy" evaluation to combine multiple operations into a single kernel to minimize memory bandwidth usage.
  4. Developer-First CI: Prioritize a great developer experience and a robust test suite (like testops.py) where forwards and backwards matches are checked automatically.

Memorable examples & stories

The "Why is Relu a class?" Critique

Hotz criticizes PyTorch's API, noting that things like ReLU shouldn't be classes with state. He argues that the API isn't "perfectly refined," and for a "TinyGrad style" system, the API must be cleaner and more functional. Lesson: A messy API is a symptom of a framework trying to do too much.

The AMD "Rabbit Hole"

Hotz describes his attempt to get PyTorch running on AMD hardware, where he found himself in "deep rabbit holes" of weird errors. He notes that while there are "only 10 guys" at AMD working on this, the sheer amount of man-hours invested in NVIDIA's CUDA makes the gap hard to close without a fundamental architectural shift. Lesson: You cannot win by out-working a monopoly; you must out-think the architecture.

The "Personal" vs. "Research" Model

Hotz argues that while research labs want the biggest models possible, startups and individuals need to optimize for inference. He notes that the ratio of training to inference in the cloud is currently too low; there should be 10x to 100x more inference happening. Lesson: Efficiency is the only way to make AI accessible at the edge.

Key quotes

"If you can’t write a fast ML framework for GPU, you can’t write one for your own chip." Why it matters: It establishes the framework as the prerequisite for hardware success.

"Once you call in to Turing complete kernels, you can no longer reason about their behavior." Why it matters: This is the technical justification for the RISC approach.

"The real truth is whenever a start, whenever a company is secretive, it's because they're hiding something that's not that cool." Why it matters: A reminder to look for the simple, boring engineering reality behind "revolutionary" AI claims.

How to apply it

This week

Ongoing

Common pitfalls

Connects to

If you remember only three things

Internalize it

Q: Why does Hotz argue against Turing-complete kernels in ML? A: Because Turing-complete kernels are harder to reason about, forcing a reliance on complex branch prediction and warp scheduling that isn't necessary for the static ADD/MUL operations of neural networks.

Q: What is "operation fusing"? A: It is the process of combining multiple operations into a single kernel to reduce the need to write intermediate results to memory, thereby saving memory bandwidth.

Q: What is the "Personal Compute Cluster" (tinybox)? A: A $15,000 local AI computer designed for high-performance inference and training, capable of running 65B FP16 LLaMA out of the box.

Q: What is the "Bitter Lesson"? A: A concept (referenced by Hotz) that the only thing that ultimately matters in AI is the ability to scale with more compute.

Fidelity note

Confidence is high. The summary is grounded strictly in the provided transcript. Note that some specific technical details (like the exact number of engineers at AMD) are presented as Hotz's estimates/observations during the conversation and should be verified against current industry data. The "tinybox" specs are directly from the provided text.

More from Latent Space