The role of savedir option in
|
savedir="./pretrained_model_checkpoints", |
confused me at first (I did not read the docstring carefully...)
What I thought it meant:
Pretrained models downloaded from Huggingface are stored into savedir.
What actually happens:
Pretrained models are downloaded into HUGGINGFACE_HUB_CACHE and simlinks are created into savedir.
Would you consider a PR that modifies those two lines to actually download models into savedir?
|
url = huggingface_hub.hf_hub_url(source, filename) |
|
fetched_file = huggingface_hub.cached_download(url, use_auth_token) |
using this cache_dir option: https://github.com/huggingface/huggingface_hub/blob/63fc9f81cd336ba1b8e88a35ce0be83b1199654a/src/huggingface_hub/file_download.py#L295
The role of
savediroption inspeechbrain/speechbrain/pretrained/fetching.py
Line 28 in a02f860
confused me at first (I did not read the docstring carefully...)
What I thought it meant:
Pretrained models downloaded from Huggingface are stored into
savedir.What actually happens:
Pretrained models are downloaded into
HUGGINGFACE_HUB_CACHEand simlinks are created intosavedir.Would you consider a PR that modifies those two lines to actually download models into
savedir?speechbrain/speechbrain/pretrained/fetching.py
Lines 108 to 109 in a02f860
using this
cache_diroption: https://github.com/huggingface/huggingface_hub/blob/63fc9f81cd336ba1b8e88a35ce0be83b1199654a/src/huggingface_hub/file_download.py#L295