Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/AiOS
/ is_dist_avail_and_initialized
Function
is_dist_avail_and_initialized
util/distribute_utils.py:83–88 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
81
82
83
def
is_dist_avail_and_initialized():
84
if
not dist.is_available():
85
return
False
86
if
not dist.is_initialized():
87
return
False
88
return
True
89
90
91
def
get_world_size():
Callers
2
get_world_size
Function · 0.70
get_rank
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected