Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csuhan/OneLLM
/ is_main_process
Function
is_main_process
util/misc.py:222–223 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
220
221
222
def
is_main_process():
223
return
get_rank() == 0
224
225
226
def
save_on_master(*args, **kwargs):
Callers
1
save_on_master
Function · 0.85
Calls
1
get_rank
Function · 0.85
Tested by
no test coverage detected