jax: Transform and Accelerate Python Numerical Programs

jax: Transform and Accelerate Python Numerical Programs

Summary

JAX is a Python library for transforming numerical programs with automatic differentiation, compilation, and vectorization. Use it for high-performance scientific computing and machine learning, especially when workloads need to scale across accelerators.

At a glance

Language
Python
License
Apache-2.0
Stars
36.4k
Forks
3.8k
Added to OSRepos
March 26, 2026
Last analyzed
October 3, 2026
View on GitHub

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Overview

JAX provides tools for writing numerical computations in Python and transforming them for differentiation, compilation, and vectorization. It addresses the challenge of taking familiar array-based code and making it suitable for high-performance execution on CPUs and accelerators, including GPUs and TPUs.

It is aimed at researchers and developers building scientific computing or machine learning workloads who need fine-grained control over how functions are transformed and scaled. JAX is a research project, and its documentation notes that it has sharp edges.

Key Features

  • Compute gradients with jax.grad, including higher-order derivatives.
  • Compile functions with jax.jit using XLA.
  • Vectorize functions over array dimensions with jax.vmap.
  • Compose differentiation, compilation, and vectorization.
  • Scale computations using automatic, explicit, or manual sharding approaches.
  • Run numerical workloads on supported CPU and accelerator platforms.

Use Cases

  • Machine learning researchers can calculate model gradients and per-example gradients for training or analysis.
  • Scientific computing developers can compile numerical functions to improve execution on supported hardware.
  • Teams working with large accelerator workloads can shard computation across devices using JAX's parallel programming modes.
  • Python developers with array-based programs can vectorize computations without manually adding batch dimensions throughout their code.

Project Facts

  • Language: Python
  • License: Apache-2.0
  • Stars: 36.4k
  • Forks: 3.8k
  • Topics: jax
  • Archived: no

Getting Started

Install the CPU package with:

pip install -U jax

For accelerator installation options and platform requirements, see the installation guide. For API and usage details, see the README and reference documentation.

Alternatives

  • cupy: CuPy offers NumPy- and SciPy-compatible GPU arrays, while JAX adds program transformations such as automatic differentiation, compilation, and vectorization.

Considerations

  • JAX transformations work best with functions that fit its programming model. In particular, jax.jit constrains the Python control flow a function can use.
  • Accelerator support depends on the platform and installation path. The README lists some platform combinations as experimental or unsupported.
  • The project describes itself as a research project and cautions users to expect sharp edges. Consult the gotchas guide before relying on assumptions from ordinary NumPy or Python behavior.

Comparisons

Source repository

Open the original repository on GitHub.

17 counted GitHub visits

View on GitHub

Related repositories

Similar repositories that may be relevant next.

OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️