v0.7.0
JAX v0.7.0
Added 2
- Added jax.P which is an alias for jax.sharding.PartitionSpec
- Added jax.tree.reduce_associative
Changed 7
- JAX is migrating from GSPMD to Shardy by default
- JAX autodiff is switching to using direct linearization by default instead of implementing linearization via JVP and partial eval
- jax.jit now requires fun to be passed by position and additional arguments to be passed by keyword
- The minimum Python version is now 3.11
- Layout, .layout, .input_layouts and .output_layouts have been renamed to Format, .format, .input_formats and .output_formats
- DeviceLocalLayout and .device_local_layout have been renamed to Layout and .layout
- jax.extend.core.primitives.pjit_p primitive has been renamed to jit_p and its name attribute has changed from pjit to jit
Removed 6
- jax.stages.OutInfo has been replaced with jax.ShapeDtypeStruct
- jax.experimental.shard module has been deleted and all APIs have been moved to jax.sharding endpoint
- lax.infeed and lax.outfeed were removed after being deprecated in JAX 0.6
- transfer_to_infeed and transfer_from_outfeed methods were removed from Device objects
- jax.extend.backend.add_clear_backends_callback has been removed
- jax.extend.ffi was removed after being deprecated in v0.5.0; use jax.ffi instead
Deprecated 4
- jax.dlpack.SUPPORTED_DTYPES is deprecated; use jax.dlpack.is_supported_dtype instead
- jax.scipy.special.sph_harm has been deprecated; use jax.scipy.special.sph_harm_y instead
- jax.interpreters.xla.canonicalize_dtype is deprecated; prefer jax.dtypes.canonicalize_dtype for canonicalizing dtypes and jax.core.valid_jaxtype for checking valid jax input
- jax.lib.xla_bridge.get_compile_options is deprecated and replaced by jax.extend.backend.get_compile_options
-
New features:
- Added
jax.Pwhich is an alias forjax.sharding.PartitionSpec. - Added
jax.tree.reduce_associative.
- Added
-
Breaking changes:
- JAX is migrating from GSPMD to Shardy by default. See the migration guide for more information.
- JAX autodiff is switching to using direct linearization by default (instead of implementing linearization via JVP and partial eval). See migration guide for more information.
jax.stages.OutInfohas been replaced withjax.ShapeDtypeStruct.jax.jitnow requiresfunto be passed by position, and additional arguments to be passed by keyword. Doing otherwise will result in an error starting in v0.7.x. This raised a DeprecationWarning in v0.6.x.- The minimum Python version is now 3.11. 3.11 will remain the minimum supported version until July 2026.
- Layout API renames:
Layout,.layout,.input_layoutsand.output_layoutshave been renamed toFormat,.format,.input_formatsand.output_formatsDeviceLocalLayout,.device_local_layouthave been renamed toLayoutand.layout
jax.experimental.shardmodule has been deleted and all the APIs have been moved to thejax.shardingendpoint. So usejax.sharding.reshard,jax.sharding.auto_axesandjax.sharding.explicit_axesinstead of their experimental endpoints.lax.infeedandlax.outfeedwere removed, after being deprecated in JAX 0.6. Thetransfer_to_infeedandtransfer_from_outfeedmethods were also removed theDeviceobjects.- The
jax.extend.core.primitives.pjit_pprimitive has been renamed tojit_p, and itsnameattribute has changed from"pjit"to"jit". This affects the string representations of jaxprs. The same primitive is no longer exported from thejax.experimental.pjitmodule. - The (undocumented) function
jax.extend.backend.add_clear_backends_callbackhas been removed. Users should usejax.extend.backend.register_backend_cacheinstead.
-
Deprecations:
- {obj}
jax.dlpack.SUPPORTED_DTYPESis deprecated; please use the newjax.dlpack.is_supported_dtypefunction. jax.scipy.special.sph_harmhas been deprecated following a similar deprecation in SciPy; usejax.scipy.special.sph_harm_yinstead.- From {mod}
jax.interpreters.xla, the previously deprecated symbolsabstractifyandpytype_aval_mappingshave been removed. jax.interpreters.xla.canonicalize_dtypeis deprecated. For canonicalizing dtypes, preferjax.dtypes.canonicalize_dtype. For checking whether an object is a valid jax input, preferjax.core.valid_jaxtype.- From {mod}
jax.core, the previously deprecated symbolsAxisName,ConcretizationTypeError,axis_frame,call_p,closed_call_p,get_type,trace_state_clean,typematch, andtypecheckhave been removed. - From {mod}
jax.lib.xla_client, the previously deprecated symbolsDeviceAssignment,get_topology_for_devices, andmlir_api_versionhave been removed. jax.extend.ffiwas removed after being deprecated in v0.5.0. Use {mod}jax.ffiinstead.jax.lib.xla_bridge.get_compile_optionsis deprecated, and replaced byjax.extend.backend.get_compile_options.
- {obj}