Skip to content

Commit

Permalink
Fixed multiple save when using step-save-period
Browse files Browse the repository at this point in the history
in conjunction with bach accumulation (close #30)
  • Loading branch information
LoicGrobol committed Oct 6, 2023
1 parent edb2613 commit 006d605
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

### Fixed

- Fixed multiple save when using step-save-period in conjunction with bach accumulation (close issue
[#30](https://github.com/LoicGrobol/zeldarose/issues/30))

### Changed

- Maximum Pyorch compatibility bumped to 2.1
Expand Down
2 changes: 1 addition & 1 deletion zeldarose/train_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def __init__(
self.tokenizer = tokenizer

@rank_zero_only
def on_train_batch_end(
def on_before_zero_grad(
self,
trainer: pl.Trainer,
pl_module: TrainingModule,
Expand Down

0 comments on commit 006d605

Please sign in to comment.