Skip to content

Commit

Permalink
fix error type in ccl.py (microsoft#4521)
Browse files Browse the repository at this point in the history
Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>
  • Loading branch information
2 people authored and baodii committed Nov 7, 2023
1 parent 96839f6 commit 8aa5dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/comm/ccl.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_all_ranks_from_group(self, group):
while True:
results.append(super(CCLBackend, self).get_global_rank(group, rank))
rank += 1
except RuntimeError:
except ValueError:
pass
if tuple(results) not in self.groups:
self._new_group(results, group)
Expand Down

0 comments on commit 8aa5dab

Please sign in to comment.