MCPcopy 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
66def print0(msg):
67 if dist.get_rank() == 0:
68 print(msg, flush=True)
69
70
71rank = int(os.environ['RANK'])

Callers 1

print_paramsFunction · 0.70

Calls 1

get_rankMethod · 0.45

Tested by

no test coverage detected