MCPcopy
hub / github.com/deepspeedai/DeepSpeed / print_rank_0

Function print_rank_0

deepspeed/utils/comms_logging.py:15–18  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

13
14
15def print_rank_0(message):
16 import deepspeed.comm as dist
17 if dist.get_rank() == 0:
18 print(message)
19
20
21# Helper function to pretty-print message sizes

Callers 1

calc_bw_logFunction · 0.70

Calls 1

get_rankMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…