# XLA

Source: https://stateofthefuture.io/ai-software/ai-compilers/xla/
Checked: 25 Nov 2026

An open compiler that turns a whole AI model into fast code per chip.

Potential 25. Readiness 88. Position: Challenger.

## What it is

XLA, short for Accelerated Linear Algebra, takes a model from PyTorch, TensorFlow or JAX and rewrites it for the chip in front of it ([OpenXLA](https://openxla.org/xla)). Its main trick is fusion: several steps merge into one, so data stays on the chip instead of going back and forth to memory ([OpenXLA](https://openxla.org/xla/architecture)). Models reach it in StableHLO, a fixed set of operations that all three frameworks can produce ([Google, Mar 2023](https://opensource.googleblog.com/2023/03/openxla-is-ready-to-accelerate-and-simplify-ml-development.html)).

It targets CPUs, NVIDIA, AMD, Intel and Apple GPUs, Google's TPUs and AWS Trainium ([Wikipedia](https://en.wikipedia.org/wiki/Accelerated_Linear_Algebra)). Google's own PyTorch path to TPUs uses XLA as its main compiler ([Google, Apr 2026](https://developers.googleblog.com/torchtpu-running-pytorch-natively-on-tpus-at-google-scale/)).

The number: up to one million TPUs, the capacity Anthropic agreed in October 2025 to use, worth tens of billions of dollars ([Anthropic](https://www.anthropic.com/news/expanding-our-use-of-google-cloud-tpus-and-services)).

Cost: Free and open source. Buyers pay for the chips and cloud time it runs on.

What counts: The XLA compiler and its StableHLO input. Front ends that feed it, such as JAX and TorchTPU, count here too.

## The read

High readiness, low potential: XLA runs at the largest scale but adds little speed over the best hand-tuned code. Its worth is that a whole model can move to a chip that never ran NVIDIA's CUDA.

The catch: The TPU part of XLA is closed and controlled by Google [unverified].

## How it scores

- **Impact 2/5.** TPU buyers see it in price, speed and which chips they can use.. Without XLA, every model would need hand-written code for each TPU generation. Buyers of TPU time see its effect in price and throughput; the service is still model training and serving. Close to 3, since it lets a second chip family compete with NVIDIA's. Judgement
- **Novelty 2/5.** Faster code by well under 2 times, and rivals also span chips.. 
- **Viability 5/5.** Routine on two clouds' own chips.. Google's TPUs compile through XLA ([Google, Apr 2026](https://developers.googleblog.com/torchtpu-running-pytorch-natively-on-tpus-at-google-scale/)), and AWS Trainium and Inferentia are among its targets ([Wikipedia](https://en.wikipedia.org/wiki/Accelerated_Linear_Algebra)). Paying customers such as Anthropic train and serve on TPUs ([Anthropic](https://www.anthropic.com/news/expanding-our-use-of-google-cloud-tpus-and-services)). Independent
- **Drivers 4/5.** Buyers commit years ahead to TPU capacity that runs through XLA.. Anthropic's deal for up to a million TPUs, with over a gigawatt online in 2026, is a long commitment worth tens of billions ([Anthropic](https://www.anthropic.com/news/expanding-our-use-of-google-cloud-tpus-and-services)). Independent
- **Ease of adoption 4/5.** JAX code needs no change; PyTorch code moves with testing.. XLA is built into TensorFlow, PyTorch and JAX ([OpenXLA](https://openxla.org/xla)). Google's TorchTPU, previewed in April 2026, sends PyTorch's compiled graphs straight to XLA ([Google](https://developers.googleblog.com/torchtpu-running-pytorch-natively-on-tpus-at-google-scale/)). Close to 3 for PyTorch teams. Judgement
- **Supply 5/5.** Open source; anyone can copy and keep it.. 

The brake: Engineering. On NVIDIA GPUs, XLA's code still trails NVIDIA's own libraries [unverified].

## What changed

- 2017: XLA starts inside Google as TensorFlow's compiler [unverified]. Built to reach TPUs, which have no CUDA [unverified]
- 8 Mar 2023: OpenXLA launches with AMD, Intel, Meta, NVIDIA and others as builders. XLA leaves TensorFlow; rivals help build it [Google](https://opensource.googleblog.com/2023/03/openxla-is-ready-to-accelerate-and-simplify-ml-development.html)
- 23 Oct 2025: Anthropic agrees to use up to one million TPUs. The largest commitment to a non-NVIDIA chip [Anthropic](https://www.anthropic.com/news/expanding-our-use-of-google-cloud-tpus-and-services)
- 7 Apr 2026: Google previews TorchTPU, sending PyTorch graphs to XLA. PyTorch users reach TPUs with fewer changes [Google](https://developers.googleblog.com/torchtpu-running-pytorch-natively-on-tpus-at-google-scale/)

## Who captures the value

Google, through TPU rental. XLA is free; the margin lands on the chips and cloud time it makes usable, as the tens-of-billions Anthropic deal shows ([Anthropic](https://www.anthropic.com/news/expanding-our-use-of-google-cloud-tpus-and-services)). AWS gains the same way for Trainium. Evidence: Judgement.

## What would change this

- 2026 to 2027: Anthropic's TPU capacity comes online, over a gigawatt promised for 2026 ([Anthropic](https://www.anthropic.com/news/expanding-our-use-of-google-cloud-tpus-and-services)). A shortfall would test drivers.
- April 2027: Whether TorchTPU becomes the normal way PyTorch users reach TPUs. Wide use would lift ease to 5.

Prediction: A second firm announces a TPU commitment of at least one gigawatt by 31 December 2027. Probability 40%.

## Against the alternatives

The alternatives table is on [the AI compilers page](https://stateofthefuture.io/ai-software/ai-compilers/).

## Who is involved

| Name (country, listing) | Role | Money | Stage |
| --- | --- | --- | --- |
| Google (US, Nasdaq) | makes; provides TPUs as a service | part of Alphabet | Routine |
| Anthropic (US, private) | buys TPU capacity | up to one million TPUs, tens of billions of dollars ([Anthropic](https://www.anthropic.com/news/expanding-our-use-of-google-cloud-tpus-and-services)) | Signed Oct 2025 |
| Amazon Web Services (US, Nasdaq) | provides Trainium and Inferentia as a service | part of Amazon | Routine [unverified] |
| AMD, Apple, Arm, Intel, Meta, NVIDIA (listed) | build parts of XLA | part of each ([OpenXLA](https://openxla.org/xla)) | Routine |
| Alibaba (China, NYSE) | makes for own use | part of Alibaba; reported 72% faster GPT-2 on NVIDIA GPUs ([Google](https://opensource.googleblog.com/2023/03/openxla-is-ready-to-accelerate-and-simplify-ml-development.html)) | Routine |


Author: Lawrence Lundy-Bryan, State of the Future (https://stateofthefuture.io/)
