[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
c00eb20958
commit
557fc0674a
2 changed files with 4 additions and 1 deletions
|
|
@ -189,6 +189,7 @@ def resolve_dense_quant_candidate(
|
|||
prequant_available = False
|
||||
try:
|
||||
from .diffusion_prequant import local_prequant_path_ready, resolve_prequant_source
|
||||
|
||||
src = resolve_prequant_source(fam, scheme, path_override = prequant_path)
|
||||
# A request-supplied local path override is only usable if the loader will accept it
|
||||
# (allowlisted AND present); otherwise load_prequantized_transformer refuses it and
|
||||
|
|
|
|||
|
|
@ -125,7 +125,9 @@ def apply_step_cache(
|
|||
# reuse the CacheMixin FluxTransformer2DModel yet their __call__ opens no cache_context,
|
||||
# so engaging FBCache there would crash every default generation -- run uncached instead.
|
||||
if not _pipeline_opens_cache_context(pipe):
|
||||
_warn(logger, mode, RuntimeError("pipeline __call__ opens no cache_context; running uncached"))
|
||||
_warn(
|
||||
logger, mode, RuntimeError("pipeline __call__ opens no cache_context; running uncached")
|
||||
)
|
||||
return None
|
||||
try:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue