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

[FSDP] Pass kwargs to load_state_dict #83309

Closed
wants to merge 1 commit into from

Conversation

rohan-varma
Copy link
Member

@rohan-varma rohan-varma commented Aug 12, 2022

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 12, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit 2e74d06 (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot facebook-github-bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Aug 12, 2022
rohan-varma added a commit that referenced this pull request Aug 12, 2022
ghstack-source-id: 42d663604e889884c97db1c123ce34e3da5aa6c8
Pull Request resolved: #83309
@rohan-varma rohan-varma changed the title Pass kwargs to load_state_dict [FSDP] Pass kwargs to load_state_dict Aug 12, 2022
@@ -715,7 +715,7 @@ def test_state_dict_with_ignored_modules(self, prefix, ignore_inner):
param.zero_()

to_load = {k[len(prefix_str):] : v for k, v in sd1.items()}
nonwrapped_model.load_state_dict(to_load)
nonwrapped_model.load_state_dict(to_load, strict=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it intentional to add strict=True for the non-wrapped model too?

Copy link
Member Author

Choose a reason for hiding this comment

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

It wasn't, but this doesn't make a difference since strict=True is the default anyways.

@rohan-varma
Copy link
Member Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here.
The merge job was triggered without a flag. This means that your change will be merged once all checks on your PR have passed (ETA: 0-4 Hours). If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

@github-actions
Copy link

Hey @rohan-varma.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Aug 16, 2022
Summary:
Pull Request resolved: #83309
Approved by: https://github.com/awgu

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/794ae6417456bedb99749a1b50ab17a9fda2b466

Reviewed By: fegin

Differential Revision: D38745462

Pulled By: rohan-varma

fbshipit-source-id: 33d0d6eb706d4d5095e4eb59710393adef31cba1
@facebook-github-bot facebook-github-bot deleted the gh/rohan-varma/581/head branch August 19, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged oncall: distributed Add this issue/PR to distributed oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants