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

Function log_dist

deepspeed/utils/logging.py:113–123  ·  view source on GitHub ↗

Log message when get_dist_msg() deems it should be logged, see its docstring for details. Args: message (str) ranks (list) level (int)

(message, ranks=None, level=logging.INFO)

Source from the content-addressed store, hash-verified

111
112
113def log_dist(message, ranks=None, level=logging.INFO):
114 """Log message when get_dist_msg() deems it should be logged, see its docstring for details.
115
116 Args:
117 message (str)
118 ranks (list)
119 level (int)
120 """
121 final_message = get_dist_msg(message, ranks)
122 if final_message is not None:
123 logger.log(level, final_message)
124
125
126def print_dist(message, ranks=None):

Callers 15

__init__Method · 0.90
_create_model_parallelFunction · 0.90
appendMethod · 0.90
print_rank_0Function · 0.90
__init__Method · 0.90
__init__Method · 0.90
compute_eigenvalueMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls 2

get_dist_msgFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…