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

Method _is_same_process_group

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

Source from the content-addressed store, hash-verified

2306
2307 @staticmethod
2308 def _is_same_process_group(group_a, group_b):
2309 if group_a is group_b:
2310 return True
2311 if group_a is None or group_b is None:
2312 return False
2313 return dist.get_all_ranks_from_group(group_a) == dist.get_all_ranks_from_group(group_b)
2314
2315 def _resolve_zero3_param_placement(self):
2316 for name, param in self.module.named_parameters():

Callers 1

Calls 1

Tested by

no test coverage detected