Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Tele-AI/Telechat
/ print_rank_0
Function
print_rank_0
deepspeed-telechat/utils/utils.py:14–16 ·
view source on GitHub ↗
(msg, rank=0)
Source
from the content-addressed store, hash-verified
12
import
shutil
13
14
def
print_rank_0(msg, rank=0):
15
if
rank <= 0:
16
print(msg)
17
18
19
def
to_device(batch, device):
Callers
1
main
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected