Skip to content

download_model warning #1196

Description

@benbro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions