richarddwang / electra_pytorch

Pretrain and finetune ELECTRA with fastai and huggingface. (Results of the paper replicated !)
325 stars 42 forks source link

Pretrain does not save the model. #19

Closed PhilipMay closed 3 years ago

PhilipMay commented 3 years ago

Hi,

I am starting a pretrain with just 100 iterations like so: learn.fit(9999, cbs=[lr_shedule])

But the model is not saved to './checkpoints/pretrain'.

I did specify (as you did) the following for Learner:

                path='./checkpoints',
                model_dir='pretrain',

Do I have to manualy save the model?

richarddwang commented 3 years ago
PhilipMay commented 3 years ago

That works. Thanks. Closing this again...