Skip to content

Conversation

wanchaol
Copy link
Collaborator

@wanchaol wanchaol commented Aug 24, 2023

Stack from ghstack (oldest at bottom):

This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 24, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/107835

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 6500af9 with merge base e68b3ad (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

[ghstack-poisoned]
wanchaol added a commit that referenced this pull request Aug 24, 2023
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

ghstack-source-id: 47f7b6b
Pull Request resolved: #107835
@wanchaol wanchaol added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 24, 2023
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

[ghstack-poisoned]
wanchaol added a commit that referenced this pull request Aug 25, 2023
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

ghstack-source-id: e472c3b
Pull Request resolved: #107835
@wanchaol wanchaol requested a review from fduwjj August 25, 2023 21:21
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

[ghstack-poisoned]
wanchaol added a commit that referenced this pull request Aug 26, 2023
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

ghstack-source-id: ff53107
Pull Request resolved: #107835
Copy link
Contributor

@fduwjj fduwjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and one nit in the test.

This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

[ghstack-poisoned]
wanchaol added a commit that referenced this pull request Aug 31, 2023
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax

ghstack-source-id: 0c827b9
Pull Request resolved: #107835
@wanchaol
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@facebook-github-bot facebook-github-bot deleted the gh/wanchaol/349/head branch September 4, 2023 14:23
wanchaol added a commit that referenced this pull request Sep 5, 2023
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax
Pull Request resolved: #107835
Approved by: https://github.com/fduwjj
atalman pushed a commit that referenced this pull request Sep 6, 2023
This PR fixes the new_empty_strided op to become replicate from sharding
when necessary, this is a quick fix to resolve #107661

We'll need to think more about the behavior of this op when it comes to
sharding, one possibility is to follow the input sharding, but given the
output shape of this op might not be the same as the input, it's hard to
say we should follow the input sharding, further improvement needed once
we figure out the op syntax
Pull Request resolved: #107835
Approved by: https://github.com/fduwjj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: distributed (dtensor) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants