Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
31
def
is_main_process():
32
return
not dist.is_initialized() or dist.get_rank() == 0
33
34
35
def
Logger(content):
Callers
15
train_epoch
Function · 0.90
train_lora.py
File · 0.90
ppo_train_epoch
Function · 0.90
train_ppo.py
File · 0.90
rl_train_epoch
Function · 0.90
train_agent.py
File · 0.90
train_epoch
Function · 0.90
train_pretrain.py
File · 0.90
train_epoch
Function · 0.90
train_full_sft.py
File · 0.90
grpo_train_epoch
Function · 0.90
train_grpo.py
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected