Skip to content

[FSDP] Implement _param_fqns() to return all parameter FQNs for the FSDP module#82595

Closed
fegin wants to merge 2 commits intogh/fegin/19/basefrom
gh/fegin/19/head
Closed

[FSDP] Implement _param_fqns() to return all parameter FQNs for the FSDP module#82595
fegin wants to merge 2 commits intogh/fegin/19/basefrom
gh/fegin/19/head

Conversation

@fegin
Copy link
Contributor

@fegin fegin commented Aug 1, 2022

Stack from ghstack (oldest at bottom):

_param_fqns() returns the (fqn, param_name, module_name) tuple for all the parameters wrapped by the current FSDP module.

Differential Revision: D38325223

…SDP module

_param_fqns() returns the (fqn, param_name, module_name) tuple for all the parameters wrapped by the current FSDP module.

Differential Revision: [D38325223](https://our.internmc.facebook.com/intern/diff/D38325223/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 1, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit e2fdfb9 (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 cla signed oncall: distributed Add this issue/PR to distributed oncall triage queue labels Aug 1, 2022
…s for the FSDP module"

_param_fqns() returns the (fqn, param_name, module_name) tuple for all the parameters wrapped by the current FSDP module.

Differential Revision: [D38325223](https://our.internmc.facebook.com/intern/diff/D38325223/)

[ghstack-poisoned]
fegin added a commit that referenced this pull request Aug 1, 2022
…SDP module

Pull Request resolved: #82595

_param_fqns() returns the (fqn, param_name, module_name) tuple for all the parameters wrapped by the current FSDP module.
ghstack-source-id: 163183717

Differential Revision: [D38325223](https://our.internmc.facebook.com/intern/diff/D38325223/)
Copy link
Contributor

@rohan-varma rohan-varma left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

set(spi.module for spi in self.flat_param._shared_param_infos)
)

def parameter_module_names(self) -> Iterator[Tuple[str, str]]:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: docstring mentioning what is returned here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Miss this comment, will have another PR to fix the docstring.

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

1 similar comment
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2022

Hey @fegin.
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 2, 2022
…SDP module (#82595)

Summary:
Pull Request resolved: #82595

_param_fqns() returns the (fqn, param_name, module_name) tuple for all the parameters wrapped by the current FSDP module.
ghstack-source-id: 163183717

Test Plan: CI

Reviewed By: rohan-varma

Differential Revision: D38325223

fbshipit-source-id: 4aa143f20a105e6b70ab5fbe6299642fc3917fcb
@facebook-github-bot facebook-github-bot deleted the gh/fegin/19/head branch August 6, 2022 14:19
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.

4 participants