PreSumm icon indicating copy to clipboard operation
PreSumm copied to clipboard

Cannot load model via torch.load

Open MariamRiaz opened this issue 2 years ago • 1 comments

I am trying to load a pretrained model in my notebook. Using google colab for the experiment,

import torch

PATH = "path/to/the/model/model_step_148000.pt" model = torch.load(PATH)

it gives me this error ; ModuleNotFoundError: No module named 'models'

How can I solve this?

MariamRiaz avatar Jun 22 '22 13:06 MariamRiaz

Do you know how to continue training the ext model?thank you

SabrinaZhuangxx avatar Jul 12 '22 04:07 SabrinaZhuangxx