[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-05 04:42:48 +00:00
commit 694178a35e
2 changed files with 2 additions and 5 deletions

View file

@ -1086,9 +1086,7 @@ class DiffusionBackend:
pipe_kwargs = {"torch_dtype": dtype, "transformer": transformer}
if hf_token:
pipe_kwargs["token"] = hf_token
pipe = pipeline_cls.from_pretrained(
_base_local_dir or base, **pipe_kwargs
)
pipe = pipeline_cls.from_pretrained(_base_local_dir or base, **pipe_kwargs)
# Resolve the effective speed mode: GGUF models default to the
# near-lossless `default` profile (compile is ~2.2x and sits below

View file

@ -2136,8 +2136,7 @@ def test_prefetch_returns_snapshot_dir_for_manifest(monkeypatch):
)
assert root == "/cache/snap"
assert (
backend._prefetch_files("base/repo", None, "base/repo", ["vae/x.safetensors"], None)
is None
backend._prefetch_files("base/repo", None, "base/repo", ["vae/x.safetensors"], None) is None
)