Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ print0
Function
print0
tests/small_model_debugging/partial_offload_test.py:67–69 ·
view source on GitHub ↗
(msg)
Source
from the content-addressed store, hash-verified
65
66
67
def
print0(msg):
68
if
dist.get_rank() == 0:
69
print(msg, flush=True)
70
71
72
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