Skip to content

Commit

Permalink
fix(train): use on_fit_start
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh authored and supersergiy committed Dec 7, 2023
1 parent 2851b7e commit 9ac6286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zetta_utils/training/lightning/trainers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def __init__(
self.exp_name = exp_name
self.exp_version = exp_version

def on_train_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule):
def on_fit_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule):
if not os.environ.get("WANDB_MODE", None) == "offline": # pragma: no cover
api_key = os.environ.get("WANDB_API_KEY", None)
wandb.login(key=api_key)
Expand Down

0 comments on commit 9ac6286

Please sign in to comment.