-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[FSDP] Allow to use TorchDispatch with FSDP #88014
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/88014
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit b594741: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Is this for landing, or is this just for experimentation? I am concerned that memory logs from using this will be inaccurate because memory will be incorrectly freed early without |
zhaojuanmao
left a comment
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.
look good to me, will let Andrew or Rohan to accept
|
@awgu |
awgu
left a comment
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.
Thanks for the explanation! I definitely misunderstood.
This looks good to me. Do you know if Core team is planning to add support for record_stream() so that this is a temporary fix?
Saw a TODO for TorchDispatch to support class block list filter. If that function is implemented, users can just use the block list to filter out |
Sounds good to me! Also, sorry, I am landing some PRs from my stack, so there may be some rebase conflicts :( |
Add `_no_dispatch_record_stream` to disable TorchDispatch before calling `record_stream()`. [ghstack-poisoned]
Add `_no_dispatch_record_stream` to disable TorchDispatch before calling `record_stream()`. [ghstack-poisoned]
Add `_no_dispatch_record_stream` to disable TorchDispatch before calling `record_stream()`. [ghstack-poisoned]
Add `_no_dispatch_record_stream` to disable TorchDispatch before calling `record_stream()`. [ghstack-poisoned]
|
@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 |
Add `_no_dispatch_record_stream` to disable TorchDispatch before calling `record_stream()`. Pull Request resolved: pytorch#88014 Approved by: https://github.com/awgu
Add `_no_dispatch_record_stream` to disable TorchDispatch before calling `record_stream()`. Pull Request resolved: pytorch#88014 Approved by: https://github.com/awgu
Stack from ghstack (oldest at bottom):
Add
_no_dispatch_record_streamto disable TorchDispatch before callingrecord_stream().