Skip to content

tensor shape mismatching for SD3 basic pipeline with xformers #9681

Answered by a-r-r-o-w
shenzhiy21 asked this question in Q&A
Discussion options

You must be logged in to vote

I think we will be removing xformers support going forward in a future release, so support for it is not guaranteed to work out-of-the-box with newer models. This does look xformers-specific so I suspect it is due to us not having a SD3-specific xformers attention processor. It should be quite simple to create your own and use it by modifying the code here. Once you have created the attention processor, you can set it using: pipe.transformer.set_attn_processor(MyCustomXformersSD3AttnProcessor())

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shenzhiy21
Comment options

Answer selected by shenzhiy21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants