Skip to content

Commit 5e39a85

Browse files
benHeidabetlen
andauthored
feat: Enable recursive search of HFFS.ls when using from_pretrained (#1656)
Enable rercursive ls for hffs. Otherwise models in subfolder wouldn't be found. Co-authored-by: Andrei <[email protected]>
1 parent 131db40 commit 5e39a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: llama_cpp/llama.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ def from_pretrained(
21602160

21612161
files = [
21622162
file["name"] if isinstance(file, dict) else file
2163-
for file in hffs.ls(repo_id)
2163+
for file in hffs.ls(repo_id, recursive=True))
21642164
]
21652165

21662166
# split each file into repo_id, subfolder, filename

0 commit comments

Comments
 (0)