MCPcopy 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
538def save_on_master(*args, **kwargs):
539 if is_main_process():
540 torch.save(*args, **kwargs)
541
542def init_distributed_mode_ssc(args):
543 init_dist('pytorch')

Callers

nothing calls this directly

Calls 2

is_main_processFunction · 0.70
saveMethod · 0.45

Tested by

no test coverage detected