How to implement Linear Probing for first N epochs and then switch to fine-tuning? #12488
Unanswered
konradkalita
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.
-
Hello, I’m thinking how I should implement a training technique from Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution paper. Essentially what authors describe is to freeze all model weights except softmax layer for beginning of training and after that switch to fine-tuning. I’m working on BERT-like models from transformers. Should I create 2 separate optimizers and change them after N epochs? Also how I could do this switch to fine-tuning gradual (let’s say every epoch unfreeze 1 top layer from transformer)?
Beta Was this translation helpful? Give feedback.
All reactions