Skip to content

Commit

Permalink
Fixes AttributeError in #2853 (#2854)
Browse files Browse the repository at this point in the history
Updates `deepspeed/monitor/monitor.py`
to instantiate objects with correct configs

Relevant issue:
#2853

Co-authored-by: Olatunji Ruwase <olruwase@microsoft.com>
  • Loading branch information
saforem2 and tjruwase authored Mar 1, 2023
1 parent 17fa087 commit 91d7090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepspeed/monitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def __init__(self, monitor_config):
if monitor_config.tensorboard.enabled:
self.tb_monitor = TensorBoardMonitor(monitor_config.tensorboard)
if monitor_config.wandb.enabled:
self.wandb_monitor = WandbMonitor(monitor_config.csv_monitor)
self.wandb_monitor = WandbMonitor(monitor_config.wandb)
if monitor_config.csv_monitor.enabled:
self.csv_monitor = csvMonitor(monitor_config.wandb)
self.csv_monitor = csvMonitor(monitor_config.csv_monitor)

def write_events(self, event_list):
if dist.get_rank() == 0:
Expand Down

0 comments on commit 91d7090

Please sign in to comment.