Skip to content

Commit 064acb0

Browse files
Merge pull request #60 from till-m/fix-validation-checkpoint
fix: stop overwriting `best.pt` every validation
2 parents a123419 + baa8fb5 commit 064acb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

the_well/benchmark/trainer/training.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ def train(self):
460460
self.save_model(
461461
epoch, val_loss, os.path.join(self.checkpoint_folder, "best.pt")
462462
)
463+
self.best_val_loss = val_loss
463464
# Check if time for expensive validation - periodic or final
464465
if epoch % self.rollout_val_frequency == 0 or (epoch == self.max_epoch):
465466
logger.info(

0 commit comments

Comments
 (0)