Registry / ai-ml / jax-cuda12-plugin

jax-cuda12-plugin

JSON →
library0.11.1pypypi✓ verified 23d ago

JAX is a Python library by Google for high-performance numerical computing, providing a NumPy-like interface with automatic differentiation and function transformations, capable of running on CPUs, GPUs, and TPUs. The `jax-cuda12-plugin` specifically provides NVIDIA GPU support for JAX, compatible with CUDA 12.x environments. JAX and its core library `jaxlib` (which this plugin extends) are actively maintained with frequent releases, typically on a monthly or bi-monthly schedule for minor versions.

pip install jax-cuda12-plugin
INSTALL
IMPORT
SIG · JAX-CUDA12-PLUGIN
J
jax-cuda12-plugin
ai-mlpythonv0.11.1
Install
39.2s avg
Import
Disk
2583MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.6.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
build_error
glibc
py 3.103.910 runs
installs and imports cleanly · install 39.2s · import 0.000s · 5427.2MB
2583MB installed
● package 2583MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jax_cuda12_plugin
import jax_cuda12_plugin
import jax

This quickstart demonstrates core JAX functionalities: utilizing the NumPy-like API (`jax.numpy`), applying Just-In-Time (JIT) compilation with `jax.jit` for performance, and computing gradients automatically using `jax.grad`. It also highlights the immutability of JAX arrays, a key difference from NumPy.

import jax import jax.numpy as jnp # Verify GPU device availability print("Available devices:", jax.devices()) # Define a simple function def f(x): return jnp.sum(x**2 + 2*x + 1) # Just-in-Time compilation for performance f_jit = jax.jit(f) # Automatic differentiation for gradients grad_f = jax.grad(f) grad_f_jit = jax.jit(grad_f) x = jnp.array([1.0, 2.0, 3.0]) print("Original function output:", f(x)) print("JIT compiled function output:", f_jit(x)) print("Gradient of function:", grad_f(x)) print("JIT compiled gradient:", grad_f_jit(x)) # Example of immutability (common gotcha): # Attempting x[0] = 5.0 would raise a TypeError. # Correct way to 'update' an array (creates a new array): x_new = x.at[0].set(5.0) print("Original array (unchanged):", x) print("Updated array (new object):", x_new)
Debug
Known issues
breakingJAX's parallel map (`jax.pmap`) is in maintenance mode and its default implementation has changed. New code is strongly encouraged to use `jax.shard_map` or `jax.jit` for automatic parallelism. The `auto=` parameter of `jax.experimental.shard_map.shard_map` was removed in v0.8.0.
fix
Migrate from `jax.pmap` to `jax.shard_map` or `jax.jit`. Consult the JAX migration guide for details on `pmap` to `shard_map` transitions.
affects: >=0.8.0
breakingSupport for monolithic CUDA `jaxlibs` (e.g., `jaxlib==0.4.29+cuda12`) has been dropped. All CUDA support is now provided via plugin-based installations.
fix
Ensure you are using the plugin-based installation, typically by installing `jax-cuda12-plugin` (or `jax[cuda12]`) as per the official JAX installation instructions.
affects: >=0.4.30
gotchaJAX arrays are immutable. Attempting in-place modification (e.g., `x[0] = 10`) will result in a `TypeError`.
fix
Use the `.at[]` syntax for element-wise updates, which returns a new array with the changes (e.g., `x = x.at[0].set(10)`).
affects: All versions
gotcha`jax.numpy.arange` with a specified `step` no longer generates the array on the host. This can lead to less precise outputs for narrow-width floats (e.g., bfloat16) compared to previous versions.
fix
To recover the previous host-based precision for narrow-width floats, explicitly cast to `jnp.array(np.arange(...))`.
affects: >=0.9.2
breakingThe minimum supported NumPy version for JAX is now 2.0.
fix
Upgrade NumPy to version 2.0 or newer (and SciPy to 1.13 or newer if used).
affects: >=0.7.2
deprecated`jax.lax.pvary` has been deprecated.
fix
Use `jax.lax.pcast(..., to='varying')` as the replacement.
affects: >=0.8.2
Upgrade
Version history
0.11.1latest on PyPI · released Aug 17, 2026
Audit
Dependencies
jaxrequiredCore JAX library for array operations and transformations.
jaxlibrequiredJAX's compiled backend (XLA) and platform-specific code. This plugin extends jaxlib with CUDA 12.x support.
Agent activity
9 hits · last 30 days
node
8
Resources
jax-cuda12-plugin — pip install jax-cuda12-plugin · libregistry