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

Function get_model_parallel_world_size

mpu/initialize.py:102–104  ·  view source on GitHub ↗

Return world size for the model parallel group.

()

Source from the content-addressed store, hash-verified

100
101
102def get_model_parallel_world_size():
103 """Return world size for the model parallel group."""
104 return torch.distributed.get_world_size(group=get_model_parallel_group())
105
106
107def get_model_parallel_rank():

Callers 11

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

get_model_parallel_groupFunction · 0.85

Tested by

no test coverage detected