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

[DCP][state_dict] DCP state_dict cannot correctly find FQN when the leaf module is wrapped by FSDP #115592

Closed
wants to merge 1 commit into from

Conversation

fegin
Copy link
Contributor

@fegin fegin commented Dec 11, 2023

Summary: The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225

Copy link

pytorch-bot bot commented Dec 11, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/115592

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit db2d941 with merge base c70f995 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52049293

@github-actions github-actions bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Dec 11, 2023
@fegin fegin added the topic: not user facing topic category label Dec 11, 2023
@fegin fegin requested review from wz337 and LucasLLC December 11, 2023 22:30
@fegin fegin added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 11, 2023
@@ -181,7 +191,7 @@ def test_fsdp(self) -> None:
{
"use_orig_params": [True, False],
"use_composable": [True, False],
"use_dtensor": [True, False],
"use_dtensor": [True,False],
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems unintentional?

fegin added a commit to fegin/pytorch that referenced this pull request Dec 11, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary:

The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52049293

fegin added a commit to fegin/pytorch that referenced this pull request Dec 11, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary:

The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52049293

fegin added a commit to fegin/pytorch that referenced this pull request Dec 11, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary:

The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52049293

@fegin fegin requested a review from wz337 December 11, 2023 23:52
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52049293

fegin added a commit to fegin/pytorch that referenced this pull request Dec 11, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary:

The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293
Copy link
Contributor

@wz337 wz337 left a comment

Choose a reason for hiding this comment

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

LGTM!

fegin added a commit to fegin/pytorch that referenced this pull request Dec 12, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary:

The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Reviewed By: wz337

Differential Revision: D52049293
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52049293

…eaf module is wrapped by FSDP (pytorch#115592)

Summary:

The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Reviewed By: wz337

Differential Revision: D52049293
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52049293

@fegin fegin added the ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR label Dec 12, 2023
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

guilhermeleobas pushed a commit to guilhermeleobas/pytorch that referenced this pull request Dec 18, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary: The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293

Pull Request resolved: pytorch#115592
Approved by: https://github.com/wz337
hyperfraise pushed a commit to hyperfraise/pytorch that referenced this pull request Dec 21, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary: The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293

Pull Request resolved: pytorch#115592
Approved by: https://github.com/wz337
hyperfraise pushed a commit to hyperfraise/pytorch that referenced this pull request Dec 21, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary: The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293

Pull Request resolved: pytorch#115592
Approved by: https://github.com/wz337
ZhiweiYan-96 pushed a commit to ZhiweiYan-96/pytorch that referenced this pull request Dec 22, 2023
…eaf module is wrapped by FSDP (pytorch#115592)

Summary: The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293

Pull Request resolved: pytorch#115592
Approved by: https://github.com/wz337
@atalman atalman added this to the 2.2.1 milestone Jan 17, 2024
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Feb 12, 2024
…eaf module is wrapped by FSDP (pytorch#115592)

Summary: The original logic has an incorrect assumption that there is at one object name left when traversing the module tree. This is not correct when the leaf module is wrapped by FSDP.

Test Plan: CI

Differential Revision: D52049293

Pull Request resolved: pytorch#115592
Approved by: https://github.com/wz337
atalman pushed a commit that referenced this pull request Feb 14, 2024
#119691)

Co-authored-by: Chien-Chin Huang <chienchin@fb.com>
resolved: #115592
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged oncall: distributed Add this issue/PR to distributed oncall triage queue topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants