mrkeyoor.comAsk

jax-ml/jaxtested 11 Nov 2026commit 4473bda

jax review

Use JAX when your research needs composable differentiation, batching and compilation and you can adapt the numerical code and backend accordingly.

  • Safety failed
  • Install 30 s
0/200passed, run exited non-zero
  • Build 9 s
  • 41 packages
Dataevaluationupdated 25 Nov 2026
+18stars / 7d

JAX is a Python library for accelerator-oriented array computation and program transformation. Its composable transformations support compilation, batching, automatic differentiation and parallelization.

Verdict

Use JAX when your research needs composable differentiation, batching and compilation and you can adapt the numerical code and backend accordingly. Skip it when unchanged NumPy indexed assignment or native Windows NVIDIA execution is a requirement. Our run at commit 4473bda installed in 30 seconds and built in 9 seconds; pytest exited 1 with 200 collection/setup errors and 0 passing tests.

JAX infographic: Compile, batch and differentiate numerical functions, plus our test result and who it suits
Tested 11 November 2026: the source install took 30 s and the build 9 s.

We ran it

Lab card: what happened when we ran jax
Lab card from our sandbox run
Screenshot of jax (docs.jax.dev)
docs.jax.dev
Install✓ · 30s41 packages · 529 MB
Build✓ · 9s
Tests✗ · 17s0 passed · 0 failed · 200 errors of 200 (pytest)
Known vulns0(pip-audit)
Repo2047 files~742,441 lines of source · 57.6 MB · 35 CI workflows · tests dir

Answers from our run

Does jax build from source?

Dependencies installed in 30 seconds (41 packages), and the build succeeded in 9 seconds. We cloned commit 4473bda into a clean Debian container with 3 CPUs and no project-specific setup.

Do jax's tests pass?

No. The project's own test command finished in 17 seconds and reported 0 passed, 0 failed, 200 collection errors (pytest).

Does jax have known vulnerabilities in its dependencies?

pip-audit found none in the dependency tree at the time of our run.

Who should not use jax?

Developers requiring ordinary NumPy indexed assignment to work unchanged on JAX arrays.

What are the alternatives to jax?

PyTorch, NumPy, TensorFlow. Use JAX when your research needs composable differentiation, batching and compilation and you can adapt the numerical code and backend accordingly.

Setup4/5Our source checkout installed in 30 s and built in 9 s with 41 dependencies, but we did not run a README task.Editor’s note: Installation and build succeeded, but test collection/setup errors prevented a passing baseline; setup for a representative numerical workload was not assessed.
Docs4/5The README has an install section (“Installation”) and usage examples in code; we did not run its quickstart ourselves.Editor’s note: The excerpts explain transformations and migration differences, but their coverage and conflicting platform wording do not support an overall documentation score.
Community5/5Last push on 2026-11-25, 36,684 stars, maintainers answered or closed 9 of the 10 most-discussed issues we sampled and 2,662 open issues and pull requests is a heavy backlog for its size.Editor’s note: Named research use and issue participation do not measure current support responsiveness, user satisfaction or overall adoption.
Maturity3/5Latest release jax-v0.12.1 on 2026-11-18 (pre-1.0), repository created 2018-10-25 and its test suite did not pass in our sandbox (0 of 200 passed).Editor’s note: Command outcomes and historical numerical-method discussions do not measure present workload reliability or production operation.

How we score

Discussed on

  1. hnjax3 points

Who it’s for

Researchers who need differentiation, batching and compilation around numerical functions.
NumPy users prepared to change indexed updates and value-dependent Python control flow when applying JAX transformations.
Scientific-computing developers choosing numerical methods and hardware backends for a specific calculation.

Who it’s NOT for

Developers requiring ordinary NumPy indexed assignment to work unchanged on JAX arrays.
Native Windows users requiring NVIDIA GPU execution through the documented installation route.
Teams choosing a numerical library solely from a successful package installation.

Setup reality

Our November 11, 2026 run at commit 4473bda installed successfully in 30 seconds, recording 41 dependencies and 529 MB on disk. The build succeeded in 9 seconds. Tests exited 1 after 17 seconds, with 0 passed, 0 failed, 0 skipped and 200 collection/setup errors. The pytest footer reports 200 errors in 14.84s. pip-audit reported 0 known vulnerabilities; its JSON records 40 scanned packages, 41 reported packages and 1 skipped package.

The recorded sandbox configuration lists 3 CPUs, 8 GB RAM and image ghcr.io/astral-sh/uv:python3.12-bookworm. The checkout contained 2,047 files, approximately 742,441 source lines and 57.6 MB. It had 35 CI workflow files, a tests directory, no Dockerfile and no Compose file.

A separate November 25 attempt stopped at the lab runner's safety check because no Compose file existed. Teardown returned ok. The installation documentation describes pip-based CPU installation and separate accelerator routes. The latest-release metadata identifies jax-v0.12.1, dated November 18, 2026; the measured checkout remains commit 4473bda.

Our JAX run installed successfully in 30 seconds and built in 9 seconds, then pytest stopped with 200 collection/setup errors at commit 4473bda, according to our November 11 measurements. JAX suits researchers who want to differentiate, batch and compile numerical functions and can adapt their code to those transformations. Developers who require unchanged NumPy indexed assignment or native Windows NVIDIA execution should choose around those requirements instead. The array tutorial demonstrates the update difference, and the README marks native Windows NVIDIA support as unavailable.

JAX is the numerical-computing library at jax-ml/jax. Its composable transformations support compilation, batching, automatic differentiation and parallelization, as described in the official overview. Automatic differentiation computes derivatives from a program's operations. The adoption decision is whether those transformations justify changing an existing calculation's array updates and compiled control flow. The examples below connect that decision to named research uses, scientific-method discussions and our command results, rather than treating an installed package as a completed numerical workload.

What people use jax for

DeepMind reports using JAX for rapid experimentation with novel algorithms and architectures in its research account. Gordić's tutorial repository describes model construction and accelerator training, while AWS describes training in a custom container and exporting a model for TensorFlow serving. These examples address different parts of a numerical program: experimentation, model code, device execution and deployment. Their authors and reported outcomes stay attached to each use case in the table.

Who used it What they did What the example gives you
DeepMind researchers Used JAX for algorithm and architecture experiments A named account of research use in DeepMind's article.
Aleksa Gordić Built an MNIST classifier using pure JAX and PyTorch's data loader A model-construction exercise described in the tutorial repository.
Aleksa Gordić Described training an ML model on 8 TPU cores An accelerator-training exercise in tutorial #2.
AWS authors Described training neural networks in a historical SageMaker workflow A custom-container training and TensorFlow serving example in the AWS walkthrough.
mickymultani/JAX-Machinelearning Connected differentiation with neural-network training on Iris Before-and-after analysis and visualizations in the Iris tutorial.

Gordić's MNIST example separates data loading from numerical model code: PyTorch supplies the loader while JAX supplies the classifier. The repository also describes examining dead ReLU neurons after training. That division gives an existing project a concrete migration option: select the component that needs JAX transformations rather than assume that every component must change together. The Iris repository takes a teaching approach, using one dataset to connect differentiation, training analysis and visualization.

What happened when we ran it

Our November 11 run recorded a 30-second installation, a 9-second build and an unsuccessful 17-second test command in the sandbox measurements. The checkout was commit 4473bda, with 3 CPUs and 8 GB RAM in the recorded configuration. Its image label was ghcr.io/astral-sh/uv:python3.12-bookworm. The checkout contained 2,047 files, approximately 742,441 source lines and 57.6 MB; the installed footprint was 529 MB with 41 dependencies recorded.

Step or observation Our recorded result
Install Succeeded in 30 seconds; 41 dependencies recorded; 529 MB on disk
Build Succeeded in 9 seconds
Test command Failed with exit 1 after 17 seconds
Pytest summary 0 passed, 0 failed, 0 skipped, 200 collection/setup errors
Log footer 200 errors in 14.84s
Dependency advisory scan pip-audit reported 0 known vulnerabilities
Audit coverage fields 40 scanned packages, 41 reported packages, 1 skipped package
Repository signals 35 CI workflow files, a tests directory, no Dockerfile and no Compose file
November 25 safety step Failed because none of the runner's accepted Compose filenames existed
November 25 teardown Returned ok

The failing test tail names tests/pallas/pallas_test.py, pallas_vmap_test.py, tpu_all_gather_test.py, tpu_fusible_matmul_test.py, tpu_fusible_matmul_with_stateful_fusions_test.py, tpu_gmm_test.py, tpu_info_test.py and tpu_ops_test.py. It then says it is stopping after 200 failures and prints 200 errors in 14.84s. The recorded summary classifies these as collection/setup errors: the failed-test count stays at 0, while the error count is 200. The harness duration and pytest footer report different timing scopes.

The November 25 attempt stopped with unsafe repo: none of compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml exists, according to the safety-step result. Its run header describes Docker Compose deployment with every port bound to 127.0.0.1, but the recorded safety step blocked that attempt. The teardown result is ok. Compose was the runner's requirement; the installation guide describes a pip-based CPU route.

Where people get stuck: array updates and compiled branches

JAX's indexed-update expression returns an updated array, while ordinary NumPy indexed assignment changes the existing array, as illustrated in the introductory tutorial. Retaining the returned value is the practical change during a port. The tutorial also describes a Python conditional that fails under jax.jit. These examples identify two places to inspect in an existing notebook: assignments to array elements and Python branches that depend on values inside a compiled function.

Symptom What the example or reporter says Practical response and status
Indexed assignment fails The tutorial contrasts NumPy assignment with JAX's returned updated array Use array.at[index].set(value) and retain the returned array, following the indexed-update example.
A Python if fails inside jit The tutorial's ReLU example displays TracerBoolConversionError The tutorial suggests jax.numpy.where(x > 0, x, 0) for that example in its conditional explanation.
A local CUDA build rejects a flag Issue #23689 reports GCC rejecting --cuda-path=external/cuda_nvcc A maintainer recommends Clang in issue #23689.
A Power9 build needs a wheel A maintainer reports cross-compiling a ppc64le wheel Cross-compilation is the reported outcome in issue #4493.

The tutorial's sort example adds another migration check: JAX returns a sorted copy and leaves the original unchanged. For indexed updates, the documented expression is array.at[index].set(value), with the returned array carrying the modification. Both examples require following values through assignments instead of assuming that a familiar method name carries NumPy's side effects. They are documentation examples; the command-results section records the separate sandbox installation, build and pytest outcomes.

Sparse scientific problems need a numerical-method decision

Choose the sparse solver and establish whether your sparsity pattern is known before deciding whether JAX fits the calculation. In issue #1032, mfschubert describes a module that computes Jacobians more efficiently when their sparsity is known beforehand. A Jacobian contains derivatives of outputs with respect to inputs; a sparse Jacobian has many zero entries. Exploiting a pattern the application already knows is a different task from discovering that pattern automatically.

Differentiation and solver selection also answer different questions. Participants in issue #1032 discuss slow iterative solves and possible gains from direct solvers. In issue #3112, mganahl describes a TensorNetwork-oriented implementation without restarts. The same discussion considers robustness, scalability and SciPy algorithms as a reference. A scientific application needs the relevant numerical method as well as derivatives; the existence of automatic differentiation alone does not specify which solver the application will use.

Eigenvector derivatives introduce a mathematical convention to the decision. In issue #2748, j-towns explains that eigenvectors are unique only up to a complex scalar multiple and discusses normalization choices affecting derivatives. Define the downstream quantity and its normalization before comparing derivative outputs. Two differently normalized vectors can represent the same eigendirection, so an application's desired result needs a more precise definition than simply requesting the derivative of an eigenvector.

GPU setup starts with the platform matrix

The installation guide lists Apple ARM macOS CPU wheels and experimental Windows x86_64 CPU wheels in its CPU installation guidance. The README separately marks native Windows NVIDIA GPU support as no and WSL2 NVIDIA support as experimental. Operating system and device type therefore belong in the initial installation decision. A Windows CPU installation and a Windows NVIDIA installation have different platform entries even though both use the JAX package name.

AMD maintains the ROCm JAX plugin, according to the installation guide. The guide sends ROCm installation, driver compatibility, plugin and runtime issues to AMD's tracker, while directing JAX issues that are not ROCm-specific to the JAX tracker. Intel provides experimental oneAPI PJRT and plugin wheels using XLA's SYCL support. These instructions identify both a backend route and the organization responsible for its device-specific support.

The local-CUDA discussion in issue #23689 concerns a source build with an externally installed CUDA copy. A maintainer recommends Clang after the reported GCC flag error; the reporter says the suggested experimental GCC flags still produced the same error. That sequence belongs to this build report. The installation guide is the starting point for selecting a backend route, while the issue describes a particular compiler failure and the responses to it.

JAX vs PyTorch, NumPy and TensorFlow

PyTorch's README describes tensor computation and deep neural networks built on tape-based autograd in its project overview. JAX's overview emphasizes composable function transformations, and the NumPy-style tutorial shows array behaviors that change during a port. AWS describes another arrangement: JAX training with TensorFlow serving infrastructure. The comparison is therefore about the component and programming model a project needs, with each example tied to its source.

Alternative Reason to choose it instead Reason to choose JAX
NumPy Preserve existing array operations and mutation behavior when they meet the calculation's needs Add function transformations while adapting the differences demonstrated in the NumPy migration examples.
PyTorch Use its tensor library, neural-network components and tape-based autograd Organize numerical model code around JAX transformations; compare the PyTorch README with the JAX overview.
TensorFlow Keep serving components already used by the project Study JAX training combined with TensorFlow serving in the historical AWS workflow.

Gordić's MNIST example makes this component-level choice concrete: it uses PyTorch's data loader with a pure-JAX classifier, according to the tutorial repository. AWS similarly describes serializing a trained model into TensorFlow SavedModel format for SageMaker's TensorFlow Serving infrastructure. Data loading, numerical model code and serving can therefore have separate choices in these examples. Neither example requires treating an entire application as one indivisible framework selection.

Distinguishing JAX from similarly named software

MobilesTalk's Jax review correctly identifies workforce scheduling software for UK gyms in its product description. This review concerns the Python numerical library at jax-ml/jax. The shared name creates search-result ambiguity, rather than an error in MobilesTalk's description. Its scheduling-product prices, ranking and rating belong to that product. Including the repository name or the numerical-computing context in a search helps distinguish programming material from workforce-management results.

Outdated claims, corrected

The tutorial repository's statement that Windows is unsupported needs a CPU-specific correction: the installation guide lists experimental Windows x86_64 CPU wheels. Compare the tutorial's Windows statement with the installation guidance. Native Windows NVIDIA support has a separate README entry marked no. Replacing the tutorial's statement with a general claim that every JAX backend supports Windows would lose the distinction between CPU installation and NVIDIA GPU execution.

The installation guide contains conflicting Mac GPU wording: its table labels Apple GPU support experimental, while a paragraph says Mac GPU execution is unsupported and directs readers to CPU installation. Both appear in the installation documentation. Separately, the introductory tutorial displays TracerBoolConversionError for its compiled conditional but calls it ConcretizationTypeError in the explanation. The conditional example should be described using its displayed exception name.

The AWS recipe pins jax==0.2.6 and jaxlib==0.1.57+cuda111, whereas the installation guide describes CUDA 12 and CUDA 13 wheel variants. Those versions distinguish the historical AWS container instructions from the installation guide's wheel guidance. The article remains a training-and-serving example with explicit dependency pins. Silently replacing those pins would create a different recipe rather than accurately describe the workflow its authors documented.

FAQ

JAX provides composable function transformations; PyTorch describes tensor and neural-network components with tape-based autograd; AWS describes combining JAX training with TensorFlow serving. Those facts answer the three-framework search question by identifying programming and infrastructure choices. The hardware questions below come from installation and issue discussions. Each answer keeps the operating system, backend or reported compiler operation attached to the question instead of treating GPU support as one universal property.

Should I choose JAX, PyTorch or TensorFlow?

Choose JAX when compilation, batching and differentiation around numerical functions are central to the program, as described in the official overview. PyTorch's README lists a tensor library, autograd, neural-network components and DataLoader utilities. The AWS walkthrough describes JAX training with TensorFlow serving. The component being selected determines which comparison is useful: numerical transformations, training utilities, data loading or serving infrastructure.

How do I scale a JAX model across accelerators or machines?

The README describes compiler-based automatic parallelization, explicit sharding with automatic partitioning, and manual per-device programming. Gordić's second tutorial describes training an ML model on 8 TPU cores in the tutorial repository. Sharding divides data across devices; the README's models differ in how explicitly the program describes that division and communication. Select the model around the calculation's data layout and the amount of device-level control the program needs.

Can JAX run on AMD or Intel GPUs?

The installation documentation describes an AMD-maintained ROCm plugin and experimental Intel oneAPI PJRT and plugin wheels in its GPU guidance. Intel's route uses XLA's SYCL support. The platform table distinguishes operating systems and architectures, so GPU vendor alone does not select the installation route. The guide also separates ROCm-specific problems from issues in JAX itself, giving users different reporting destinations for device software and library problems.

How do I start using JAX on AMD GPUs?

Start with the AMD ROCm plugin installation route identified in the JAX installation guide. AMD maintains that plugin and monitors the ROCm issue tracker for installation, driver compatibility, plugin and runtime problems. Problems in JAX itself that are not ROCm-specific go to the JAX tracker. This division gives an AMD user both an installation starting point and a reporting destination tied to the component involved.

Does AMD GPU support include macOS?

The installation table gives AMD GPU support a Mac entry of n/a, alongside Linux support and experimental WSL2 support, in the platform matrix. A machine containing AMD graphics hardware therefore does not by itself select a supported operating-system route. The Apple ARM macOS CPU wheel entry answers a separate question about CPU installation. Keeping the device and operating system together avoids confusing that CPU route with AMD GPU execution.

Can JAX run on Apple Silicon, and are native wheels available?

The installation guide lists macOS Apple ARM CPU wheels in its CPU wheel guidance. The historical Apple Silicon issue #5501 discusses source-build work and distinguishes targeting the ARM CPU from targeting the GPU or Neural Engine. The wheel list answers the native CPU installation question directly. The historical thread explains the earlier build context, rather than serving as the first step for that documented wheel route.

Can JAX accelerate computations on Apple's M1 GPU?

The installation table labels Apple GPU support experimental, while its Mac GPU paragraph gives conflicting guidance, as recorded in the installation documentation. The historical Apple GPU issue #8074 discusses experimental acceleration work. Apple ARM CPU wheels and the experimental GPU route are separate entries in this decision. The guide's CPU wheel listing should therefore not be read as a statement about M1 GPU execution.

Can unsupported operations in the experimental Apple GPU path be lowered differently?

Birch-san reports failed to legalize operation 'mhlo.scatter' that was explicitly marked illegal while trying dalle-playground in issue #8074. The reporter asks whether another lowering option exists. Lowering translates an operation into a form a compiler backend can execute. The scatter operation, model context and exact compiler message are the concrete diagnostic details to retain when comparing that report with a different Apple GPU problem.

What we have not tested yet

Our measurements cover command outcomes at commit 4473bda, rather than the later jax-v0.12.1 release tag dated November 18, 2026. They do not establish trained-model quality, accelerator correctness, production reliability or a working contributor test environment. The test tail omits underlying exceptions, so it cannot identify a missing package, unsupported device or compiler mismatch. The sandbox image label also does not establish actual runtime versions. The November 25 safety failure adds no completed numerical workload despite its run header's deployment description.

GPU execution, multi-host scaling, compilation break-even points and a current reproduction of the AWS deployment remain unmeasured here. No side-by-side performance result supports a speed ranking among JAX, PyTorch, NumPy and TensorFlow. The DeepMind excerpt supports its reported research use without establishing a publication year. Tutorial descriptions are attributed accounts rather than our execution results. The AMD excerpts establish plugin ownership and support routing without establishing a specific compatible version configuration or a documented device-check command.

The scientific and build discussions leave several outcomes unresolved: solver convergence on ill-conditioned systems, representative sparsejac behavior, downstream gradient accuracy, execution of the cross-compiled Power9 wheel and a completed local-CUDA build fix. The Apple GPU excerpt records the scatter failure without a demonstrated remedy. Conflicting Mac GPU statements do not settle support for a particular workload. An issue's open or closed label is separate from evidence that the numerical calculation or proposed build remedy succeeded.

The pip-audit result records 0 known vulnerabilities with 40 scanned packages and 1 skipped package; it is not a security assessment of device plugins, arbitrary calculation execution or a hosted service. Network exposure, authentication and untrusted-input handling were outside the run. Rendered layout, automatic related links, recommendation modules and template behavior were also outside this text review. A representative calculation and its downstream gradients on the intended hardware would address workload behavior beyond the command outcomes recorded here.

Alternatives

ProjectWhat it isPick it when
PyTorch gh↗Tensor computation and neural-network components built around tape-based automatic differentiation.Choose it when its tensor library, neural-network components and DataLoader utilities fit the training program you need.
NumPy gh↗Array computation whose mutation behavior is contrasted with JAX in the introductory tutorial.Choose it when existing array operations meet your needs and preserving NumPy mutation behavior matters more than adding JAX transformations.
TensorFlowThe serving framework used in the historical AWS JAX deployment workflow.Consider its serving route when your existing workflow uses TensorFlow components; the AWS article illustrates combining that route with JAX training.

Sources

  1. JAX: High performance array computing
  2. Installation: JAX documentation
  3. Using JAX to accelerate our research
  4. Gordić's get-started-with-JAX tutorial repository
  5. A brief introduction to JAX
  6. Training and deploying deep learning models using JAX with Amazon SageMaker
  7. Sparse Jacobian and sparse Hessian discussion
  8. PyTorch README
  9. JAX sandbox run, November 11, 2026

More data reviews