MCPcopy Index your code
hub / github.com/tdrussell/diffusion-pipe / is_main_process

Function is_main_process

utils/common.py:33–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def is_main_process():
34 return get_rank() == 0
35
36
37@contextmanager

Callers 15

print_model_infoFunction · 0.90
_evaluateFunction · 0.90
train.pyFile · 0.90
need_to_checkpointFunction · 0.90
save_modelMethod · 0.90
process_epochMethod · 0.90
process_stepMethod · 0.90
_make_divisible_byMethod · 0.90
validateMethod · 0.90
cacheMethod · 0.90
configure_adapterMethod · 0.90
load_adapter_weightsMethod · 0.90

Calls 1

get_rankFunction · 0.85

Tested by

no test coverage detected