-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'cached_download' from 'huggingface_hub' #92
Comments
short-term fix in case someone encounters the same issue: |
hello where is that file exactly please ? ive been spending hours looking for it, how can i access that repository ? ty |
you mean where to find the requirements.txt file @Erreur-405 ? This depends on your setup and where/how you are encountering the error. HF spaces often have a requirements.txt file in the files tab, see e.g. this example space: https://huggingface.co/spaces/jadechoghari/OmniParser/tree/main |
This is an example with a model repo with a custom handler and a requirements.txt file in the files tab: https://huggingface.co/sergeipetrov/asrdiarization-handler/tree/main |
A dedicated inference endpoint using a custom handler just failed with the error below.
I think the cause is that
huggingface_hub
version 2.6.0 has removed thecached_download
method and the endpoint seems to use this latest version (?), buthuggingface-inference-toolkit
still uses an older versionhuggingface_hub[hf_transfer]==0.24.5
(source).The text was updated successfully, but these errors were encountered: