get_collective_group_size#

ray.util.collective.collective.get_collective_group_size(group_name: str = 'default') → int[source]#

Return the size of the collective group with the given name.

Parameters:

group_name (str) – the name of the group to query

Returns:

The world size of the collective group, -1 if the group does

not exist or the process does not belong to the group.

Return type:

int