-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Rename "master" methods to "main" in ClusterEnvironment plugins #10103
Conversation
for more information, see https://pre-commit.ci
bad1ec1
to
77aca7c
Compare
for more information, see https://pre-commit.ci
Co-authored-by: Justus Schock <[email protected]>
…factor/master-to-main
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.
feeling it is just adding confusion if we preserve MASTER_ in OS environment and locally in PL rename as main_ can we do the rename for both?
To clarify, @Borda the MASTER_* variables in os.environ are set by pytorch and read by pytorch (or rather the distributed backends). We can't rename them, but it's also not a problem because these are not user facing. However, our public API for the cluster plugins is and I think we should update them. Another example was #10105. |
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 !
…tning-AI#10103) * rename occurrences of master port, master address, maser node, master process * rename properties * add property decorators * occurrences in docs * update changelog * update changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add lost method * create deprecation * add changelog * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix typo (but it was already there!!!) * Apply suggestions from code review Co-authored-by: Justus Schock <[email protected]> * add todo * update more occurences * add types * add missing import Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Justus Schock <[email protected]>
What does this PR do?
Fixes #8774
Continues #9094 (repository and branch was deleted)
In addition, converts the
main_port
andmain_address
methods to properties. This was requested in #6303.Does your PR introduce any breaking changes? If yes, please list them.
Yes. User with custom cluster environment plugins won't be able to instantiate their existing plugins due to the requirement of
main_port
,main_address
to be abstract. They will have to renamemaster_port
andmaster_address
methods immediately.Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
I made sure I had fun coding 🙃
Part of #1 (it's a lie, this is just here to avoid noisy GitHub bot)