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

Function get_node_group

SwissArmyTransformer/sat/mpu/initialize.py:123–127  ·  view source on GitHub ↗

Get the data parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

121
122
123def get_node_group():
124 """Get the data parallel group the caller rank belongs to."""
125 assert _NODE_GROUP is not None, \
126 'node group is not initialized, please pass LOCAL_WORLD_SIZE environment variable.'
127 return _NODE_GROUP
128
129
130def get_model_parallel_world_size():

Callers 4

mp_split_model_rank0Function · 0.85
mp_split_model_receiveFunction · 0.85
get_node_world_sizeFunction · 0.85
get_node_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected