MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / get_model_parallel_rank

Function get_model_parallel_rank

SwissArmyTransformer/sat/mpu/initialize.py:140–142  ·  view source on GitHub ↗

Return my rank for the model parallel group.

()

Source from the content-addressed store, hash-verified

138
139
140def get_model_parallel_rank():
141 """Return my rank for the model parallel group."""
142 return torch.distributed.get_rank(group=get_model_parallel_group())
143
144
145def get_node_rank():

Callers 13

chatFunction · 0.90
chat_sat.pyFile · 0.90
generate_continuallyFunction · 0.90
from_pretrainedMethod · 0.90
from_pretrainedMethod · 0.90
__init__Method · 0.85
repartitionMethod · 0.85
repartitionMethod · 0.85
repartitionMethod · 0.85
forwardMethod · 0.85

Calls 1

get_model_parallel_groupFunction · 0.85

Tested by

no test coverage detected