MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / is_main_process

Function is_main_process

tools/test_linear_probing_hf.py:71–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69# ============================================================================
70
71def is_main_process() -> bool:
72 return not dist.is_initialized() or dist.get_rank() == 0
73
74
75def get_world_size() -> int:

Callers 4

setup_linear_classifiersFunction · 0.85
train_one_epochFunction · 0.85
evaluateFunction · 0.85
test_linear_probingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected