AI product Open source

JAX

JAX is a Python library for accelerator-oriented array computation and program transformation, designed for numerical computing and large-scale machine learning. It transforms Python and NumPy-style functions through automatic differentiation with `jax.grad`, automatic batching and vectorization with `jax.vmap`, and just-in-time compilation with `jax.jit`. It uses XLA to compile computations for GPUs, TPUs, and other accelerators.

View repository Visit site Mentioned in 3 videos ↓

Overview

JAX supports compiler-driven multi-device execution: `Mesh`, `PartitionSpec`, and `NamedSharding` declare array placement across device meshes, allowing distributed training code to include automatically managed parallel work such as gradient synchronization. Its compilation tools also include ahead-of-time compilation, portable artifact export with `jax.export`, and conversion to TensorFlow SavedModels through `jax2tf` for serving integrations. The project describes itself as a research project rather than an official Google product.

What JAX is used for

3 uses taken from transcripts — each links to the moment in the video.

  • A Python library for array-based computation that provides transformations for just-in-time compilation, automatic differentiation, and batching. The video explains how JAX runs computations on NVIDIA GPUs through XLA.

  • Trains models across multiple GPUs by declaring array placement and automatically inserting parallel work, including gradient averaging.

  • Builds and executes the model, including just-in-time compilation, ahead-of-time compilation, and portable artifact export for serving.

Videos mentioning JAX

3 in the library.