-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on MPS: AttnProcessor2_0.__call__() got an unexpected keyword argument 'real_attn_probs' #3
Comments
Not sure if it's related, but I had to manually install "scikit-learn" rather than "sklearn" as the latter isn't accessible on MPS (deprecated). |
You are doing the right thing with |
I think I might know the error. Are you using pytorch with version >= 2.0? |
Yeah. Do I need to down/upgrade? |
I'm running Diffusers 0.18.2. |
Let me see if I can reproduce and fix it on my end first! |
Sounds great, thanks! |
Hey @jwooldridge234, I was able to reproduce the error and make a fix for using pytoch>=2.0. It should work now. Could you try to update the extension and see if the error is gone or not? Thanks! |
@songweige It is! Thanks for getting that working. Unfortunately hit another error:
What are the hardware requirements for this method btw? It took 6 minutes to get the attention maps. I have 8GB vram. |
@songweige Got past that by casting to "mps" whenever it specified "cuda" and changing the .cuda() calls to .to('mps'). The main problem is how slow it is at this point. It gets past the attention map stage after ~6-7 minutes and then moves to (I assume) the token maps. I finally killed it after it ran for over 20 minutes with no change. Maybe my GPU just isn't powerful enough to handle it? |
Glad it works!!! And thanks for debugging the code. I didn't consider the scenario of running it on mac before. Regarding the time, it sounds like you have done the plain-text-to-image part and moved to the rich-text-to-image part. The time of that part depends on what and how many rich-text formats you use in the text prompt. Usually, font, footnote, and font size are the fastest. Color is a lot slower as it requires some gradient computation. Maybe try to reduce the steps? Also, I'm curious how long does it take for you to run normal Stable Diffusion sampling in your setting? |
@songweige I will try running without any rich text and reducing the steps, and see if I can get the gen time down. Thanks! |
Going to close this as I believe you resolved all the issues I was having. :) |
Hey, just tried running and I got this error when running runwayml/stable-diffusion-v1-5. Happened after restarting as well. I'm running the latest Auto1111 version on MacOS. Let me know if there's anything else I can do to help debug.
The text was updated successfully, but these errors were encountered: