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

Function get_data_parallel_world_size

deepspeed/utils/groups.py:312–314  ·  view source on GitHub ↗

Return world size for the data parallel group.

()

Source from the content-addressed store, hash-verified

310
311
312def get_data_parallel_world_size():
313 """Return world size for the data parallel group."""
314 return dist.get_world_size(group=get_data_parallel_group())
315
316
317def get_data_parallel_rank():

Callers

nothing calls this directly

Calls 2

get_data_parallel_groupFunction · 0.85
get_world_sizeMethod · 0.80

Tested by

no test coverage detected