mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 20:06:05 +00:00
3.3 KiB
3.3 KiB
(pallas-changelog)=
Pallas Changelog
This is the list of changes specific to {class}jax.experimental.pallas
.
For the overall JAX change log see here.
Released with jax 0.4.32
-
Changes
- The kernel function is not allowed to close over constants. Instead, all the needed arrays
must be passed as inputs, with proper block specs ({jax-issue}
#22746
).
- The kernel function is not allowed to close over constants. Instead, all the needed arrays
must be passed as inputs, with proper block specs ({jax-issue}
-
Deprecations
-
New functionality:
- Improved error messages for mistakes in the signature of the index map functions, to include the name and source location of the index map.
Released with jax 0.4.31 (July 29, 2024)
-
Changes
- {class}
jax.experimental.pallas.BlockSpec
now expectsblock_shape
to be passed beforeindex_map
. The old argument order is deprecated and will be removed in a future release. - {class}
jax.experimental.pallas.GridSpec
does not have anymore thein_specs_tree
, and theout_specs_tree
fields, and thein_specs
andout_specs
tree now store the values as pytrees of BlockSpec. Previously,in_specs
andout_specs
were flattened ({jax-issue}#22552
). - The method
compute_index
of {class}jax.experimental.pallas.GridSpec
has been removed because it is private. Similarly, theget_grid_mapping
andunzip_dynamic_bounds
have been removed fromBlockSpec
({jax-issue}#22593
). - Fixed the interpreter mode to work with BlockSpec that involve padding
({jax-issue}
#22275
). Padding in interpreter mode will be with NaN, to help debug out-of-bounds errors, but this behavior is not present when running in custom kernel mode, and should not be depended on. - Previously it was possible to import many APIs that are meant to be
private, as
jax.experimental.pallas.pallas
. This is not possible anymore.
- {class}
-
Deprecations
-
New Functionality
- Added documentation for BlockSpec: {ref}
pallas_grids_and_blockspecs
. - Improved error messages for the {func}
jax.experimental.pallas.pallas_call
API. - Added lowering rules for TPU for
lax.shift_right_arithmetic
({jax-issue}#22279
) andlax.erf_inv
({jax-issue}#22310
). - Added initial support for shape polymorphism for the Pallas TPU custom kernels
({jax-issue}#22084
). - Added TPU support for checkify. ({jax-issue}
#22480
) - Added clearer error messages when the block sizes do not match the TPU requirements. Previously, the errors were coming from the Mosaic backend and did not have useful Python stack traces.
- Added support for TPU lowering with 1D blocks, and relaxed the requirements for the block sizes with at least 2 dimensions: the last 2 dimensions must be divisible by 8 and 128 respectively, unless they span the entire corresponding array dimension. Previously, block dimensions that spanned the entire array were allowed only if the block dimensions in the last two dimensions were smaller than 8 and 128 respectively.
- Added documentation for BlockSpec: {ref}
Released with JAX 0.4.30 (June 18, 2024)
- New Functionality
- Added checkify support for {func}
jax.experimental.pallas.pallas_call
in interpret mode ({jax-issue}#21862
). - Improved support for PRNG keys for TPU kernels ({jax-issue}
#21773
).
- Added checkify support for {func}