mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2026-05-08 23:05:41 +00:00
[checkpoint] use gather_tensor in checkpoint and update its unit test (#1339)
This commit is contained in:
@@ -141,9 +141,18 @@ class ProcessGroup:
|
||||
def rank(self):
|
||||
return self._rank
|
||||
|
||||
def ranks_in_group(self):
|
||||
return self._rank_list
|
||||
|
||||
def world_size(self):
|
||||
return self._world_size
|
||||
|
||||
def tp_rank_list(self):
|
||||
return self._tp_rank_list
|
||||
|
||||
def dp_rank_list(self):
|
||||
return self._dp_rank_list
|
||||
|
||||
def tp_local_rank(self):
|
||||
return self._rank % self._tp_degree
|
||||
|
||||
|
||||
Reference in New Issue
Block a user