MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / _is_same_process_group

Method _is_same_process_group

deepspeed/runtime/engine.py:2361–2366  ·  view source on GitHub ↗
(group_a, group_b)

Source from the content-addressed store, hash-verified

2359
2360 @staticmethod
2361 def _is_same_process_group(group_a, group_b):
2362 if group_a is group_b:
2363 return True
2364 if group_a is None or group_b is None:
2365 return False
2366 return dist.get_all_ranks_from_group(group_a) == dist.get_all_ranks_from_group(group_b)
2367
2368 def _resolve_zero3_param_placement(self):
2369 for name, param in self.module.named_parameters():

Callers 1

Calls 1

Tested by

no test coverage detected