abhimishra91 / transformers-tutorials

Github repo with tutorials to fine tune transformers for diff NLP tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem on loading .bin model for inference

faizmisman opened this issue · 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?

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