Instructions to use stabilityai/stable-diffusion-3-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use stabilityai/stable-diffusion-3-medium with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Inference
- Notebooks
- Google Colab
- Kaggle
how to use it within the python code ?
#35
by iben4 - opened
how to use it within the python code ?
i can't download the model and run it
you can't run it because the diffusers support isn't already added yet , it will be release in few hours
This comment has been hidden
import torch
model = "stabilityai/stable-diffusion-3-medium-diffusers"
pipe = StableDiffusion3Pipeline.from_pretrained(
model,
low_cpu_mem_usage=False,
torch_dtype=torch.float32,
use_safetensors=True,
...
)