Skip to content

Commit

Permalink
feat: Enable recursive search of HFFS.ls when using from_pretrained (
Browse files Browse the repository at this point in the history
…#1656)

Enable rercursive ls for hffs. Otherwise models in subfolder wouldn't be found.

Co-authored-by: Andrei <abetlen@gmail.com>
  • Loading branch information
benHeid and abetlen authored Aug 7, 2024
1 parent 131db40 commit 5e39a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama_cpp/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ def from_pretrained(

files = [
file["name"] if isinstance(file, dict) else file
for file in hffs.ls(repo_id)
for file in hffs.ls(repo_id, recursive=True))
]

# split each file into repo_id, subfolder, filename
Expand Down

0 comments on commit 5e39a85

Please sign in to comment.