Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was 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

Description

@vicky-yuan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions