Skip to content

Commit 36ba3c8

Browse files
committed
fix support for ComfyUI_PuLID_Flux_ll
1 parent a7caa12 commit 36ba3c8

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

first_block_cache.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def create_patch_flux_forward_orig(model,
565565
from comfy.ldm.flux.model import timestep_embedding
566566

567567
def call_remaining_blocks(self, blocks_replace, control, img, txt, vec, pe,
568-
attn_mask, ca_idx, timesteps):
568+
attn_mask, ca_idx, timesteps, transformer_options):
569569
original_hidden_states = img
570570

571571
extra_block_forward_kwargs = {}
@@ -595,7 +595,8 @@ def block_wrap(args):
595595
"pe": pe,
596596
**extra_block_forward_kwargs
597597
}, {
598-
"original_block": block_wrap
598+
"original_block": block_wrap,
599+
"transformer_options": transformer_options
599600
})
600601
txt = out["txt"]
601602
img = out["img"]
@@ -644,7 +645,8 @@ def block_wrap(args):
644645
"pe": pe,
645646
**extra_block_forward_kwargs
646647
}, {
647-
"original_block": block_wrap
648+
"original_block": block_wrap,
649+
"transformer_options": transformer_options
648650
})
649651
img = out["img"]
650652
else:
@@ -741,7 +743,8 @@ def block_wrap(args):
741743
"pe": pe,
742744
**extra_block_forward_kwargs
743745
}, {
744-
"original_block": block_wrap
746+
"original_block": block_wrap,
747+
"transformer_options": transformer_options
745748
})
746749
txt = out["txt"]
747750
img = out["img"]
@@ -799,6 +802,7 @@ def block_wrap(args):
799802
attn_mask,
800803
ca_idx,
801804
timesteps,
805+
transformer_options,
802806
)
803807
set_buffer("hidden_states_residual", hidden_states_residual)
804808
torch._dynamo.graph_break()

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "wavespeed"
33
description = "The all in one inference optimization solution for ComfyUI, universal, flexible, and fast."
4-
version = "1.1.6"
4+
version = "1.1.7"
55
license = {file = "LICENSE"}
66

77
[project.urls]

0 commit comments

Comments
 (0)