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

Function get_data_parallel_group

deepspeed/utils/groups.py:190–194  ·  view source on GitHub ↗

Get the data parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

188
189
190def get_data_parallel_group():
191 """Get the data parallel group the caller rank belongs to."""
192 assert _DATA_PARALLEL_GROUP is not None, \
193 'data parallel group is not initialized'
194 return _DATA_PARALLEL_GROUP
195
196
197def set_tensor_model_parallel_world_size(world_size):

Callers 2

get_data_parallel_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected