v0.8.1
JAX v0.8.1
Added 1
- jax.jit now supports the decorator factory pattern, allowing @jax.jit(static_argnames=['n']) syntax instead of requiring functools.partial
Changed 3
- jax.lax.linalg.eigh now accepts an implementation argument to select between QR (CPU/GPU), Jacobi (GPU/TPU), and QDWH (TPU) implementations
- EighImplementation enum is now publicly exported from jax.lax.linalg
- jax.lax.linalg.svd now implements an algorithm that uses polar decomposition on CUDA GPUs
Fixed 1
- Fixed a bug introduced in JAX 0.7.2 where eigh failed for large matrices on GPU
Deprecated 5
- jax.sharding.PmapSharding is deprecated; use jax.NamedSharding instead
- jax.device_put_replicated is deprecated; use jax.device_put with the appropriate sharding instead
- jax.device_put_sharded is deprecated; use jax.device_put with the appropriate sharding instead
- Default axis_types of jax.make_mesh will change in JAX v0.9.0 to return jax.sharding.AxisType.Explicit; leaving axis_types unspecified will raise a DeprecationWarning
- jax.cloud_tpu_init and its contents are deprecated
-
New features:
jax.jitnow supports the decorator factory pattern; i.e instead of writing
you may write@functools.partial(jax.jit, static_argnames=['n']) def f(x, n): ...@jax.jit(static_argnames=['n']) def f(x, n): ...
-
Changes:
-
jax.lax.linalg.eighnow accepts animplementationargument to select between QR (CPU/GPU), Jacobi (GPU/TPU), and QDWH (TPU) implementations. TheEighImplementationenum is publicly exported fromjax.lax.linalg. -
jax.lax.linalg.svdnow implements analgorithmthat uses the polar decomposition on CUDA GPUs. This is also an alias for the existing algorithm on TPUs.
-
-
Bug fixes:
- Fixed a bug introduced in JAX 0.7.2 where eigh failed for large matrices on GPU (#33062).
-
Deprecations:
jax.sharding.PmapShardingis now deprecated. Please usejax.NamedShardinginstead.jx.device_put_replicatedis now deprecated. Please usejax.device_putwith the appropriate sharding instead.jax.device_put_shardedis now deprecated. Please usejax.device_putwith the appropriate sharding instead.- Default
axis_typesofjax.make_meshwill change in JAX v0.9.0 to returnjax.sharding.AxisType.Explicit. Leaving axis_types unspecified will raise aDeprecationWarning. jax.cloud_tpu_initand its contents were deprecated. There is no reason for a user to import or use the contents of this module; JAX handles this for you automatically if needed.