Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/AiOS
/ get_world_size
Function
get_world_size
util/misc.py:522–525 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
520
521
522
def
get_world_size():
523
if
not is_dist_avail_and_initialized():
524
return
1
525
return
dist.get_world_size()
526
527
528
def
get_rank():
Callers
4
forward
Method · 0.90
forward
Method · 0.90
all_gather
Function · 0.70
reduce_dict
Function · 0.70
Calls
1
is_dist_avail_and_initialized
Function · 0.70
Tested by
no test coverage detected