[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-04 09:45:36 +00:00
commit df8c128fe3
4 changed files with 17 additions and 13 deletions

View file

@ -996,7 +996,10 @@ class DiffusionBackend:
# as-is, so auto is the DEFAULT. An explicit "none"/"off" pins
# GGUF-as-is and an explicit scheme pins that scheme. The overwritten
# "auto" still records source=auto in the resolved provenance.
if transformer_quant is None or str(transformer_quant).strip().lower() in ("", "auto"):
if transformer_quant is None or str(transformer_quant).strip().lower() in (
"",
"auto",
):
transformer_quant = TQ_AUTO
# Default-on fast path: load the DENSE bf16 transformer and torchao-quantise it