[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-07-27 12:30:24 +00:00
commit eabeff5aea
2 changed files with 2 additions and 5 deletions

View file

@ -586,8 +586,7 @@ def _weightful_snapshot_path(repo_path: Path) -> Optional[Path]:
non-GGUF resolvers' complete-revision predicate)."""
return _newest_snapshot_where(
repo_path,
lambda names: "config.json" in names
and any(n.endswith(".safetensors") for n in names),
lambda names: "config.json" in names and any(n.endswith(".safetensors") for n in names),
)

View file

@ -5168,9 +5168,7 @@ async def _load_model_impl(
# (which performs no offline-mode check). GGUF sizing already reads
# the cached file under its own local-only handling.
_guard_identifier = (
config.path
if request.local_files_only and not config.is_gguf
else model_identifier
config.path if request.local_files_only and not config.is_gguf else model_identifier
)
await asyncio.to_thread(
_guard_chat_load_against_training,