PlateauLRScheduler resume #473
-
Hi, one more question. If I resume training and use PlateauLRScheduler, I should save and load its state dict, right? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@ademyanchuk yeah, the plateau scheduler is a bit of a special case, I don't handle it properly in my train script but it should be saved and restored to work on resume. I tend to use plateau on 'smaller' transfer learning tasks w/ adam or other adaptive opts where resume is less of a concern so I've lived with it (for now). |
Beta Was this translation helpful? Give feedback.
-
It was not that simple to figure out and make it work [the resuming part], so I put it here for future-self or anyone who will be interested of doing the same.
This is how I get it to work the way I expected it to work. I may not figure out a clean and simple solution, perhaps @rwightman can shed some light. All the best :) |
Beta Was this translation helpful? Give feedback.
@ademyanchuk yeah, the plateau scheduler is a bit of a special case, I don't handle it properly in my train script but it should be saved and restored to work on resume.
I tend to use plateau on 'smaller' transfer learning tasks w/ adam or other adaptive opts where resume is less of a concern so I've lived with it (for now).