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
huggingface_hub had a new release yesterday that removes cached_download and causes an ImportError
/usr/local/lib/python3.11/site-packages/sentence_transformers/__init__.py:3: in <module>
from .datasets import SentencesDataset, ParallelSentencesDataset
/usr/local/lib/python3.11/site-packages/sentence_transformers/datasets/__init__.py:3: in <module>
from .ParallelSentencesDataset import ParallelSentencesDataset
/usr/local/lib/python3.11/site-packages/sentence_transformers/datasets/ParallelSentencesDataset.py:4: in <module>
from .. import SentenceTransformer
/usr/local/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py:12: in <module>
from huggingface_hub import HfApi, HfFolder, Repository, hf_hub_url, cached_download
E ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/usr/local/lib/python3.11/site-packages/huggingface_hub/__init__.py)
The text was updated successfully, but these errors were encountered:
I believe cached_download was removed in Sentence Transformers in the v2.3.0 release, so if you upgrade Sentence Transformers to v2.3.0 or newer then you shouldn't have any issues.
P.s. on the inference side, the v3 release from a few months back shouldn't have introduced anything breaking, so it should be safe to upgrade.
huggingface_hub had a new release yesterday that removes
cached_download
and causes anImportError
The text was updated successfully, but these errors were encountered: