[Shardy MPMD] Add support for unreduced axes to NamedSpmdShardingSpec.#1062
Merged
copybara-service[bot] merged 1 commit intomainfrom Mar 20, 2026
Merged
[Shardy MPMD] Add support for unreduced axes to NamedSpmdShardingSpec.#1062copybara-service[bot] merged 1 commit intomainfrom
copybara-service[bot] merged 1 commit intomainfrom
Conversation
959dfca to
e3ecf11
Compare
e3ecf11 to
882c7d7
Compare
This change is needed in order to pass information about unreduced axes after MPMD partitioning to the backend compiler. The MPMD partitioner returns NamedSpmdShardingSpec for inputs/outputs of the module's main function as part of PartitioningResult, and these specs are used to create the input/output NamedShardings passed to the backend compiler. This change also includes updates to the Shardy MLIR utilities to extract unreduced axes from MeshTensorTypes as well as updates to the Python bindings in Shardy and jaxlib PiperOrigin-RevId: 886852988
882c7d7 to
548e319
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Shardy MPMD] Add support for unreduced axes to NamedSpmdShardingSpec.
This change is needed in order to pass information about unreduced axes after MPMD partitioning to the backend compiler. The MPMD partitioner returns NamedSpmdShardingSpec for inputs/outputs of the module's main function as part of PartitioningResult, and these specs are used to create the input/output NamedShardings passed to the backend compiler.
This change also includes updates to the Shardy MLIR utilities to extract unreduced axes from MeshTensorTypes as well as updates to the Python bindings in Shardy and jaxlib