flair icon indicating copy to clipboard operation
flair copied to clipboard

[Question]: Resume training

Open alfredwallace7 opened this issue 3 months ago • 5 comments

Question

I'm trying to resume training according to : This code where it says :

7. continue training at later point. Load previously trained model checkpoint, then resume

trained_model = SequenceTagger.load(path + '/checkpoint.pt')

resume training best model, but this time until epoch 25

trainer.resume(trained_model, base_path=path + '-resume', max_epochs=25, )

but resume is not defined in : class ModelTrainer(Pluggable)

I'm sure it's a common task using your awesome library yet I cannot get it working. Any information would be very appreciated.

alfredwallace7 avatar May 17 '24 07:05 alfredwallace7