Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/AiOS
/ save_on_master
Function
save_on_master
util/misc.py:538–540 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
536
537
538
def
save_on_master(*args, **kwargs):
539
if
is_main_process():
540
torch.save(*args, **kwargs)
541
542
def
init_distributed_mode_ssc(args):
543
init_dist(
'pytorch'
)
Callers
nothing calls this directly
Calls
2
is_main_process
Function · 0.70
save
Method · 0.45
Tested by
no test coverage detected