[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
93ec05ced2
commit
d5a18e5a00
1 changed files with 5 additions and 9 deletions
|
|
@ -300,14 +300,8 @@ class LlamaCppBackend:
|
|||
return None
|
||||
|
||||
# Get sizes for all GGUF files
|
||||
path_infos = list(
|
||||
get_paths_info(hf_repo, gguf_files, token = hf_token)
|
||||
)
|
||||
sized = [
|
||||
(p.path, p.size)
|
||||
for p in path_infos
|
||||
if p.size and p.size > 0
|
||||
]
|
||||
path_infos = list(get_paths_info(hf_repo, gguf_files, token = hf_token))
|
||||
sized = [(p.path, p.size) for p in path_infos if p.size and p.size > 0]
|
||||
if not sized:
|
||||
return None
|
||||
|
||||
|
|
@ -491,7 +485,9 @@ class LlamaCppBackend:
|
|||
if total_download_bytes > free_bytes:
|
||||
# Try to find a smaller variant that fits
|
||||
smaller = self._find_smallest_fitting_variant(
|
||||
hf_repo, free_bytes, hf_token,
|
||||
hf_repo,
|
||||
free_bytes,
|
||||
hf_token,
|
||||
)
|
||||
if smaller:
|
||||
logger.info(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue