Release date:
November 18, 2026
Magnitude:
75,516
Diff Delta
Contributors:
28 total committers
565 Commits
in this Release
Ordered by the degree to which they evolved the repo in this version.
Authored October 28, 2026
Authored October 27, 2026
Authored November 2, 2026
Authored November 4, 2026
Authored October 22, 2026
Authored November 12, 2026
Authored October 26, 2026
Authored November 3, 2026
Authored October 30, 2026
Authored November 4, 2026
Authored November 5, 2026
Authored October 27, 2026
Authored October 16, 2026
Authored November 11, 2026
Authored October 19, 2026
Authored November 3, 2026
Authored October 23, 2026
Authored November 15, 2026
Authored October 23, 2026
Authored October 30, 2026
Authored November 6, 2026
Authored November 10, 2026
Authored October 22, 2026
Authored October 20, 2026
Authored October 24, 2026
Authored October 21, 2026
Authored October 29, 2026
Authored November 13, 2026
Authored October 15, 2026
Authored November 4, 2026
Authored October 19, 2026
Authored November 9, 2026
Authored October 30, 2026
Authored November 5, 2026
Authored October 31, 2026
Authored October 19, 2026
Authored November 3, 2026
Authored October 20, 2026
Authored November 3, 2026
Authored November 12, 2026
Browse Other Releases
Latest Pending
Unreleased π
jaxlib-v0.1.39
Released February 14, 2020
0 Ξ
jaxlib-v0.1.38
Released January 29, 2020
0 Ξ
jaxlib-v0.1.37
Released December 6, 2019
0 Ξ
jaxlib-v0.1.36
Released November 22, 2019
0 Ξ
jaxlib-v0.1.33
Released October 16, 2026
169,074 Ξ
jax-v0.12.1
Released November 18, 2026
75,516 Ξ
jax-v0.12.0.1
Released October 20, 2026
0 Ξ
jax-v0.12.0
Released October 16, 2026
33,850 Ξ
jax-v0.11.2
Released September 17, 2026
19,962 Ξ
jax-v0.11.1
Released August 17, 2026
26,332 Ξ
Top Contributors in jax-v0.12.1
Release Notes Published
New features
- Pallas APIs are now available under
jax.pallas (jax.pallas,
jax.pallas.tpu, jax.pallas.tpu_sc, jax.pallas.mosaic_gpu, and
jax.pallas.fuser, via explicit import jax.pallas). Existing imports from
jax.experimental.pallas remain valid, while triton and ops stay under
jax.experimental.pallas. See the Pallas changelog for Pallas-specific
changes.
- Added a keyword-only
with_logs option to jax.grad and
jax.value_and_grad, returning backward-pass logs alongside
gradients without calling jax.vjp directly. With with_logs=True,
grad returns (grad, logs) (or (grad, aux, logs) when has_aux=True),
and value_and_grad returns (val, (grad, logs)) (or
((val, aux), (grad, logs))).
- Added
jax.avals (along with Mesh.axes and AbstractMesh.axes) for
concise shorthand construction of abstract array types (ShapedArray) with
optional sharding annotations, such as f32[3@X] and f32[()].
- On Python 3.14 and later,
jax.debug.print now accepts PEP 750
template strings (for example, jax.debug.print(t"hello {x}"))
(#41565).
- Added
F8E4M3FN_F8E4M3FN_F32_X3 and F8E4M3FN_F8E4M3FN_F32_X4 to
jax.lax.DotAlgorithmPreset (and jax_default_matmul_precision)
for emulating bfloat16 precision matrix multiplications on bfloat16 or
float32 inputs using 3 or 4 float8_e4m3fn products accumulated in
float32.
- Added CPU support for
jax.lax.DotAlgorithmPreset.F16_F16_F32, fixing
jax.nn.dot_product_attention with implementation="xla" and
float16 inputs under jit and grad on CPU.
- Added
jax.lax.fma and jax.lax.fmuladd for fused
multiply-add (a * b + c). fma performs a single-rounding fused
multiply-add where supported; fmuladd uses fused multiply-add when
available and falls back safely otherwise (#23919).
jax.lax.polynomial now uses fmuladd for floating-point evaluation.
- Added
jax.lax.sinpi, jax.lax.cospi, and
jax.lax.tanpi, which compute sin(pi * x), cos(pi * x), and
tan(pi * x) more accurately than multiplying by pi first. They return
exact values at integers and half-integers and stay accurate for large
inputs. Window functions (jax.numpy.blackman,
jax.numpy.hamming, jax.numpy.hanning),
jax.scipy.signal.stft, jax.scipy.special.fresnel, and
Lanczos jax.image.resize now use them for better accuracy.
- Added
jax.lax.asinpi, jax.lax.acospi,
jax.lax.atanpi, and jax.lax.atan2pi, which compute the
inverse trigonometric functions divided by pi (asin(x) / pi,
acos(x) / pi, atan(x) / pi, and atan2(x, y) / pi).
- Added
jax.lax.exp2m1 and jax.lax.log2p1, which compute
2**x - 1 and log2(1 + x) without losing precision near x = 0.
- Added
jax.scipy.special.gammaincinv and
jax.scipy.special.gammainccinv, the inverses of the regularized
lower and upper incomplete gamma functions, with gradients with respect to
both arguments (#5350).
- Added
jax.scipy.special.jn, jax.scipy.special.yn,
jax.scipy.special.iv, and jax.scipy.special.kn, providing
accurate evaluation of integer-order Bessel functions and modified Bessel
functions of the first and second kind (for static integer orders, with
support for real and complex inputs and automatic differentiation).
- Added
jax.scipy.special.ndtri_exp, the inverse of
jax.scipy.special.log_ndtr (ndtri(exp(y)) without underflow or
cancellation in log-probability space), supporting accurate forward-,
reverse-, and higher-order differentiation.
jax.numpy.histogram_bin_edges and jax.numpy.histogram now
accept bins="sqrt" and bins="sturges" to choose bin counts
automatically, matching NumPy (#42199).
- Added the keyword-only
device argument to jax.numpy.logspace and
jax.numpy.geomspace (#41659).
- Added the keyword-only
correction argument (NumPy 2.0 alias for ddof)
to jax.numpy.nanvar and jax.numpy.nanstd
(#41696).
- Added an optional
mode keyword argument to jax.random.normal
(controlled by the new jax_random_normal_mode config option, default
"low"). "low" keeps existing behavior (truncating around Β±5.3 standard
deviations in float32); "high" uses more random bits per sample (~Β±6.3
in float32, Β±9.4 in float64), and "highest" uses two random streams
to reach roughly Β±9.1 in float32 without enabling x64.
- Added an optional keyword-only
mode argument to
jax.random.truncated_normal (default "low"). Setting mode="high"
improves tail accuracy and eliminates boundary clamping spikes at extreme
truncation bounds and in 16-bit floating-point types.
- Added a keyword-only
num_streams argument to jax.random.bits to
generate a tuple of 1, 2, or 4 independent unsigned integer arrays in
parallel from the underlying generator's native bit streams.
- Added optional
out_sharding support to jax.lax.scatter (and
scatter_add, scatter_sub, scatter_mul, scatter_min, scatter_max,
scatter_apply), jax.lax.gather, jax.numpy.take
(Array.take), jax.numpy.take_along_axis, jax.numpy.sum,
jax.numpy.max, jax.numpy.quantile,
jax.numpy.nanquantile, and jax.numpy.nanpercentile (and
native pass-through in jax.numpy.percentile).
jax.lax.top_k, jax.lax.approx_max_k, and
jax.lax.approx_min_k now support sharded reduction axes under
explicit sharding.
jax.dlpack.from_dlpack (and jax.numpy.from_dlpack) now
accept jax.experimental.layout.Format in their device argument to
specify device-local layouts (such as a linear layout tiling=((1,),) for
TPU pinned host memory buffers, kDLTPUHost; Layout.AUTO is not
supported). When copy=None, importing kDLTPUHost buffers now falls back
to copying if zero-copy sharing is not possible.
jax.experimental.serialize_executable.serialize now supports saving
and loading compiled functions that capture large constant arrays (see
Breaking changes regarding format version).
- [ROCm] Added
pip extras (jax[rocm], jax[rocm7], jax[rocm10], and
per-GPU-target jax[rocm7-device-<gfxNNN>] /
jax[rocm10-device-<gfxNNN>]) to install AMD's TheRock ROCm wheels directly
from AMD's package index without a pre-installed system ROCm
(jax[rocm7-local] remains for pre-installed ROCm) (#41331).
Breaking changes
- The
jax_use_simplified_jaxpr_constants configuration flag is now True
by default. Non-scalar constant arrays captured from outside a jitted
function are now passed as separate inputs to compiled executables rather
than embedded inline, reducing executable size and avoiding host copies
during lowering. See the constants note in the JAX documentation for details, including how to
recognize a breakage and migrate your code. You can temporarily set
JAX_USE_SIMPLIFIED_JAXPR_CONSTANTS=False to restore the previous behavior;
the flag will be removed in a future release.
- Removed support for the legacy GSPMD partitioner
(
jax_use_shardy_partitioner=False). JAX now always uses the Shardy
partitioner, which has been the default for about a year. Custom
partitioning rules in jax.experimental.custom_partitioning that only
implement legacy GSPMD callbacks (instead of sharding_rule) now raise
NotImplementedError.
- Updated the binary format written by
jax.experimental.serialize_executable.serialize to version 3 to
support captured constant arrays. Loading executables saved with JAX
0.12.0 or earlier via
jax.experimental.serialize_executable.deserialize_and_load now
raises ValueError.
jax.random samplers now propagate out_sharding directly per shard
instead of falling back to automatic sharding or inserting hidden
all-gathers. Requesting an out_sharding that shards non-key dimensions
now requires a partitionable generator (threefry2x32, rbg, or
unsafe_rbg, with jax_threefry_partitionable=True), raising
NotImplementedError otherwise. Conflicting parameter shardings or
sharding non-batch axes in composite samplers (permutation,
categorical, multivariate_normal, orthogonal, poisson) now raise
ShardingTypeError.
jax.random.poisson with method="exact" (the default) now keeps
the first accepted sample per element so draws do not depend on how the
array is sharded across devices. This can change the exact integer values
drawn for multi-element arrays when lam >= 10.
jax.numpy.histogram now requires out_sharding to be fully
replicated (raising ShardingTypeError otherwise) and, under explicit
sharding, requires weights to match the sharding of a.
jax.scipy.signal.welch and jax.scipy.signal.csd (as well as
jax.scipy.signal.stft when explicitly passed nperseg=None) now
default nperseg to 256 when window is a string or tuple, matching
SciPy and the documentation. Previously, inputs longer than 256 used the
full signal length, so output shapes and values may change
(#40012).
Deprecations
jax.sharding.SingleDeviceSharding is deprecated. Use
jax.sharding.make_single_device_sharding to construct a single-device
sharding, and jax.sharding.is_single_device_sharding to check whether a
sharding targets a single device (replacing
isinstance(..., SingleDeviceSharding)).
- The
jax_use_shardy_partitioner configuration flag is deprecated and is now
a no-op (setting it to False is silently ignored). JAX always uses the
Shardy partitioner, and the flag will be removed in a future release.
jax.scipy.special.bessel_jn is deprecated; use
jax.scipy.special.jn instead, which is more accurate and evaluates
only the single n-th Bessel function directly (note that bessel_jn
returned all orders 0..v, whereas jn(n, z) returns only order n).
Changes
- On GPU, when neither
XLA_CLIENT_MEM_FRACTION nor its deprecated alias
XLA_PYTHON_CLIENT_MEM_FRACTION is set, JAX now preallocates 75% of GPU
memory at startup and allows the default GPU memory pool to grow up to
available device memory as needed for ordinary (non-collective) buffers
(XLA's 0.75+ policy). Set XLA_CLIENT_MEM_FRACTION=0.75 to keep the
previous fixed limit. Explicit XLA memory-policy flags take precedence, and
allocator modes that do not support growth retain their existing behavior
(#41831).
- Cached per-primitive compiled wrappers when running
jax.shard_map
eagerly (outside jax.jit or under jax.disable_jit()), avoiding repeated
recompilation (#42470).
jax.sharding.NamedSharding.shard_shape now supports meshes with
manual axes.
- Enabled the custom derivative rule for
jax.nn.softmax (and
jax.scipy.special.softmax) by default
(jax_softmax_custom_jvp=True), improving memory use and numerical
stability during differentiation. Set
jax.config.update("jax_softmax_custom_jvp", False) to temporarily restore
the previous behavior.
- On CPU,
jax.lax.log and jax.lax.log1p now use vectorized
kernels on x86-64 (AVX2/AVX-512) and ARM64 (NEON), speeding up float64 by
1.7Γβ4.4Γ and float32 by 19%β37%. This improves float32 accuracy for
log1p, log10, logit, acosh, asinh, and atanh, and relaxes
float64 CPU log max error from 0.5 to 1.5 units in the last place
(ULPs), matching GPU; CPU tests expecting bit-exact float64 log may see
~1 ULP shifts.
- On GPU and TPU,
accumulate for jax.numpy.bitwise_and,
jax.numpy.bitwise_or, jax.numpy.bitwise_xor,
jax.numpy.logical_and, jax.numpy.logical_or,
jax.numpy.logical_xor, jax.numpy.maximum, and
jax.numpy.minimum now uses a parallel prefix scan for integer and
boolean outputs, which is much faster for long axes (#28097).
jax.scipy.fft.dct and jax.scipy.fft.idct
(jax.scipy.fft.idctn) now use real FFTs (rfft / irfft) instead
of full complex FFTs, speeding up batched idct by up to 2.7Γ on GPU and
9.4Γ on CPU (#42467, #42583).
- Simplified gradients of
jax.numpy.logaddexp and
jax.numpy.logaddexp2 using jax.lax.logistic, making
gradient evaluation ~2β3Γ faster on CPU. Note that the gradient at
(inf, inf) now returns nan instead of 1.0 (#41914).
- Replaced large elementwise computations for
jax.lax.lgamma
(jax.scipy.special.gammaln) and jax.lax.digamma
(jax.scipy.special.digamma) with dedicated vectorized CPU kernels
(using highway, added as a MODULE.bazel dependency) and GPU kernels
(CUDA/ROCm), improving compile time and speed while keeping error within
0.5 ULP (bfloat16) and 1.0 ULP (float16, float32, float64) across
CPU, GPU, and TPU. Also preserves very small (subnormal) inputs on GPU
instead of returning Β±inf.
- Mixed real and complex
jax.numpy.add, jax.numpy.subtract,
jax.numpy.multiply, and jax.numpy.true_divide
(complex / real) no longer convert the real input to complex before
operating. This avoids unnecessary operations on zeros and fixes edge cases
with infinities and signed zeros (for example, 0.5 * (inf + 1j) now
returns inf + 0.5j instead of inf + nan*j).
- Enabled a more accurate default implementation of
jax.lax.erfc (and
jax.scipy.special.erfc) (jax_accurate_default_erfc=True). It uses
fewer operations, preserves very small (subnormal) outputs on CPU and GPU,
returns 1.0 at Β±0.0, and reduces worst-case rounding error (float32:
from ~66 down to β€7.0 ULPs on CPU, β€7.5 on GPU, β€9.5 on TPU v6e/7x, and
β€69.0 on TPU v2βv5p; float64: from β₯350 down to β€10.0 on CPU and GPU).
With accuracy=jax.lax.AccuracyMode.HIGHEST, worst-case error drops to
β€1.5β2.0 ULPs with fewer operations, and bfloat16 drops from 63 to 25 ops
with identical results. Set jax_accurate_default_erfc=False to temporarily
restore the previous behavior.
- Enabled the more accurate implementation of
jax.lax.erf_inv by
default (jax_accurate_erf_inv=True), fixing large precision loss near
|x| = 1 (float32: ~65 down to β€2.0 ULPs on CPU, β€2.5 on GPU/TPU v6e/7x,
and β€5.5 on TPU v5p; float64: ~500,000 down to β€2.5 ULPs on CPU and GPU).
Also improved first- and higher-order derivative accuracy near |x| = 1.
Callers such as jax.scipy.special.erfinv,
jax.scipy.special.ndtri, and default normal random samplers may see
small last-bit numerical changes; set jax_accurate_erf_inv=False to
temporarily restore the previous behavior.
jax.lax.exp2 / jax.numpy.exp2 and jax.lax.log2 /
jax.numpy.log2 now lower directly to native operations and support
accuracy=jax.lax.AccuracyMode.HIGHEST, greatly reducing rounding error
across dtypes and backends (for example, exp2 float32 CPU: 68.5 β 0.5
ULP, GPU: 69.0 β 2.5 ULP; float64 CPU: 719.0 β 0.5 ULP, GPU: 719.0 β 1.0
ULP).
- Improved numerical accuracy across several math and special functions:
jax.scipy.special.gamma and jax.scipy.special.factorial:
β€0.5 ULP (bfloat16) and β€1.0 ULP (float16/float32/float64) across
CPU, GPU, and TPU; exact factorial up to 34! (float32) and 170!
(float64); preserves subnormal inputs on GPU.
jax.lax.sinh and jax.lax.cosh: vectorized CPU/TPU
implementations cut float32 error to β€1.0 ULP (down from 25 ULPs on CPU
and up to ~1794 ULPs on TPU) and float64 CPU error from 496 to β€2.0
ULPs, and fix premature sinh overflow near Β±89.4.
jax.lax.asin and jax.lax.acos: improved CPU and TPU
float32 error to β€1.0 ULP and stopped flushing tiny normal inputs to
zero in asin on TPU.
jax.lax.rsqrt: tightened float32 CPU error to β€1.0 ULP on AVX
x86-64 CPUs (β€1.5 ULP on ARM) by always running two refinement steps on
both Intel and AMD CPUs.
jax.lax.bessel_i0e and jax.lax.bessel_i1e: faster
implementation (~32 vs 85 ops in float32) cutting float32 error from
8.0 / 15.5 down to β€2.0β3.0 ULPs and float64 from 7.5β10.5 down to β€2.0
ULPs.
jax.scipy.special.logit: fixed severe precision loss near 0.5
and 1 (β€2.0β3.0 ULPs in float32, β€1.5 ULPs in float64 on CPU/GPU).
jax.scipy.special.betaln and jax.scipy.stats.t.logpdf:
rewritten betaln improves accuracy for extreme ratios and negative or
tiny inputs (raising ValueError for complex inputs), and t.logpdf
avoids catastrophic cancellation for large degrees of freedom and in
float32 on TPU (#38243, #39106,
#41203).
jax.scipy.special.ndtr and jax.scipy.special.log_ndtr:
fixed large negative-tail error, positive-input precision loss, premature
overflow, and derivative NaNs, with accurate higher-order derivatives
(#41676).
jax.lax.logistic (jax.nn.sigmoid,
jax.scipy.special.expit): avoids overflow for large negative
inputs on GPU and in float16 across all backends, preserving very small
(subnormal) outputs instead of flushing prematurely to 0.0.
- JAX now uses Bazel 9.3.1 to build from source.
- Linux and macOS source builds now compile with C++20 (Windows remains on
C++17). Linux wheels are built with LLVM 22, statically linked
libc++,
and a glibc 2.27 (manylinux_2_27) sysroot. Hermetic CUDA 13 builds
upgraded from CUDA 13.0.0 to 13.4.1, and CUDA 12 source builds now
compile device code with Clang.
- Bumped the pinned
libtpu dependency for jax[tpu] from 0.0.50.* to
0.0.53.* (#42544).
- Added support for building
jaxlib against 64-bit integer BLAS/LAPACK
libraries (-DJAX_LAPACK_ILP64), and fixed
jax.scipy.linalg.lu_solve when SciPy uses 64-bit integer LAPACK
with jax_enable_x64=True.
- [oneAPI] Plugin wheels are now built with C++20 and target
manylinux_2_31 (glibc 2.31), allowing installation on older Linux
distributions (#42568).
Bug fixes
- Fixed separate
jax.jit instances of the same function that differ
only in static_argnums, static_argnames, or keep_unused sharing
internal dispatch cache entries, which could run the executable compiled
for one instance with the arguments of another and return wrong results
(#42313).
- Added
jax_high_dynamic_range_gumbel to the jax.jit cache key
(#40609).
- Fixed collective operations inside CPU loops (
jax.lax.while_loop)
and conditionals (jax.lax.cond) overlapping with later collectives,
which could swap messages across processes or crash.
- Fixed a thread-pool deadlock when multiple batched CPU linear algebra
(LAPACK) calls run concurrently.
- Fixed a crash (
SIGSEGV) during complex GPU eigendecomposition
(jax.lax.linalg.eig / jax.numpy.linalg.eig) when using
MAGMA due to insufficient host buffer alignment.
- Fixed a crash (
std::bad_function_call) in jaxlib when transferring
duplicate host shards with forced copying enabled (for example,
jax.device_put(..., may_alias=False)).
- Fixed a potential crash when registering multi-stage foreign function
interface (FFI) targets via
jax.ffi.register_ffi_target (where the
record callback pointer was left uninitialized), and added support for
the "record" handler stage.
- Fixed CPU Python callbacks (
jax.pure_callback,
jax.experimental.io_callback, and
jax.experimental.buffer_callback) flushing very small (subnormal)
floating-point values to zero.
- Fixed XLA compiler and runtime issues shipped in
jaxlib:
- Out-of-memory failures for large GPU allocations (> 1 GiB) on WSL
despite sufficient free memory, by falling back to 1 GiB physical chunks
mapped into one contiguous virtual address range
(https://github.com/openxla/xla/pull/52820).
- Wrong numerical results on CPU when fusing a matrix multiplication with a
broadcasted constant right-hand operand and a reduction
(#41414, #42549).
- Wrong numerical results on ARM64 SME/SME2 CPUs when fusing a matrix
multiplication with a constant left-hand operand and a reduction
(#42651).
- Wrong results on Hopper/Blackwell NVIDIA GPUs (
sm_90+, CUDA 13.4+) for
large-stride float64 column scatter overwrites (#41888).
- Crash compiling a full-slice update (
.at[:].set(...)) immediately
followed by reversing the array ([::-1]) (#41497).
lax.log(lax.pow(a, b)) returning finite values instead of NaN for
negative bases under jax.jit (#41261).
- Properly marks donated CPU buffers as deleted when an active host view
forces a copy, and marks multi-device arrays as deleted when donating a
non-first shard (#41256).
- Fixed
jax.lax.pmean and constant jax.lax.psum dividing or
multiplying every group by the first group's size when axis_index_groups
has uneven group sizes (#41132).
- Fixed batching, autodiff, and sharding bugs in
jax.lax.ragged_all_to_all (#41697).
- Fixed
jax.lax.while_loop seeing stale values or dropping final
writes when cond_fun reads or writes a mutable Ref
(#41073).
- Fixed
jax.lax.polynomial errors inside jax.shard_map with
mixed constant and varying inputs (#41853).
- Prevented silent wrong results (counting constants once per device) when
mixing unreduced or reduced arrays (under explicit sharding or
shard_map)
with replicated constants in pad, concatenate/stack, and select_n.
- Fixed
out_sharding being silently ignored when array indexing lowers to
static or dynamic slicing.
- Fixed
full_like / empty_like in partially manual jax.shard_map,
mesh context mismatches when differentiating jax.jit with explicit_axes,
and false-positive ForbiddenCollectiveError in
jax.sharding.no_collectives on 3-operand einsum.
- Fixed
jax.ref.new_ref(..., pin=True) errors when reading/writing pinned
references (#41846) or pinning buffers to TPU VMEM
(#41843).
- Fixed sharded
philox2x32 / philox4x32 (lax.mulhi) forward-compatibility
export and compatibility with older jaxlib builds.
- Fixed
jax.export dropping weak_type on outputs across serialize and
deserialize (bumping serialization format from 12 to 13,
backward-compatible with older payloads) (#41007), baking
caller stack traces into exported MLIR modules (causing non-deterministic
exports and cache misses), and lowering jax.lax.platform_dependent
branches for incompatible platforms during multi-platform export.
- Fixed gradient
Ref accumulator forwarding in
jax.custom_vjp.defvjp_with_accums and
jax.custom_gradient(with_accums=...) through checkpoint, jit, scan,
and checkify; also fixed remat with tuple prevent_cse and closed-over
constants, improved leaked-tracer error messages, and avoided copying in
jax.numpy.moveaxis when no axes move (#41717).
- Fixed
jax.vmap of jax.numpy.stack emitting an unnecessary
transpose when stacking along the batched axis (#41794).
- Fixed out-of-bounds unsigned integer indices (such as large
uint64 or
uint32 values) wrapping around modulo 2**32 instead of clamping when
cast to signed int32 during indexing (#42657).
- Fixed overflow when wrapping negative indices of narrow signed integer
dtypes (such as
int8(-1)) on long axes across indexing, dynamic slicing,
jax.numpy.take, and jax.numpy.put; also made jax.ds
slices consistent between eager and jit execution (#42354,
#42377).
- Fixed
jax.numpy.interp returning nan at and around sample points
whose fp value is infinite; it now returns the sample value or the signed
infinity, matching NumPy. For complex fp, the real and imaginary parts
are now interpolated separately, as in NumPy (#42318). Also
fixed interp mishandling narrow intervals, duplicate trailing xp
coordinates, NaN query inputs, and NaN derivatives at narrow or
duplicate boundaries (#42650).
- Fixed
jax.numpy.modf returning nan as the fractional part for
infinite inputs; it now returns a signed zero, matching NumPy
(#41102).
- Fixed
jax.numpy.nonzero, jax.numpy.flatnonzero, and
jax.numpy.argwhere ignoring fill_value on empty arrays
(#42233).
- Fixed
jax.numpy.nan_to_num overwriting custom replacement values a
second time when replacing NaN with infinity (#42406).
- Fixed infinite loops in
jax.numpy.gcd and jax.numpy.lcm for
minimum representable signed integers such as int32(-2**31)
(#40840).
- Fixed
jax.numpy.choose wrapping indices when the number of choices
exceeds a narrow index dtype's maximum (#42464).
- Fixed
jax.numpy.kron and jax.numpy.vander failing on
boolean inputs (#42462).
- Fixed weighted
jax.numpy.quantile, jax.numpy.nanquantile,
jax.numpy.percentile, and jax.numpy.nanpercentile (with
method="inverted_cdf") returning zero-weight elements at q=0
(#42190).
jax.scipy.linalg.polar with method="qdwh" now honors
max_iterations and accepts eps, as documented; previously
max_iterations was silently ignored and any non-None eps raised a
ValueError. Both eps and max_iterations are now static arguments of
polar (for all method values), so passing a traced value for either
raises an error (#41917).
- Fixed wrong forward-mode derivatives (
jvp) of pivoted QR decomposition
(jax.lax.linalg.qr, jax.scipy.linalg.qr) for wide matrices
(m < n) (#42634).
- Fixed
jax.scipy.linalg.toeplitz and jax.scipy.linalg.hankel
spreading a single NaN or inf across the entire output matrix
(#38635, #38636).
- Fixed
jax.scipy.sparse.linalg.cg producing NaNs or stopping early
when the right-hand side or initial guess has very small or very large
magnitude (for example, during differentiation with a preconditioner)
(#40254).
- Fixed
jax.scipy.signal.convolve, convolve2d, correlate, and
correlate2d raising ValueError on mixed-size multidimensional arrays
for mode="full" and mode="same", matching SciPy (#42063).
- Fixed wrong derivatives for padded entries in
jax.experimental.sparse.coo_fromdense and
jax.experimental.sparse.csr_fromdense (COO/CSR/CSC.fromdense)
when nse > nnz (#40624).
- Fixed
jax.experimental.sparse.bcoo_reshape (BCOO.reshape)
miscomputing shapes for sparse arrays with dense dimensions
(#24795).
- Fixed overflow and underflow in derivatives of division (
x / y,
jax.lax.div) for very large or very small denominators
(#37909).
- Fixed overflow, cancellation in higher-order derivatives, and
NaN
gradients at single-axis infinities for complex jax.numpy.abs,
jax.numpy.hypot, and jax.numpy.arctan2
(jax.lax.atan2) (#25681).
- Fixed
jax.nn.soft_sign returning NaN at Β±inf (now returns Β±1)
and losing derivative accuracy for large inputs.
- Fixed
jax.nn.softmax with where leaking NaN into gradients when
masked-out positions have NaN or infinite tangents/cotangents.
- Fixed overflow and out-of-domain derivatives in
jax.nn.log1mexp.
- Fixed overflow and precision loss in
jax.nn.squareplus for large
inputs in float16 (#41647).
- Fixed a shape/broadcasting error in
jax.nn.get_scaled_dot_general_config for 'nvfp4'
(#42025).
- Fixed wrong higher-order derivatives of
jax.scipy.special.fresnel
at odd integers and 0.
- Fixed premature overflow in
jax.scipy.special.i0
(jax.numpy.i0) and jax.scipy.special.i1 for large finite
inputs (#39770, #39772).
- Fixed
jax.scipy.special.expi returning NaN instead of inf at
+inf (#38519).
- Fixed
jax.scipy.special.loggamma returning NaN instead of inf at
0.0 and -0.0 (#38240).
- Fixed
jax.scipy.special.zeta and
jax.scipy.special.polygamma for large or infinite q
(#41366).
- Fixed
NaN gradients in jax.scipy.stats.pareto methods outside the
distribution's domain (#41445).
- Fixed
float32 precision loss in jax.scipy.stats.nbinom.logpmf
(#42145).
- Fixed
logpmf and pmf for discrete distributions in jax.scipy.stats
(betabinom, bernoulli, binom, geom, and nbinom) to return -inf
(0 for pmf) for non-integer k - loc, matching SciPy; also fixed loc
bound checks in betabinom (#41745, #41960).
- Fixed
jax.random.poisson returning undefined values or raising
under jax.debug_nans(True) when lam is infinite or non-finite
(#38335).
- Fixed
jax.random.multivariate_normal with method="eigh" returning
NaN on singular or near-singular covariance matrices (#14345).
- Fixed
jax.random.choice dropping other array dimensions when
drawing zero samples (#42429).
- Fixed
jax.debug.breakpoint with backend="web" crashing under
web-pdb 2.x.
- Preserved operation name (
op_name) metadata in compiled HLO when
jax_include_full_tracebacks_in_locations=False (#41587).
- Fixed crashes in
jax_explain_cache_misses=True when debug_info is
passed as a keyword argument (#41455) or argument names are
unknown.