Skip to content

Commit

Permalink
[compatibility] support torch 2.2 (#5875)
Browse files Browse the repository at this point in the history
* Support Pytorch 2.2.2

* keep build_on_pr file and update .compatibility
  • Loading branch information
GuangyaoZhang authored and ver217 committed Jul 15, 2024
1 parent 1c961b2 commit d46c7a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .compatibility
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
2.1.0-12.1.0
2.2.2-12.1.0
2 changes: 1 addition & 1 deletion colossalai/tensor/d_tensor/layout_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def _group_alive_check(cached_comm_action_sequence):
for process_group in used_process_groups:
try:
dist.get_rank(process_group)
except RuntimeError as e:
except (ValueError, RuntimeError) as e:
# If the group is not registered, it means it has been deleted
if str(e) == (
f"Group {process_group} is not registered, please create group with torch.distributed.new_group API"
Expand Down

0 comments on commit d46c7a6

Please sign in to comment.