AnswerDotAI / bert24

Apache License 2.0
66 stars 4 forks source link

Allow setting a new LR & WD on resumption #123

Closed warner-benjamin closed 1 month ago

warner-benjamin commented 1 month ago

Since the optimizer state is loaded from the checkpoint on resumption, changing any optimize values needs to occur after the checkpoint is loaded but before Trainer.fit is called.

This also might be doable with a new callback which fires on the after_load event, assuming all the callbacks are not replaced from the checkpoint callbacks. But it looks like that might happen per the docs.