You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doest work on colab - ImportError: cannot import name 'cached_path' from 'transformers.file_utils' (/usr/local/lib/python3.8/dist-packages/transformers/file_utils.py)
#1
%pip install ruprompts
import ruprompts
from transformers import pipeline
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[<ipython-input-2-c349a1a8aeb4>](https://localhost:8080/#) in <module>
----> 1 import ruprompts
2
3 from transformers import pipeline
2 frames
[/usr/local/lib/python3.8/dist-packages/ruprompts/prompt.py](https://localhost:8080/#) in <module>
7 from torch import nn
8 from transformers import AutoModel, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase
----> 9 from transformers.file_utils import PushToHubMixin, cached_path, hf_bucket_url
10 from typeguard import typechecked
11
ImportError: cannot import name 'cached_path' from 'transformers.file_utils' (/usr/local/lib/python3.8/dist-packages/transformers/file_utils.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: