def get_model_parallel_rank():
    """Return my rank for the model parallel group."""
    return get_rank(get_model_parallel_group())
Return my rank for the model parallel group.
fairseq/distributed/utils.py