-
Notifications
You must be signed in to change notification settings - Fork 64
Refactor backend classes and remove deprecated methods in PyTorch backends #141
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
Refactor backend classes and remove deprecated methods in PyTorch backends #141
Conversation
d521ade
to
8a1899e
Compare
@shengfukevin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
if backend == "ucc": | ||
# try OSS/setup.py | ||
# Import Fairring | ||
if backend == "fairring": |
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.
Looks like "fairring" is the supported backend. Shall we add "fairring" into supportedC10dBackends in base_backend.py? and remove "ucc"?
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.
I think so. Will try to update. Thanks!
@Sergei-Lebedev
Thanks for the PR. Looks good to me. Have one minor inline comment, please check. |
@TaekyungHeo, I saw quite a few BLACK lint error, does our github project enable BLACK already? |
@shengfukevin, this repository has a linter, as you can see at param/.github/workflows/python_lint.yml Line 22 in d9eda8d
|
Looks like Meta internal lint combined black and usort. I ran usort on this PR, I do see some format got changed, but still not exactly the same as the version from Meta "arc lint". |
@shengfukevin Do you have any suggestions for NVIDIA to avoid linter errors in advance? |
I am asking PyTorch team and see how they make user OSS linter aligned with internal linter. |
@TaekyungHeo @GSSBMW, I fixed the meta lint issue after I imported this PR to meta. However, I can not export the changed code to this PR since I am not the owner. So I created a new PR #149 which include the lint fix. I also changed supportedC10dBackends in base_backend.py to add fairring and remove ucc. Please review #149. |
Closing this PR as @shengfukevin has created a new one to fix lint errors: #149 |
Summary
Test Plan