Hi, this is my first issue here so I hope I report correctly enough.
Before starting, I would like to give you my congrats for the amazing work done here.
The issue is just a warning, but it may be better to get rid of this stuff before it becomes problematic
Before reporting a bug:
First, please search previous issues
and the FAQ and be sure this hasn't
been answered elsewhere.
🐛 Bug
using cached_download raises a warning:
huggingface_hub/file_download.py:588: FutureWarning: `cached_download` is the legacy way to download files from the HF hub, please consider upgrading to `hf_hub_download`
To Reproduce
BaseModel.from_pretrained(model_path)
where model_path is a path that doesn't exist locally.
Expected behavior
Warning message:
huggingface_hub/file_download.py:588: FutureWarning: `cached_download` is the legacy way to download files from the HF hub, please consider upgrading to `hf_hub_download`
Environment
Package versions
I have 0.5.3 but the same function is still used in the main branch
Hi, this is my first issue here so I hope I report correctly enough. Before starting, I would like to give you my congrats for the amazing work done here.
The issue is just a warning, but it may be better to get rid of this stuff before it becomes problematic
Before reporting a bug:
First, please search previous issues and the FAQ and be sure this hasn't been answered elsewhere.
🐛 Bug
using
cached_download
raises a warning:To Reproduce
where
model_path
is a path that doesn't exist locally.Expected behavior
Warning message:
Environment
Package versions
I have 0.5.3 but the same function is still used in the main branch
Additional info