From 51b4318a3e5b2dc2b3df93f6e2fc2decc254a320 Mon Sep 17 00:00:00 2001 From: toilaluan Date: Sat, 15 Nov 2025 05:13:33 +0000 Subject: [PATCH] allow special cache ids only --- src/diffusers/hooks/taylorseer_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/hooks/taylorseer_cache.py b/src/diffusers/hooks/taylorseer_cache.py index 89d6da3074..3c5d0a2f39 100644 --- a/src/diffusers/hooks/taylorseer_cache.py +++ b/src/diffusers/hooks/taylorseer_cache.py @@ -273,7 +273,7 @@ def apply_taylorseer_cache(module: torch.nn.Module, config: TaylorSeerCacheConfi logger.debug(f"Special cache identifiers: {special_cache_identifiers}") for name, submodule in module.named_modules(): - if skip_compute_identifiers and special_cache_identifiers: + if (skip_compute_identifiers and special_cache_identifiers) or (special_cache_identifiers): if any(re.fullmatch(identifier, name) for identifier in skip_compute_identifiers) or any( re.fullmatch(identifier, name) for identifier in special_cache_identifiers ):