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
This commit is contained in:
Purfview
2025-11-18 18:59:01 +00:00
committed by GitHub
parent 65882eee9f
commit cf42429f96
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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
tqdm