MCPcopy
hub / github.com/hpcaitech/ColossalAI / info

Method info

colossalai/logging/logger.py:136–145  ·  view source on GitHub ↗

Log an info message. Args: message (str): The message to be logged. ranks (List[int]): List of parallel ranks.

(self, message: str, ranks: List[int] = None)

Source from the content-addressed store, hash-verified

134 getattr(self._logger, level)(message)
135
136 def info(self, message: str, ranks: List[int] = None) -> None:
137 """Log an info message.
138
139 Args:
140 message (str): The message to be logged.
141 ranks (List[int]): List of parallel ranks.
142 """
143 message_prefix = "{}:{} {}".format(*self.__get_call_info())
144 self._log("info", message_prefix, ranks)
145 self._log("info", message, ranks)
146
147 def warning(self, message: str, ranks: List[int] = None) -> None:
148 """Log a warning message.

Callers 15

launchFunction · 0.45
_compute_table_cMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45
launchFunction · 0.45
initializeFunction · 0.45
report_memory_usageFunction · 0.45
print_rank_0Function · 0.45
convert_to_zero_v2Function · 0.45
__init__Method · 0.45
log_pg_initMethod · 0.45

Calls 2

__get_call_infoMethod · 0.95
_logMethod · 0.95

Tested by 6

run_trainerFunction · 0.36
check_forwardFunction · 0.36
check_backwardFunction · 0.36
check_forward_backwardFunction · 0.36
run_checkFunction · 0.36