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

Function get_data_parallel_group

mpu/initialize.py:95–99  ·  view source on GitHub ↗

Get the data parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

93
94
95def get_data_parallel_group():
96 """Get the data parallel group the caller rank belongs to."""
97 assert _DATA_PARALLEL_GROUP is not None, \
98 'data parallel group is not initialized'
99 return _DATA_PARALLEL_GROUP
100
101
102def get_model_parallel_world_size():

Callers 2

get_data_parallel_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected