diff --git a/deepspeed/monitor/config.py b/deepspeed/monitor/config.py index 0cd02603bd35..2706764290fd 100644 --- a/deepspeed/monitor/config.py +++ b/deepspeed/monitor/config.py @@ -74,7 +74,6 @@ class DeepSpeedMonitorConfig(DeepSpeedConfigModel): @root_validator def check_enabled(cls, values): - values["enabled"] = False - if (values.get("tensorboard").enabled or values.get("wandb").enabled or values.get("csv_monitor").enabled): - values["enabled"] = True + values["enabled"] = values.get("tensorboard").enabled or values.get("wandb").enabled or values.get( + "csv_monitor").enabled return values