support for MeanFlow #11870
Unanswered
prakashjayy
asked this question in
Q&A
Replies: 2 comments
-
As of now I doing this from diffusers.models.attention_processor import AttnProcessor
for blocks in model.down_blocks:
if hasattr(blocks, "attentions"):
for attn in blocks.attentions:
attn.processor = AttnProcessor()
for blocks in model.up_blocks:
if hasattr(blocks, "attentions"):
for attn in blocks.attentions:
attn.processor = AttnProcessor()
model.mid_block.attentions[0].processor = AttnProcessor()
print("processor set") |
Beta Was this translation helpful? Give feedback.
0 replies
-
my current approach is here https://github.com/prakashjayy/genai/blob/main/flow/02_mean_flow.ipynb |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The meanflow paper requires two things
support for multiple time embeddings
my idea is to have a parameter called
multiple_time_embeddings
and in forward we can change this as
calculating jvp
using
AttnProcessor2_0
throws the following errorRuntimeError: derivative for aten::_scaled_dot_product_efficient_attention_backward is not implemented
right now there is no way to make
AttnProcessor
default. it is automatically selected usinghasattr(F, "scaled_dot_product_attention") and self.scale_qk
.what is the way forward for this?
Beta Was this translation helpful? Give feedback.
All reactions