Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
f04b603c
Commit
f04b603c
authored
Apr 09, 2025
by
Hyunsung Lee
Committed by
muyangli
Apr 19, 2025
Browse files
fix to escape cache reloading
parent
a23d2b69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
nunchaku/caching/diffusers_adapters/flux.py
nunchaku/caching/diffusers_adapters/flux.py
+1
-0
No files found.
nunchaku/caching/diffusers_adapters/flux.py
View file @
f04b603c
...
...
@@ -9,6 +9,7 @@ from ...caching import utils
def
apply_cache_on_transformer
(
transformer
:
FluxTransformer2DModel
,
*
,
residual_diff_threshold
=
0.12
):
if
getattr
(
transformer
,
"_is_cached"
,
False
):
transformer
.
cached_transformer_blocks
[
0
].
update_threshold
(
residual_diff_threshold
)
return
transformer
cached_transformer_blocks
=
nn
.
ModuleList
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment