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

Callers 1

print_paramsFunction · 0.70

Calls 1

get_rankMethod · 0.45

Tested by

no test coverage detected