-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[FSDP][state_dict] Fix incorrect valid_data_size for local_state_dict when some ranks have zero data. #94109
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
… when some ranks have zero data. When using `torch.chunks` to split the `flat_param`, some ranks may have zero data and `local_state_dict` does not handle the case correctly -- `local_state_dict` won't resize the local tensor to an empty one. This PR fixes the issue. Differential Revision: [D43004643](https://our.internmc.facebook.com/intern/diff/D43004643/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/94109
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 69491f1: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…_state_dict when some ranks have zero data." When using `torch.chunks` to split the `flat_param`, some ranks may have zero data and `local_state_dict` does not handle the case correctly -- `local_state_dict` won't resize the local tensor to an empty one. This PR fixes the issue. Differential Revision: [D43004643](https://our.internmc.facebook.com/intern/diff/D43004643/) [ghstack-poisoned]
…_state_dict when some ranks have zero data." When using `torch.chunks` to split the `flat_param`, some ranks may have zero data and `local_state_dict` does not handle the case correctly -- `local_state_dict` won't resize the local tensor to an empty one. This PR fixes the issue. Differential Revision: [D43004643](https://our.internmc.facebook.com/intern/diff/D43004643/) [ghstack-poisoned]
… when some ranks have zero data. Pull Request resolved: #94109 When using `torch.chunks` to split the `flat_param`, some ranks may have zero data and `local_state_dict` does not handle the case correctly -- `local_state_dict` won't resize the local tensor to an empty one. This PR fixes the issue. ghstack-source-id: 179327901 Differential Revision: [D43004643](https://our.internmc.facebook.com/intern/diff/D43004643/)
…_state_dict when some ranks have zero data." When using `torch.chunks` to split the `flat_param`, some ranks may have zero data and `local_state_dict` does not handle the case correctly -- `local_state_dict` won't resize the local tensor to an empty one. This PR fixes the issue. Differential Revision: [D43004643](https://our.internmc.facebook.com/intern/diff/D43004643/) [ghstack-poisoned]
… when some ranks have zero data. Pull Request resolved: #94109 When using `torch.chunks` to split the `flat_param`, some ranks may have zero data and `local_state_dict` does not handle the case correctly -- `local_state_dict` won't resize the local tensor to an empty one. This PR fixes the issue. ghstack-source-id: 179457801 Differential Revision: [D43004643](https://our.internmc.facebook.com/intern/diff/D43004643/)
|
@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 |
Stack from ghstack (oldest at bottom):
When using
torch.chunksto split theflat_param, some ranks may have zero data andlocal_state_dictdoes not handle the case correctly --local_state_dictwon't resize the local tensor to an empty one. This PR fixes the issue.Differential Revision: D43004643