Add _rank_not_in_group to idist#3339
Merged
vfdev-5 merged 18 commits intopytorch:masterfrom Mar 12, 2025
Merged
Conversation
vfdev-5
reviewed
Feb 28, 2025
Collaborator
|
Thanks for the PR @sadra-barikbin ! |
vfdev-5
reviewed
Feb 28, 2025
ignite/distributed/utils.py
Outdated
| ) | ||
| from ignite.utils import setup_logger | ||
|
|
||
| if has_hvd_support: |
Collaborator
There was a problem hiding this comment.
Let's remove this as it was for typing only, right?
vfdev-5
reviewed
Feb 28, 2025
vfdev-5
reviewed
Feb 28, 2025
Collaborator
Author
|
@vfdev-5 , is XLA's def _do_new_group(self, ranks: List[int], **kwargs: Any) -> Any:
return [ranks] # Shouldn't it return `list(ranks)` ? |
vfdev-5
reviewed
Mar 1, 2025
vfdev-5
reviewed
Mar 1, 2025
Collaborator
On xla |
Collaborator
|
Failing test: |
Collaborator
|
We have this method coded incorrectly: def _do_new_group(self, ranks: List[int], **kwargs: Any) -> Any:
return hvd.ProcessSet(ranks)it should be def _do_new_group(self, ranks: List[int], **kwargs: Any) -> Any:
return hvd.add_process_set(ranks)and we need to set I'll commit some updates to this PR. |
6e6c0cc to
9971932
Compare
9971932 to
947ef84
Compare
vfdev-5
approved these changes
Mar 12, 2025
Collaborator
vfdev-5
left a comment
There was a problem hiding this comment.
Failures seems not to be related to the PR's feature.
Let's fix them later.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi there!
To add
_rank_not_in_grouptoidist.utils.