-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Support for stable-diffusion-3-medium model #8482
Comments
Coming up in some hours ;) |
So, do we need to wait for an update of Diffusers? |
At some point in the near future the SD3 branch will be merged into diffusers which will add support for it. See this pull request for details. At the time of writing, diffusers-formatted weights (and control files like |
We will let everyone know once y'all are good to go. Till then, have patience :) |
It’s strange that Stability AI weren’t give you accessin advance |
The files for diffusers are up, but gated files will only be accessible from the Huggingface platform, as there is no way, afaik, to get access when running diffusers locally, and only downloading it with diffusers from HF. |
We can use the code from the HF space to run it without needing to use the repository that is gated behind SAI's approval. You will still need to be logged into Huggingface and request access to the first repository, but you shouldn't have to wait for approval. pip install git+https://github.com/huggingface/diffusers.git@sd3 Then... import torch
from diffusers import StableDiffusion3Pipeline
pipe = StableDiffusion3Pipeline.from_pretrained(
"stabilityai/stable-diffusion-3-medium",
revision="refs/pr/26",
torch_dtype=torch.float16,
)
pipe.to("cuda")
image = pipe(
prompt="a photo of a cat holding a sign that says hello world",
negative_prompt="",
num_inference_steps=28,
height=1024,
width=1024,
guidance_scale=7.0,
).images[0]
image.save("sd3_hello_world.png") Happy generating! |
You guys are awesome! |
Thanks a lot! |
Yeah. The documentation includes all optimization related bits :) |
Hmm... I can't get access to the gated files, even though I accepted everything, and I am logged in, but trying to access them from my local computer through Diffusers just doesn't remove the gate blocking. Neither does accessing a mirrored single file, I can download it, but because of the gate, it doesn't work. Gated files does not play well with Diffusers at all. |
can anyone run sd3 medium on colab free? i tried and it take out all the space. 78GB. WTF?? |
share your colab link...! |
I am trying locally and it takes around 20GB with float16 precision - you can go even low with bfloat16! |
Currently, loading the T5 text encoder separately fails with
... but you're probably aware of that ;) |
Seems to be fixed in the latest revision. |
@OlegRuban-ai Try SD3 for low VRAM systems: https://github.com/rupeshs/sd3-low-vram |
Closing as completed. |
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like.
Support SD3 medium model (https://huggingface.co/stabilityai/stable-diffusion-3-medium).
Describe alternatives you've considered.
It seems like this PR(#7232) is stale
The text was updated successfully, but these errors were encountered: