def get_model_parallel_world_size():
    """Return world size for the model parallel group."""
    return get_world_size(get_model_parallel_group())
Return world size for the model parallel group.
fairseq/distributed/utils.py