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

Function get_data_parallel_group

codegeex/megatron/mpu/initialize.py:217–220  ·  view source on GitHub ↗

Get the data parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

215
216
217def get_data_parallel_group():
218 """Get the data parallel group the caller rank belongs to."""
219 assert _DATA_PARALLEL_GROUP is not None, "data parallel group is not initialized"
220 return _DATA_PARALLEL_GROUP
221
222
223def get_embedding_group():

Callers 2

get_data_parallel_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected