MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _get_data_parallel_group

Function _get_data_parallel_group

deepspeed/utils/groups.py:319–327  ·  view source on GitHub ↗

Get the data parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

317
318
319def _get_data_parallel_group():
320 """Get the data parallel group the caller rank belongs to."""
321 assert dist.is_initialized(), \
322 'dist is not initialized'
323 global mpu
324 if mpu is not None:
325 return mpu.get_data_parallel_group()
326 # Return the clone of dist world group
327 return _clone_world_group()
328
329
330def _get_broadcast_src_rank():

Callers 3

_get_broadcast_src_rankFunction · 0.85
_get_data_parallel_rankFunction · 0.85

Calls 3

_clone_world_groupFunction · 0.85
is_initializedMethod · 0.45

Tested by

no test coverage detected