XLA compiles machine learning models from popular frameworks for tuned execution on GPUs, CPUs, and ML accelerator hardware.
Overview
XLA (Accelerated Linear Algebra) is an open-source compiler aimed at machine learning workloads. It ingests models produced by widely used ML frameworks and applies optimizations so they can run with higher performance across different hardware targets.
The compiler accepts frontends such as PyTorch, TensorFlow, and JAX. Its role is to bridge framework-level model descriptions and efficient kernels on GPUs, CPUs, and dedicated ML accelerators rather than replacing those frameworks outright.
Typical adopters integrate XLA through their framework’s documentation rather than running a separate end-user application. Dedicated material on openxla.org covers how to get started from each supported frontend.
If you only need to compile models in an existing project, you generally follow framework-specific XLA guidance instead of building the compiler tree yourself.
Key features
- Compiles ML models from major frameworks
- Targets GPUs, CPUs, and ML accelerators
- Framework integrations for PyTorch, TensorFlow, and JAX
- Hardware-oriented graph and kernel optimizations
- Open-source compiler stack under OpenXLA
Use cases
- Speeding up training or inference via compilation
- Running the same model across varied accelerator hardware
- Integrating compilation into an existing ML framework workflow