MCPcopy Create free account
hub / github.com/lingeringlight/START / save_on_master

Function save_on_master

utils.py:211–213  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

209
210
211def save_on_master(*args, **kwargs):
212 if is_main_process():
213 torch.save(*args, **kwargs)
214
215
216def init_distributed_mode(args):

Callers

nothing calls this directly

Calls 1

is_main_processFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…