MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / is_main_process

Function is_main_process

util/misc.py:534–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

532
533
534def is_main_process():
535 return get_rank() == 0
536
537
538def save_on_master(*args, **kwargs):

Callers 1

save_on_masterFunction · 0.70

Calls 1

get_rankFunction · 0.70

Tested by

no test coverage detected