Skip to content

[XLA] Add HloSharding reconstruction utils#42576

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_913833695
May 14, 2026
Merged

[XLA] Add HloSharding reconstruction utils#42576
copybara-service[bot] merged 1 commit into
mainfrom
test_913833695

Conversation

@copybara-service
Copy link
Copy Markdown

[XLA] Add HloSharding reconstruction utils

This change adds utilities to factor manual sharding and reconstruct literals from shards, supporting Named Sharding (V3) and Manual Subgroups (V2).

  • Adds FactorManualSharding to group shards by manual axes.
  • Adds UnshardLiteral to reconstruct global literals.
  • Optimizes manual subgroup processing by caching tile indices.
  • Includes unit tests for various sharding configurations, including edge cases like padded tiles.

@copybara-service copybara-service Bot force-pushed the test_913833695 branch 3 times, most recently from 8096e70 to dc33054 Compare May 14, 2026 17:27
This change adds utilities to factor manual sharding and reconstruct literals from shards, supporting Named Sharding (V3) and Manual Subgroups (V2).

- Adds FactorManualSharding to group shards by manual axes.
- Adds UnshardLiteral to reconstruct global literals.
- Optimizes manual subgroup processing by caching tile indices.
- Includes unit tests for various sharding configurations, including edge cases like padded tiles.

PiperOrigin-RevId: 915521131
@copybara-service copybara-service Bot merged commit 24f3965 into main May 14, 2026
@copybara-service copybara-service Bot deleted the test_913833695 branch May 14, 2026 18:16
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