From cf42429f96c56e6249071bef6b60d8d73adf6e45 Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Tue, 18 Nov 2025 18:59:01 +0000 Subject: [PATCH] Remove "local_dir_use_symlinks" from download_model() (#1389) * Remove "local_dir_use_symlinks" from download_model() It's deprecated since huggingface_hub v0.23.0 and produce this warning: > /opt/hostedtoolcache/Python/3.9.24/x64/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py:202: UserWarning: The `local_dir_use_symlinks` argument is deprecated and ignored in `snapshot_download`. Downloading to a local directory does not use symlinks anymore. * Bump huggingface_hub requirement to v0.23 --- faster_whisper/utils.py | 1 - requirements.txt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/faster_whisper/utils.py b/faster_whisper/utils.py index 8ddbb49..dc806ea 100644 --- a/faster_whisper/utils.py +++ b/faster_whisper/utils.py @@ -105,7 +105,6 @@ def download_model( if output_dir is not None: kwargs["local_dir"] = output_dir - kwargs["local_dir_use_symlinks"] = False if cache_dir is not None: kwargs["cache_dir"] = cache_dir diff --git a/requirements.txt b/requirements.txt index 9a15d6a..46f957c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ ctranslate2>=4.0,<5 -huggingface_hub>=0.21 +huggingface_hub>=0.23 tokenizers>=0.13,<1 onnxruntime>=1.14,<2 av>=11 -tqdm \ No newline at end of file +tqdm