← Back to Leaderboard
Jjax-ml

jax-ml/jax

Python array SDK for composable autodiff, XLA compilation, and device sharding

AI FrameworkQuickstart ↓
Engineering Health (Methodology)
A+ · 98/100
Maintenance Activity
● Updated today
Latest Release
jax-v0.12.1
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence20/20
License Clarity20/20
GPU
Total Stars
★ 36,716
24h Growth
+5
7d Growth
+44
Forks
3,975

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

jax-ml/jax Star History (2020-01-12 - 2026-12-03) ALL-TIME STAR HISTORY (2020-01 – 2026-12) +31k in 2517d · avg +12/day 38.5k 19.9k 1.3k 2020-01-12: ★ 5,6732020-06-13: ★ 7,9612020-11-14: ★ 9,6062021-04-17: ★ 11,6662021-09-18: ★ 13,4512022-02-19: ★ 15,5842022-07-23: ★ 18,6042022-12-24: ★ 20,3472023-05-27: ★ 22,4242023-10-28: ★ 24,2632024-03-30: ★ 26,7582024-08-31: ★ 28,9352025-02-01: ★ 30,4822025-07-05: ★ 32,1802025-12-06: ★ 33,8202026-05-09: ★ 35,3402026-12-03: ★ 36,716 ★ 36.7k 2020-01 2023-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

JAX is a Python numerical-computing SDK, not a standalone model server. Applications express array computations in jax.numpy and compose transformations around functions. jax.jit traces a compatible function into operations that XLA can compile for the selected backend, allowing optimizations such as fusion across operations. jax.grad and jax.vmap transform the computation itself, so the result can also be compiled rather than dispatched through a Python loop.

The source tree separates the Python package (jax/), compiled support (jaxlib/), and backend plugins (jax_plugins/). pyproject.toml declares a setuptools build backend with wheel; BUILD.bazel, MODULE.bazel, and build_wheel.py are also present. For distributed execution, device meshes and partition specifications express array placement. Teams can let the compiler partition a global computation or use shard_map for per-device code and explicit collectives.

Key Capabilities & Differentiators

Forward- and reverse-mode differentiation compose with each other for higher-order derivatives and with batching and compilation for workloads such as per-example gradients. vmap pushes a mapped dimension into primitive operations rather than repeatedly invoking the Python function. Sharding offers three levels of control: compiler-selected placement, explicit placement with compiler partitioning, and manual per-device programming.

Backend support is platform-specific. CPU is supported on all listed systems; NVIDIA GPU support covers Linux x86_64 and aarch64, with experimental support on Windows WSL2 but none on native Windows. Google TPU support is listed for Linux x86_64, as is AMD GPU support, with AMD on WSL2 marked experimental. Apple GPU on macOS aarch64 and Intel GPU on Linux x86_64 are experimental. For LLM inference, JAX provides the execution and sharding layer, not a packaged model catalog or serving API.

Trade-offs & Limitations

Compared with plain NumPy, JAX adds compiler-backed execution, automatic differentiation, and sharding, but you cannot treat a compiled function as arbitrary Python. Keep side effects outside jit and express branching on traced values with compatible control-flow primitives. Changing input shapes can trigger new compilation, so profile cold starts separately from warmed execution and test the shape mix you expect to serve.

Compared with a dedicated LLM inference server, JAX gives application teams control over the numerical program and device layout but leaves request scheduling, continuous batching, and streaming to a separate layer. Choose a server when those operational features are the main requirement. For custom execution, size memory using the chosen weights, intermediate arrays, and concurrency, and benchmark the intended sharding layout: compiler partitioning does not eliminate the cost of cross-device communication.

Hardware & Deployment Guide

Start on a supported Python CPU environment with pip install -U jax and confirm device detection with jax.devices(). Accelerator installs are backend-specific: examples include pip install -U "jax[cuda13]" for supported NVIDIA configurations and pip install -U "jax[tpu]" for Google TPU. Check OS and architecture support as well as driver and runtime compatibility before pinning the environment. JAX computation runs locally on the selected hardware without a hosted inference API; model artifacts and any serving layer are separate deployment concerns.

In v0.12.1, Pallas becomes available via explicit import jax.pallas, while existing jax.experimental.pallas imports remain valid and triton and ops stay under the experimental namespace. The v0.12.0.1 Windows fix uses clang-cl to build LLVM IR for C++-generated intrinsics, enabling vectorized CPU intrinsics; it does not add native Windows GPU support.

Transformation composition: jax.jit(jax.vmap(jax.grad(loss), in_axes=(None, 0, 0))) compiles per-example gradients while sharing parameters across the batch.
Vectorization: vmap applies batching rules to primitives, allowing batched matrix-vector work to become a matrix-matrix operation.
Sharding visibility: explicit mesh axes and PartitionSpec describe placement; jax.typeof exposes sharding in array types.
Device-level control: shard_map provides a per-device view with explicit collectives when automatic partitioning is not enough.
Backend compatibility: CPU is supported on every listed platform; native Windows x86_64 lacks NVIDIA GPU support, and WSL2 support is experimental.
Kernel API migration: v0.12.1 adds jax.pallas while retaining existing experimental imports; triton and ops remain under jax.experimental.
Best For

Teams building custom numerical workloads or LLM execution paths that need compiled array computations and control over GPU or TPU sharding.

Skip If

You need a turnkey model server with request scheduling and streaming, or simple eager CPU array operations already meet your needs.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

GPU
import jax
import jax.numpy as jnp

def predict(params, inputs):
  for W, b in params:
    outputs = jnp.dot(inputs, W) + b
    inputs = jnp.tanh(outputs)  # inputs to the next layer
  return outputs                # no activation on last layer

def loss(params, inputs, targets):
  preds = predict(params, inputs)
  return jnp.sum((preds - targets)**2)

grad_loss = jax.jit(jax.grad(loss))  # compiled gradient evaluation function
perex_grads = jax.jit(jax.vmap(grad_loss, in_axes=(None, 0, 0)))  # fast per-example grads

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
jax ★36.7k+44PythonApache-2.0Python array SDK for composable autodiff, XLA compilation, and device sharding
keras64.5k+24PythonApache-2.0Multi-backend Python SDK for building, training, and running deep learning model
einops9.6k+5PythonMITA backend-agnostic Python library for explicit tensor shape transformations
transformers169.6k+337PythonApache-2.0A PyTorch model-definition SDK for unified inference and training across modalit

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/jax-ml/jax.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

jax-ml/jax Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about jax

How do I integrate JAX into an existing Python inference service?

Write the numerical step as a function of explicit inputs using jax.numpy. Apply jax.jit to compile it, jax.vmap to map a single-example function over a batch, and jax.grad if you need derivatives. Keep request handling and other side effects outside the compiled computation; use JAX-compatible control flow for branches that depend on traced values.

Do I need a GPU, and how much VRAM should I budget?

A supported CPU is enough to develop and validate the computation. On GPU, measure peak VRAM with representative weights, intermediate arrays, batch sizes, and concurrency. Separate first-call compilation from steady-state execution when measuring latency, and test the input shapes you expect in production.

Can we self-host JAX commercially or ship it with a product?

Yes. Apache-2.0 permits commercial use and self-hosting, subject to its terms. If you redistribute JAX, preserve the required license and notices and mark modified files as applicable. Check model weights and accelerator dependencies separately; JAX’s license does not determine their terms.

When should I choose JAX over NumPy or a dedicated inference server?

Use plain NumPy when eager CPU array computation meets your needs and you do not need composable autodiff or accelerator compilation. Choose JAX when you need to control the numerical program and its device layout. If the main job is exposing a supported LLM to clients, a dedicated inference server avoids having to build request batching and token streaming yourself.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining jax-ml/jax? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature jax-ml/jax on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare