huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
135.79k stars 27.19k forks source link

OSError: Not found: "/root/.cache/huggingface/transformers/5ec31591d9130cc9be0872e6b3dc0b276e514ab96e68404ac4a876ff03cb413b.dbd4bc2544d5c9f8f0d109844726c1600fa95cf0ba770b54c146f702be6e55dc": No such file or directory Error #2 #12691

Closed EricPeter closed 3 years ago

EricPeter commented 3 years ago

This happens when try to load the model on another device

Environment info

Who can help

Information

Model I am using (Bert, XLNet ...):

The problem arises when using:

The tasks I am working on is:

To reproduce

Steps to reproduce the behavior:

1. 2. 3.

Expected behavior

LysandreJik commented 3 years ago

Hello! What's the code that triggers this error?

EricPeter commented 3 years ago

import os loaded_model = torch.load("mt_luganda.pt",map_location=torch.device('cpu'))

LysandreJik commented 3 years ago

Are you sure? That's unrelated to tranformers or huggingface, yet I do see a transformers cache error in your issue title.

EricPeter commented 3 years ago

am trying to load that model in another machine

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

pepi99 commented 2 years ago

Same problem.

pepi99 commented 2 years ago

Any solution?

bvelker commented 2 years ago

Same issue. Trying to load a pickled tokenizer inside of a docker container with open(f"t5-base_tokenizer.pkl", 'rb') as f: tok = pickle.load(f)