Switching model during training #7094
Unanswered
farahFif
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am experiencing knowledge distillation in Incremental Learning. Basically , at each phase I init a new model and train it on the current data as a student model , and use the old model ( trained on previous phase) as a teacher. So far , there's no error in the code but the problem is that the loss never decrease after each phase. Also, is there a way in PL to init new optimizer in on_train_epoch_start ?
Here's example of the code :
Beta Was this translation helpful? Give feedback.
All reactions