configure_model
is incompatible with the BaseFinetuning
behavior when fitting
#19658
Labels
configure_model
is incompatible with the BaseFinetuning
behavior when fitting
#19658
Bug description
Based on the current callback orders, The
Finetuning
class will always be incompatible with anyLightningModule
that utilizeconfigure_model
method. The current callback sequence isCallback.setup
->LightningModule.configure_model
->LightningModule.configure_optimizers
->Callback.on_fit_start
. However, TheBaseFinetuning
callsfreeze_before_training
atsetup
, where modules inside theconfigure_model
has not been instantiated yet.What version are you seeing the problem on?
v2.1
How to reproduce the bug
Error messages and logs
Environment
Current environment
More info
No response
The text was updated successfully, but these errors were encountered: