MCPcopy
hub / github.com/jingyaogong/minimind / is_main_process

Function is_main_process

trainer/trainer_utils.py:31–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def is_main_process():
32 return not dist.is_initialized() or dist.get_rank() == 0
33
34
35def Logger(content):

Callers 15

train_epochFunction · 0.90
train_lora.pyFile · 0.90
ppo_train_epochFunction · 0.90
train_ppo.pyFile · 0.90
rl_train_epochFunction · 0.90
train_agent.pyFile · 0.90
train_epochFunction · 0.90
train_pretrain.pyFile · 0.90
train_epochFunction · 0.90
train_full_sft.pyFile · 0.90
grpo_train_epochFunction · 0.90
train_grpo.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected