XLA
An open compiler that turns a whole AI model into fast code per chip.
- Position
- Challenger
- Checked on
- 25 Nov 2026
TPUs and GPUsRoutine
The compiler under JAX and Google's TPUs.
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). 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). Models reach it in StableHLO, a fixed set of operations that all three frameworks can produce (Google, Mar 2023).
It targets CPUs, NVIDIA, AMD, Intel and Apple GPUs, Google's TPUs and AWS Trainium (Wikipedia). Google's own PyTorch path to TPUs uses XLA as its main compiler (Google, Apr 2026).
The number: up to one million TPUs, the capacity Anthropic agreed in October 2025 to use, worth tens of billions of dollars (Anthropic).
- 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 catchThe TPU part of XLA is closed and controlled by Google unverified.
How it scores
Potential25
Impact 2
If it works fully, who would notice?
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
Would a buyer switch for it, all else equal?
Faster code by well under 2 times, and rivals also span chips.
Same for every approach: see the ai compilers page.
Readiness88
Viability 5
Does it do the job it is sold for?
Routine on two clouds' own chips.
Google's TPUs compile through XLA (Google, Apr 2026), and AWS Trainium and Inferentia are among its targets (Wikipedia). Paying customers such as Anthropic train and serve on TPUs (Anthropic).
Independent
Drivers 4
Who is pulling, and how hard?
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).
Independent
Ease of adoption 4
Given that it works, how much must the adopter change?
JAX code needs no change; PyTorch code moves with testing.
XLA is built into TensorFlow, PyTorch and JAX (OpenXLA). Google's TorchTPU, previewed in April 2026, sends PyTorch's compiled graphs straight to XLA (Google). Close to 3 for PyTorch teams.
Judgement
Supply 5
Could a buyer get it if one country or one firm said no?
Open source; anyone can copy and keep it.
Same for every approach: see the ai compilers page.
The brakeEngineeringOn 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 Context unverified
- 8 Mar 2023 OpenXLA launches with AMD, Intel, Meta, NVIDIA and others as builders XLA leaves TensorFlow; rivals help build it Context Google
- 23 Oct 2025 Anthropic agrees to use up to one million TPUs The largest commitment to a non-NVIDIA chip Drivers up to 4 Anthropic
- 7 Apr 2026 Google previews TorchTPU, sending PyTorch graphs to XLA PyTorch users reach TPUs with fewer changes Ease up to 4 Google
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). AWS gains the same way for Trainium. Evidence: Judgement.
What would change this
- 2026 to 2027Anthropic's TPU capacity comes online, over a gigawatt promised for 2026 (Anthropic). A shortfall would test drivers.
- April 2027Whether TorchTPU becomes the normal way PyTorch users reach TPUs. Wide use would lift ease to 5.
Prediction40%
A second firm announces a TPU commitment of at least one gigawatt by 31 December 2027.
Against the alternatives
The alternatives table is on the AI compilers page.
Who is involved
- Choices a buyer has
- 2Google Cloud TPUs and AWS Trainium both run models through XLA.
- Funded challengers
- None counted; no rival is twice as fast across chips.
| 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) | 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) | Routine |
| Alibaba (China, NYSE) | makes for own use | part of Alibaba; reported 72% faster GPT-2 on NVIDIA GPUs (Google) | Routine |