Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#sdy Export pass to make function inputs/outputs evenly sharded. #42

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

#sdy Export pass to make function inputs/outputs evenly sharded.

After propagation, function inputs/outputs may require padding. We can't allow this. GSPMD makes the tensor fully replicated if one dimension requires padding, however we can improve on that. We find the best sub-sharding per dimension by taking the largest dimension sharding prefix that would only require basic communication - a dynamic-slice for the input tensor, or a basic all-gather on the output tensor.

Note that as part of the work to add explicit reshard ops, we need to make it add reshards for these inputs/outputs, so the explicit reshard pass should come after this pass.

@copybara-service copybara-service bot force-pushed the test_659602009 branch 2 times, most recently from 3a52334 to 1dbff3f Compare August 7, 2024 13:35
@copybara-service copybara-service bot closed this Aug 7, 2024
@copybara-service copybara-service bot deleted the test_659602009 branch August 7, 2024 13:38
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