1
0
Fork 0

fix(api): remove prefix before downloading for HF hub

This commit is contained in:
Sean Sube 2023-03-19 23:30:31 -05:00
parent 19712262e6
commit f779fbd5cc
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ def fetch_model(
# from_pretrained has a bunch of useful logic that snapshot_download by itself down not
if hf_hub_fetch:
return hf_hub_download(
repo_id=source,
repo_id=hub_source,
filename=hf_hub_filename,
cache_dir=cache_path,
force_filename=f"{name}.bin",