MCPcopy
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

12import shutil
13
14def print_rank_0(msg, rank=0):
15 if rank <= 0:
16 print(msg)
17
18
19def to_device(batch, device):

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected