We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbb8f9 commit 066638cCopy full SHA for 066638c
llama_cpp/llama.py
@@ -2308,11 +2308,14 @@ def from_pretrained(
2308
2309
(matching_additional_file,) = matching_additional_files
2310
2311
+ matching_additional_subfolder = str(Path(matching_additional_file).parent)
2312
+ matching_additional_filename = Path(matching_additional_file).name
2313
+
2314
# download the additional file
2315
hf_hub_download(
2316
repo_id=repo_id,
- filename=matching_additional_file,
- subfolder=subfolder,
2317
+ filename=matching_additional_filename,
2318
+ subfolder=matching_additional_subfolder,
2319
local_dir=local_dir,
2320
local_dir_use_symlinks=local_dir_use_symlinks,
2321
cache_dir=cache_dir,
0 commit comments