-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Lint] Add FSDP/composable API files to ufmt include #90873
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/90873
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4d1e5a2: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
I am trying to see if we can get ufmt to cover FSDP and composable API files so that we do not need to keep having separate PRs to ufmt the files. [ghstack-poisoned]
This PR adds FSDP and composable API files to `.lintrunner.toml` so that (1) lintrunner enforces that those files are formatted and (2) `lintrunner f` formats those files for you. This should not impede developer productivity because lintrunner comes with PyTorch. The only added step in the development process is the `lintrunner f`, which is enforced on PRs. [ghstack-poisoned]
This PR adds FSDP and composable API files to `.lintrunner.toml` so that (1) lintrunner enforces that those files are formatted and (2) `lintrunner f` formats those files for you. There are two requirements here (see https://github.com/pytorch/pytorch/wiki/lintrunner for details): 1. Install lintrunner: ``` pip install lintrunner lintrunner init ``` 2. `lintrunner f` before you finalize your PR, which is now enforced by CI. The code changes outside of `.lintrunner.toml` are exactly the result of `lintrunner f`. [ghstack-poisoned]
This PR adds FSDP and composable API files to `.lintrunner.toml` so that (1) lintrunner enforces that those files are formatted and (2) `lintrunner f` formats those files for you. There are two requirements here (see https://github.com/pytorch/pytorch/wiki/lintrunner for details): 1. Install lintrunner: ``` pip install lintrunner lintrunner init ``` 2. `lintrunner f` before you finalize your PR, which would now be enforced by CI after this PR. The code changes in this PR outside of `.lintrunner.toml` are the result of `lintrunner f`. --- I only plan to land this PR if all of the composable API developers agree that this is something that makes sense and is not too intrusive to the workflow. [ghstack-poisoned]
This PR adds FSDP and composable API files to `.lintrunner.toml` so that (1) lintrunner enforces that those files are formatted and (2) `lintrunner f` formats those files for you. There are two requirements here (see https://github.com/pytorch/pytorch/wiki/lintrunner for details): 1. Install lintrunner: ``` pip install lintrunner lintrunner init ``` 2. `lintrunner f` before you finalize your PR, which would now be enforced by CI after this PR. The code changes in this PR outside of `.lintrunner.toml` are the result of `lintrunner f`. --- I only plan to land this PR if all of the composable API developers agree that this is something that makes sense and is not too intrusive to the workflow. [ghstack-poisoned]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @awgu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great step in the right direction of enforcing lint!
Failure are related to Dynamo and should be unrelated.
Edit: Let me rebase to be safe. |
ghstack-source-id: 07be631 Pull Request resolved: pytorch#90873
This PR adds FSDP and composable API files to `.lintrunner.toml` so that (1) lintrunner enforces that those files are formatted and (2) `lintrunner f` formats those files for you. There are two requirements here (see https://github.com/pytorch/pytorch/wiki/lintrunner for details): 1. Install lintrunner: ``` pip install lintrunner lintrunner init ``` 2. `lintrunner f` before you finalize your PR, which would now be enforced by CI after this PR. The code changes in this PR outside of `.lintrunner.toml` are the result of `lintrunner f`. --- I only plan to land this PR if all of the composable API developers agree that this is something that makes sense and is not too intrusive to the workflow. [ghstack-poisoned]
This PR adds FSDP and composable API files to `.lintrunner.toml` so that (1) lintrunner enforces that those files are formatted and (2) `lintrunner f` formats those files for you. There are two requirements here (see https://github.com/pytorch/pytorch/wiki/lintrunner for details): 1. Install lintrunner: ``` pip install lintrunner lintrunner init ``` 2. `lintrunner f` before you finalize your PR, which would now be enforced by CI after this PR. The code changes in this PR outside of `.lintrunner.toml` are the result of `lintrunner f`. --- I only plan to land this PR if all of the composable API developers agree that this is something that makes sense and is not too intrusive to the workflow. [ghstack-poisoned]
@pytorchbot merge |
Merge startedYour 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 |
…istributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…istributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…istributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…istributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…etup ufmt for `distributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…istributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…etup ufmt for `distributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…istributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…py` (#96597) As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. Pull Request resolved: #96597 Approved by: https://github.com/rohan-varma
…etup ufmt for `distributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…istributed.py`" As we already enabled ufmt for composable APIs in #90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. [ghstack-poisoned]
…py` (#96597) As we already enabled ufmt for composable APIs in pytorch/pytorch#90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. Pull Request resolved: pytorch/pytorch#96597 Approved by: https://github.com/rohan-varma
…py` (#96597) As we already enabled ufmt for composable APIs in pytorch/pytorch#90873, it seems a good idea to enable ufmt for other distributed APIs as well. This change setup ufmt for DDP. Pull Request resolved: pytorch/pytorch#96597 Approved by: https://github.com/rohan-varma
Stack from ghstack:
This PR adds FSDP and composable API files to
.lintrunner.toml
so that (1) lintrunner enforces that those files are formatted and (2)lintrunner f
formats those files for you.There are two requirements here (see https://github.com/pytorch/pytorch/wiki/lintrunner for details):
lintrunner f
before you finalize your PR, which would now be enforced by CI after this PR.The code changes in this PR outside of
.lintrunner.toml
are the result oflintrunner f
.I only plan to land this PR if all of the composable API developers agree that this is something that makes sense and is not too intrusive to the workflow.