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][4/N] Remove _get_fully_sharded_module_to_states #104409

Closed
wants to merge 15 commits into from

Conversation

awgu
Copy link
Contributor

@awgu awgu commented Jun 29, 2023

Stack from ghstack (oldest at bottom):

_get_fully_sharded_module_to_states() was used to emulate auto wrapping without actually calling fully_shard. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 29, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2660f4c:
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added the release notes: distributed (fsdp) release notes category label Jun 29, 2023
awgu added a commit that referenced this pull request Jun 29, 2023
ghstack-source-id: d543bca70c50162e2e0566e973aceee805cbed60
Pull Request resolved: #104409
@awgu awgu added the topic: not user facing topic category label Jun 29, 2023
awgu added a commit to awgu/pytorch that referenced this pull request Jun 29, 2023
ghstack-source-id: d543bca70c50162e2e0566e973aceee805cbed60
Pull Request resolved: pytorch#104409
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
awgu added a commit that referenced this pull request Jun 29, 2023
ghstack-source-id: 2cba28a2d666236440a33cf9902c8242dd395619
Pull Request resolved: #104409
awgu added a commit to awgu/pytorch that referenced this pull request Jun 29, 2023
ghstack-source-id: 2cba28a2d666236440a33cf9902c8242dd395619
Pull Request resolved: pytorch#104409
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
awgu added a commit to awgu/pytorch that referenced this pull request Jun 29, 2023
ghstack-source-id: c004d4449be8138b816d316dfb2d609e344c9dde
Pull Request resolved: pytorch#104409
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
awgu added a commit to awgu/pytorch that referenced this pull request Jun 30, 2023
ghstack-source-id: 8396d44dcfe1e3d5c61f934e9802ce44e7f96a3f
Pull Request resolved: pytorch#104409
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
awgu added a commit to awgu/pytorch that referenced this pull request Jun 30, 2023
ghstack-source-id: b81b73bc70ea7e1145db055a81bca7dbabcd5cd8
Pull Request resolved: pytorch#104409
awgu added 2 commits June 30, 2023 00:43
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
awgu added a commit to awgu/pytorch that referenced this pull request Jun 30, 2023
ghstack-source-id: 5cccf8de845be6f8c6559c988d9d61b02fc7c287
Pull Request resolved: pytorch#104409
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
awgu added a commit to awgu/pytorch that referenced this pull request Jul 5, 2023
ghstack-source-id: 76d394ad6c81c8b1ae4456b74875880b9916edf8
Pull Request resolved: pytorch#104409
awgu added a commit to awgu/pytorch that referenced this pull request Jul 5, 2023
ghstack-source-id: 76d394ad6c81c8b1ae4456b74875880b9916edf8
Pull Request resolved: pytorch#104409
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
@awgu awgu marked this pull request as ready for review July 5, 2023 15:36
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
Copy link
Contributor

@fegin fegin left a comment

Choose a reason for hiding this comment

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

Nice, I got confused by _get_fully_sharded_module_to_states when it was introduced to the code.

awgu added 2 commits July 7, 2023 12:49
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
@awgu awgu added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 7, 2023
`_get_fully_sharded_module_to_states()` was used to emulate auto wrapping without actually calling `fully_shard`. Since we committed to unifying (see previous PR), we can remove this function and its helpers/tests.

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot deleted the gh/awgu/413/head branch July 11, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: distributed (fsdp) release notes category topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants