[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-03-14 08:59:44 +00:00 committed by Daniel Han
commit d5a18e5a00

View file

@ -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(