Stops training after one epoch #8452
Unanswered
BramVanroy
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Dear @BramVanroy, Yes, the script should keep training. Might providing a reproducible script using the BoringModel: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/bug_report_model.py. Let's convert this discussion into an issue when you have a reproducible script :) Best, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
I am new to PL so this might be an obvious question. Could not find an answer in the extensive docs. I am training a classification problem (CrossEntropyLoss) and this is my trainer init.
I had expected the script to run indefinitely until early stopping kicks in. But after the first training epoch finishes (around 250 steps) and validation is done, the script just stops. Is that to be expected? It does not give any feedback or error message but the script just stops running as if it was "done executing". (It does not freeze, it is just "done".)
How can I make the script run indefinitely until the Early Stopping criterion is met?
Beta Was this translation helpful? Give feedback.
All reactions