Skip to content

Commit

Permalink
feat: use wandb auto resuming feature
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Aug 23, 2024
1 parent 2acc597 commit 828ed3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_diloco/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def finish(self): ...

class WandbLogger:
def __init__(self, project, config):
wandb.init(project=project, config=config)
wandb.init(project=project, config=config, resume="auto") # make wandb reuse the same run id if possible

def log(self, metrics: dict[str, Any]):
wandb.log(metrics)
Expand Down

0 comments on commit 828ed3e

Please sign in to comment.