Skip to content

Comments

Handle unreduced axes in NamedSharding.#38164

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_869173922
Open

Handle unreduced axes in NamedSharding.#38164
copybara-service[bot] wants to merge 1 commit intomainfrom
test_869173922

Conversation

@copybara-service
Copy link

Handle unreduced axes in NamedSharding.

This change modifies the SPMD partitioner to correctly handle NamedShardings that specify unreduced axes. When an unreduced NamedSharding is encountered, the axes marked as unreduced are converted to replicated axes within the NamedSharding. Additionally, a frontend attribute is added to the HLO to indicate that unreduced axes were present and handled.

This change modifies the SPMD partitioner to correctly handle NamedShardings that specify unreduced axes. When an unreduced NamedSharding is encountered, the axes marked as unreduced are converted to replicated axes within the NamedSharding. Additionally, a frontend attribute is added to the HLO to indicate that unreduced axes were present and handled.

PiperOrigin-RevId: 869173922
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.

0 participants