-
Notifications
You must be signed in to change notification settings - Fork 897
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
SD3.5 - Workaround for Do not promote FP8 error #2220
base: sd35
Are you sure you want to change the base?
Conversation
Make sure both tensors are on the same device and cast to FP32 to avoid the do not promote FP8 error and allow FP8 models to work
There is SD3.5 medium version of it. I do recommend it to use it. |
What's left to add 3.5 medium support... this is needed |
Hype Train! |
I check this dang github page every single day hoping there'll be news about this |
When I posted this workaround I figured someone would fix it properly in matter of days. I was mucking around with SageAttention which magically fixed the slow generation, and I would've added that here too but its too hacky. Attention needs to be split out so it's all handled in the one place, back in the Auto1111 Dreambooth days I made a wrapper function for the model that worked well but not sure if that's feasible with this implementation. |
by changing
|
Yeah to be honest I just made it cast to FP32 because it was most likely to just work. I just wanted to try out the model while I waited for official support so when the first thing I tried worked it was enough to satisfy my curiosity. |
How did you made it work? |
Understood,It’s so great you can find a quick workaround to get FP8 support, even if it's a temporary turnaround fix. Thanks for sharing your solution. Now, let's keep our fingers crossed for the Forge official SD3.5 medium release. I've run a few tests, but unfortunately, without much luck in getting it to work. Let‘s hope Lllyasviel will be able to make it happen soon, despite his busy schedule." @saunderez |
simply mannuly change the code https://github.com/lllyasviel/stable-diffusion-webui-forge/pull/2220/files |
i did that i get "cant recognize model..." |
First , |
Here not work for me. See my forge version: app: stable-diffusion-webui-forge.git My branch is origin/main I have than chance my branch by sd35 (main...sd35) ? |
simply |
Well im using AMD forge . Fork of this. I did edit files but all i get is --can't recognize model. |
test worked on AMD GPU in Zluda way ,it works. perhaps need update your huggingface guess #2161 (comment) |
Workaround the FP8 Do Not Promote error by casting to FP32 first.
Check both tensors are on the same device before using.