Upgrading jax 0.3 to 0.4
Breaking0.3.25 → 0.4.38Breaking3Deprecated13New7Changed10Fixed11Other2
Fetching 39 releases from GitHub…17 / 39
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- Breaking Changes.
- Breaking changes.
- Deprecations.
- Deprecations & removals.
Must act Top 5 of 16 that need code or config changes
Python requirement changed in 0.4.31: >=3.7 → >=3.10.
Adds jaxlib <=0.4.38,>=0.4.38, ml-dtypes >=0.4.0, numpy >=1.26.0, opt-einsum, scipy >=1.11.1.
Installs 5 packages in all (was 0).
What you must change
Breaking3
Breaking Changes.
post_process_callnew_base_maincustom_bindconfig.jax_data_dependent_tracing_fallbackjax.experimental.jax2tf.convertnative_serialization=FalseBreaking Changes.
jax.numpy.isscalarjax.experimental.host_callbackBreaking changes.
jax_pmap_no_rank_reductionTruearray[0]array[0:1]jax_array.addressable_shardsjax_array.addressable_data(0))Deprecations to plan for
Deprecated13
Deprecations.
jax.corejax.extend.corejax.extendcheck_eqncheck_typecheck_valid_jaxtypeDeprecations.
jax.lib.xla_extension.ArrayImpljax.lib.xla_client.ArrayImpljax.Arrayjax.lib.xla_extension.XlaRuntimeErrorjax.errors.JaxRuntimeErrorDeprecations.
jax.lib.xla_client.PaddingTypejax.pure_callbackjax.extend.ffi.ffi_callvmapvectorizedvmap_methodDeprecations.
jax.numpy.trim_zerosjax.core.pp_*jax.lib.xla_client.Devicejax.Devicejax.lib.xla_client.XlaRuntimeErrorjax.errors.JaxRuntimeErrorDeprecations.
jax.corecanonicalize_shapedimension_as_valuedefinitely_equalsymbolic_equal_dimjax.experimental.jax2tf.convertDeprecations.
jax.core.pp_*TypeErrorjax.experimental.exportjax.exportxyDeprecations.
jax.sharding.XLACompatibleShardingjax.sharding.Shardingjax.experimental.Exported.in_shardingsjax.experimental.Exported.in_shardings_hloout_shardingsjax.coreDeprecations & removals.
kindjax.numpy.sortjax.numpy.argsortstable=Truestable=Falseget_compute_capabilityDeprecations & Removals.
JAX_TRITON_COMPILE_VIA_XLAjax.numpy.clipaa_mina_maxxDeprecations & Removals.
jax.tree_mapjax.tree.mapjax.tree_util.tree_mapjax.clear_backendsjax.clear_cachesjax.extend.backend.clear_backendsDeprecations & Removals.
jax.numpy.linalg.solveapi-compatibilityjax.config.configdefine_*_stateDEFINE_*jax.configDeprecations & Removals.
api-compatibilityjax.coreTracerArrayConversionErrorTracerIntegerConversionErrorUnexpectedTracerErroras_hashable_functionDeprecations.
device_bufferdevice_buffersarr.device_bufferarr.addressable_data(0)arr.device_buffers