MCPcopy Create free account
hub / github.com/THUDM/GLM / get_data_parallel_world_size

Function get_data_parallel_world_size

mpu/initialize.py:120–122  ·  view source on GitHub ↗

Return world size for the data parallel group.

()

Source from the content-addressed store, hash-verified

118
119
120def get_data_parallel_world_size():
121 """Return world size for the data parallel group."""
122 return torch.distributed.get_world_size(group=get_data_parallel_group())
123
124
125def get_data_parallel_rank():

Callers

nothing calls this directly

Calls 1

get_data_parallel_groupFunction · 0.85

Tested by

no test coverage detected