Reproduction
This is caused by
|
control.should_save = True |
and
|
control.should_save = True |
Saving will happen at the end of training and the end of epoch (which is also triggered when setting save_strategy to epoch). Same model will be saved twice, also, the on_save function will be triggered twice.