mirror of https://github.com/hpcaitech/ColossalAI
[compatibility] support torch 2.2 (#5875)
* Support Pytorch 2.2.2 * keep build_on_pr file and update .compatibilitypull/5912/head
parent
d8bf7e09a2
commit
2e28c793ce
|
@ -1 +1,2 @@
|
||||||
2.1.0-12.1.0
|
2.1.0-12.1.0
|
||||||
|
2.2.2-12.1.0
|
||||||
|
|
|
@ -473,7 +473,7 @@ class LayoutConverter(metaclass=SingletonMeta):
|
||||||
for process_group in used_process_groups:
|
for process_group in used_process_groups:
|
||||||
try:
|
try:
|
||||||
dist.get_rank(process_group)
|
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 the group is not registered, it means it has been deleted
|
||||||
if str(e) == (
|
if str(e) == (
|
||||||
f"Group {process_group} is not registered, please create group with torch.distributed.new_group API"
|
f"Group {process_group} is not registered, please create group with torch.distributed.new_group API"
|
||||||
|
|
Loading…
Reference in New Issue