Skip to content

Commit 5600433

Browse files
committed
small bugfix regarding saving the step
1 parent ebf0225 commit 5600433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rin_pytorch/rin_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def save(self, milestone):
870870
return
871871

872872
data = {
873-
'step': self.step,
873+
'step': self.step + 1,
874874
'model': self.accelerator.get_state_dict(self.model),
875875
'opt': self.opt.state_dict(),
876876
'ema': self.ema.state_dict(),

0 commit comments

Comments
 (0)