transformers-tutorials icon indicating copy to clipboard operation
transformers-tutorials copied to clipboard

problem on loading .bin model for inference

Open faizmisman opened this issue 4 years ago • 1 comments

Hi. I tried load the model using torch.load('model.bin') but this kind of error occured:

_pickle.UnpicklingError: invalid load key, '['.

And how to do inference? Any help?

faizmisman avatar Mar 10 '21 07:03 faizmisman

I am getting RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory when trying to load the model. Please suggest what can be done

akshayjadiya avatar Jun 20 '22 16:06 akshayjadiya