Skip to content

Conversation

@till-m
Copy link
Contributor

@till-m till-m commented Oct 20, 2025

self.best_val_loss is never set, so self.best_val_loss is None is always True, which causes the best.pt checkpoint to be overwritten every validation step during training.

@rubenohana
Copy link
Contributor

Hi @till-m thank you for your PR. It looks good to me, I'll let @mikemccabe210 double check it and approve it if it's good for him.

@till-m
Copy link
Contributor Author

till-m commented Oct 20, 2025

Thanks for having a look. Just to let you know, initially, I was looking for a problem with the checkpoints due to some oddity in the validation loss I saw during training. Now I'm sure there is (potentially in addition to this) another thing going on, so please check the PR carefully.

@mikemccabe210
Copy link
Contributor

Thanks for the contribution @till-m! Seems like a good change.

@mikemccabe210 mikemccabe210 merged commit 064acb0 into PolymathicAI:master Oct 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants