Skip to content

Conversation

@awgu
Copy link
Collaborator

@awgu awgu commented Oct 27, 2022

Stack from ghstack:

The goal of this PR is to make one pass over the FSDP constructor and refactor each helper method call to not be self.<...>. Subsequent PRs will make further passes over the FSDP constructor.

This PR looks like a lot of lines of code change, but it is only reorganization. Methods are moved to _init_utils.py and _common_utils.py. This also marks the beginning of moving methods from _utils.py to _common_utils.py -- they will be coalesced eventually. I am only using _common_utils.py as a staging ground to include the methods that have been affected by the refactoring.

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 27, 2022

🔗 Helpful Links

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

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

✅ No Failures

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

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

This is the first lengthy PR.

[ghstack-poisoned]
This is the first lengthy PR.

[ghstack-poisoned]
awgu pushed a commit to awgu/pytorch that referenced this pull request Oct 29, 2022
ghstack-source-id: 4d1f8df
Pull Request resolved: pytorch#87921
This is the first lengthy PR.

[ghstack-poisoned]
Andrew Gu added 4 commits October 29, 2022 21:35
This is the first lengthy PR.

[ghstack-poisoned]
This is the first lengthy PR.

[ghstack-poisoned]
This is the first lengthy PR.

[ghstack-poisoned]
This is the first lengthy PR.

[ghstack-poisoned]
Andrew Gu added 2 commits October 30, 2022 18:55
This is the first lengthy PR.

[ghstack-poisoned]
This is the first lengthy PR.

[ghstack-poisoned]
This is the first lengthy PR.

[ghstack-poisoned]
awgu pushed a commit to awgu/pytorch that referenced this pull request Oct 31, 2022
ghstack-source-id: a9a4981
Pull Request resolved: pytorch#87921
@awgu awgu added the topic: not user facing topic category label Oct 31, 2022
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Nov 5, 2022
The goal of this PR is to make one pass over the FSDP constructor and refactor each helper method call to not be `self.<...>`. Subsequent PRs will make further passes over the FSDP constructor.

This PR looks like a lot of lines of code change, but it is only reorganization. Methods are moved to `_init_utils.py` and `_common_utils.py`. This also marks the beginning of moving methods from `_utils.py` to `_common_utils.py` -- they will be coalesced eventually. I am only using `_common_utils.py` as a staging ground to include the methods that have been affected by the refactoring.
Pull Request resolved: pytorch#87921
Approved by: https://github.com/mrshenli
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
The goal of this PR is to make one pass over the FSDP constructor and refactor each helper method call to not be `self.<...>`. Subsequent PRs will make further passes over the FSDP constructor.

This PR looks like a lot of lines of code change, but it is only reorganization. Methods are moved to `_init_utils.py` and `_common_utils.py`. This also marks the beginning of moving methods from `_utils.py` to `_common_utils.py` -- they will be coalesced eventually. I am only using `_common_utils.py` as a staging ground to include the methods that have been affected by the refactoring.
Pull Request resolved: pytorch#87921
Approved by: https://github.com/mrshenli
@facebook-github-bot facebook-github-bot deleted the gh/awgu/151/head branch June 8, 2023 15:24
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 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.

3 participants