Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Jan 5, 2026

Use Pathways _transfer_to_sharding for resharding in experimental reshard API.

The experimental reshard function now leverages pw_jax.jaxlib_pathways._transfer_to_shardings for array resharding (if available), removing the custom ReshardingPlanWrapper and its dependency on plugin_executable. This simplifies the implementation and aligns with internal
Pathways mechanisms. The cache_resharding_plans option has also been removed.

This requires the latest JAX version because the ifrt_proxy API for ReshardArrays was recently added.

To ensure backwards compatibility, if _transfer_to_sharding is not supported, the sidechannel API will be used.

@copybara-service copybara-service bot force-pushed the test_848324924 branch 5 times, most recently from 6dbb03c to 033de1d Compare January 6, 2026 08:17
…eshard API.

The experimental `reshard` function now leverages `pw_jax.jaxlib_pathways._transfer_to_shardings` for array resharding (if available), removing the custom `ReshardingPlanWrapper` and its dependency on `plugin_executable`. This simplifies the implementation and aligns with internal
Pathways mechanisms. The `cache_resharding_plans` option has also been removed.

This requires the latest JAX version because the ifrt_proxy API for ReshardArrays was recently added.

To ensure backwards compatibility, if `_transfer_to_sharding` is not supported, the sidechannel API will be used.

PiperOrigin-RevId: 852643657
@copybara-service copybara-service bot merged commit f6c1870 into main Jan 6, 2026
@copybara-service copybara-service bot deleted the test_848324924 branch January 6, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant