Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

how to save the entire model instead of just the model parameters #360

Open
vicky-yuan opened this issue Mar 29, 2023 · 0 comments
Open

Comments

@vicky-yuan
Copy link

vicky-yuan commented Mar 29, 2023

I had a problem when I was pre-training with the domain multilingual. After training, my folder was this, but I found that the 'checkpoint.pth' only saved the parameters of the model.

hypotheses
best-valid_en_mlm_ppl.pth 9.03M
checkpoint.pth 25.03M
params.pkl 2KB
train.log 23KB

Actually, I want to save the entire model content, what should I do? I tried to rewrite the function 'save_checkpoint' to save the entire model, but I failed.
Looking forward to your reply, thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant