Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGrobol committed Oct 6, 2023
1 parent 006d605 commit 98bcdfb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zeldarose/train_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ def on_before_zero_grad(
self,
trainer: pl.Trainer,
pl_module: TrainingModule,
outputs: pl_types.STEP_OUTPUT,
batch: Any,
batch_idx: int,
optimizer: torch.optim.Optimizer,
):
step = trainer.global_step
if self.step_period is not None and step % self.step_period == 0:
Expand Down

0 comments on commit 98bcdfb

Please sign in to comment.