MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / model_parallel_is_initialized

Function model_parallel_is_initialized

codegeex/megatron/mpu/initialize.py:184–192  ·  view source on GitHub ↗

Check if model and data parallel groups are initialized.

()

Source from the content-addressed store, hash-verified

182
183
184def model_parallel_is_initialized():
185 """Check if model and data parallel groups are initialized."""
186 if (
187 _TENSOR_MODEL_PARALLEL_GROUP is None
188 or _PIPELINE_MODEL_PARALLEL_GROUP is None
189 or _DATA_PARALLEL_GROUP is None
190 ):
191 return False
192 return True
193
194
195def get_model_parallel_group():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected