MCPcopy
hub / github.com/zai-org/CogView / get_model_parallel_group

Function get_model_parallel_group

mpu/initialize.py:88–92  ·  view source on GitHub ↗

Get the model parallel group the caller rank belongs to.

()

Source from the content-addressed store, hash-verified

86
87
88def get_model_parallel_group():
89 """Get the model parallel group the caller rank belongs to."""
90 assert _MODEL_PARALLEL_GROUP is not None, \
91 'model parallel group is not initialized'
92 return _MODEL_PARALLEL_GROUP
93
94
95def get_data_parallel_group():

Callers 10

forwardMethod · 0.85
forwardMethod · 0.85
clip_grad_normFunction · 0.85
broadcast_dataFunction · 0.85
get_model_parallel_rankFunction · 0.85
_reduceFunction · 0.85
_splitFunction · 0.85
_gatherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected