MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / get_node_world_size

Function get_node_world_size

SwissArmyTransformer/sat/mpu/initialize.py:135–137  ·  view source on GitHub ↗

Return world size for the node group.

()

Source from the content-addressed store, hash-verified

133
134
135def get_node_world_size():
136 """Return world size for the node group."""
137 return torch.distributed.get_world_size(group=get_node_group())
138
139
140def get_model_parallel_rank():

Callers 2

mp_split_model_rank0Function · 0.85
get_node_src_rankFunction · 0.85

Calls 1

get_node_groupFunction · 0.85

Tested by

no test coverage detected