Skip to content
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

download_model warning #1196

Open
benbro opened this issue Dec 10, 2024 · 1 comment
Open

download_model warning #1196

benbro opened this issue Dec 10, 2024 · 1 comment

Comments

@benbro
Copy link

benbro commented Dec 10, 2024

I'm getting a warning when loading a model with faster_whisper.utils.download_model in v1.1.0

from faster_whisper.utils import download_model
download_model('tiny','/tiny')
/usr/local/lib/python3.11/dist-packages/huggingface_hub/file_download.py:834: UserWarning: `local_dir_use_symlinks` parameter is deprecated and will be ignored. The process to download files to a local folder has been updated and do not rely on symlinks anymore. You only need to pass a destination folder as`local_dir`.
For more details, check out https://huggingface.co/docs/huggingface_hub/main/en/guides/download#download-files-to-local-folder.

When running download_model the second time with the same arguments I'm getting an error. Should it detect that the model is in the local cache and not try to download it again? I'm downloading the model to a docker volume which might explain the permission issue.

PermissionError: [Errno 13] Permission denied: '/tiny/.cache/huggingface/download/config.json.lock'
make: *** [Makefile:165: transcript] Error 1
@Purfview
Copy link
Contributor

Try older huggingface-hub:
pip install huggingface-hub==0.19.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants