-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[pipelining] clean up stage functions #140418
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/140418
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit c90018d with merge base 0a0915f ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iiuc the 4 helpers at the top are deleted because they were only used by validate-shape helper at the bottom?
for validate shape, i guess we are not using it anywhere?
if the user uses shape-inference which is encouraged, then validate shape seems pointless. And if they do not use shape-inference, i think shape validation is nice to have but i kinda prefer deleting all this code if possible. Do we have additional shape validation helpers that don't do communication? IIRC i added something that recorded the expected shape at init time and errored at runtime if it mismatches. If we have that then i think this is all safe to delete.
Yes to these both
I just checked and yeah I see this as part of pytorch/torch/distributed/pipelining/stage.py Lines 857 to 897 in 726424f
|
|
@pytorchbot merge |
Merge startedYour 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 |
Clean up methods related to stage input/output shape verification which are no longer needed Pull Request resolved: pytorch#140418 Approved by: https://github.com/wconstab ghstack dependencies: pytorch#140019
Stack from ghstack (oldest at bottom):
Clean up methods related to stage input/output shape verification which are no longer needed
cc @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o