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

Function get_model_parallel_group

codegeex/megatron/mpu/initialize.py:195–198  ·  view source on GitHub ↗

Get the model parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

193
194
195def get_model_parallel_group():
196 """Get the model parallel group the caller rank belongs to."""
197 assert _MODEL_PARALLEL_GROUP is not None, "model parallel group is not initialized"
198 return _MODEL_PARALLEL_GROUP
199
200
201def get_tensor_model_parallel_group():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected