How to keep the result reproducable? #6192
Unanswered
Whisht
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 2 replies
-
If you are training on GPU(s), you also need to include "deterministic=True" in your trainer. Although, in my experience, even that may not be sufficient to ensure reproducibility for some models. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I built a language classification task with custom dataset and a textcnn model. When I run
fit()
andtest()
twice, the loss and accuracy are different between these two experiments. I fixed the random seed as2021
in dataset producing procedure bytrain_test_split(random_state=2021)
. And I fixed the same random seed for other config withpl.seed_everything(2021)
. But the result still changes.Beta Was this translation helpful? Give feedback.
All reactions