[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
571a0ef35f
commit
eabeff5aea
2 changed files with 2 additions and 5 deletions
|
|
@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue