Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ print0
Function
print0
tests/small_model_debugging/test_model.py:66–68 ·
view source on GitHub ↗
(msg)
Source
from the content-addressed store, hash-verified
64
65
66
def
print0(msg):
67
if
dist.get_rank() == 0:
68
print(msg, flush=True)
69
70
71
rank = int(os.environ[
'RANK'
])
Callers
1
print_params
Function · 0.70
Calls
1
get_rank
Method · 0.45
Tested by
no test coverage detected