mirror of https://github.com/InternLM/InternLM
init light_monitor on rank_log only
parent
8089900044
commit
d82f223e53
|
|
@ -450,10 +450,10 @@ def initialize_distributed_env(
|
||||||
args_sanity_check()
|
args_sanity_check()
|
||||||
|
|
||||||
# init light monitor client
|
# init light monitor client
|
||||||
if gpc.config.monitor.alert.enable_feishu_alert:
|
if gpc.config.monitor.alert.enable_feishu_alert and gpc.is_rank_for_log():
|
||||||
if gpc.config.monitor.alert.get("light_monitor_address", None):
|
if gpc.config.monitor.alert.get("light_monitor_address", None):
|
||||||
initialize_light_monitor(gpc.config.monitor.alert.light_monitor_address)
|
initialize_light_monitor(gpc.config.monitor.alert.light_monitor_address)
|
||||||
elif gpc.is_rank_for_log():
|
else:
|
||||||
logger.warning("monitor address is none, monitor could not be used!")
|
logger.warning("monitor address is none, monitor could not be used!")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue