Technologies›AI and software›Compilers Topic · 6 technologies

T · Infrastructure in AI and software

Compilers.

Software that turns models into fast chip code.

The job

Running AI models on any chip

Whoever makes this step cheap decides whether chips other than NVIDIA's can run the models people already have.

Approaches
5
Checked on
25 Nov 2026

The approaches

Five ways to do it

ApproachPotentialReadinessStageWhat sets it apart
XLA2588RoutineCompiles whole models; the software under Google's TPUs
Triton2581Routine on GPUsPython kernel language; writes the GPU code behind torch.compile
MLIR1169RoutineA toolkit others build compilers from, not a compiler itself
Apache TVM2550In paid use, shrinkingSearches for fast code automatically; its main seller closed in 2024
IREE2550PrototypeCompiler plus small runtime, phone to datacentre; AMD carries its use

What every approach rests on

The key result

A model written once must run on a chip at close to the speed of the chip maker's own hand-tuned code. It has been shown: Triton's matrix multiply matches NVIDIA's cuBLAS library (OpenAI, Jul 2021), and Google's TPUs run PyTorch and JAX models through XLA (Google, Apr 2026). Matching on one chip is not matching on all: each chip's back end, the part that writes its code, is separate work unverified.

The standard to beat

On NVIDIA GPUs, the usual path is NVIDIA's own CUDA language and libraries, tuned by hand for each chip unverified. Every approach here is judged against that code.

Open licences

All five are open source: XLA under Apache 2.0 (GitHub), Triton under MIT (GitHub), TVM under Apache 2.0 (GitHub), IREE under Apache 2.0 with LLVM exceptions (GitHub), and MLIR as part of LLVM (Wikipedia). Released code cannot be withdrawn. The chips they target are scored on their own pages.

Scores every approach shares

Novelty 2

Would a buyer switch for it, all else equal?

Faster code by well under 2 times, and rivals also span chips.

Buyers judge the speed of the code. Reported gains run from parity with cuBLAS (OpenAI) to 20% and 36% faster on 165 models with torch.compile (PyTorch) and 72% and 88% on two models with XLA (Google). Running on many chips is not unique: every row below does it.

Judgement

Supply 5

Could a buyer get it if one country or one firm said no?

Open source; anyone can copy and keep it.

No input specific to a compiler can be cut off; the licences are above.

Independent

Impact is 2 on four pages, each for its own users; MLIR, a toolkit only compiler engineers see, scores 1. Viability, drivers and ease of adoption differ and sit on each page.

Against the alternatives

Way of doing itWhat it gives youWhat it costs youWhere it is now
XLAWhole-model compiling; the path onto TPUsTrails hand-tuned code on NVIDIA GPUs unverifiedRoutine
Triton kernel languageFast GPU code written in PythonNVIDIA and AMD GPUs only; CPUs under development (GitHub)Routine on GPUs
MLIRShared parts for building a compilerEach chip still needs its own lowering work unverifiedRoutine among compiler builders
Apache TVMAutomatic search for fast code; language models on phones and in browsers via MLC LLM (GitHub)Main seller closed its service in 2024 (GeekWire)In paid use, shrinking
IREEOne compiler and runtime, from phone to datacentreFew users beyond AMD; SHARK Studio unmaintained (GitHub)Prototype
NVIDIA CUDA and its librariesThe fastest code on NVIDIA GPUs unverifiedRuns on NVIDIA chips only unverifiedRoutine
AMD ROCm and HIPCUDA-like code on AMD GPUs unverifiedAMD chips onlyIn paid use unverified
Modular MAX and MojoOne platform across NVIDIA and AMD GPUs, CPUs and Apple GPUs (Modular, Sep 2025)Young; one firm controls itIn paid use, cloud partners named (Modular)

Facts that move

  • Whether TorchTPU becomes PyTorch's usual path onto TPUs; look again Apr 2027.
  • Triton's back ends beyond GPUs; look again Jun 2027.
How the two numbers are worked out

Each of six scores runs from 1 to 5. Potential asks how much it would change if it works and how much better it is than what buyers have now; readiness asks how close it is to wide use.

  • Potential = (0.545 × impact + 0.455 × novelty − 1) × 25
  • Readiness = (average of viability, drivers, ease of adoption and supply − 1) × 25

Both run from 0 to 100. A fact moves one score only. Evidence tags say whether a score rests on an independent source, the maker's own claim, or judgement.

T-02 · The technologies

Other technologies here

  1. 1Interaction Nets
    • Potential 39, readiness 0
    A model of computing where a program is a graph rewritten by simple local rules

T-03 · What rests on it

Companies in my investments book

Companies I backed, with my own money or through a venture fund I work or worked with. Each page has the detail.

Other topics in AI and software

Scientific Computing