You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add torch_dtype=torch.float16 to any model the Python kernel stops/crashes when trying to generate images, works well when I don't add that setting. I have a Mac M1 so I run with the .to("mps").
Reproduction
Recreate bug code
from diffusers import StableDiffusionPipeline
import torch
MODEL_VERSION = "runwayml/stable-diffusion-v1-5"
pytorch_pipe = StableDiffusionPipeline.from_pretrained(MODEL_VERSION,
torch_dtype=torch.float16 # Remove this line and it works
).to("mps")
image = pytorch_pipe(
prompt="photo of a man standing next to a wall",
width=512,
height=512,
num_inference_steps=50,
num_images_per_prompt=1,
guidance_scale=7
)
Logs
No response
System Info
diffusers version: 0.20.0.dev0
(installed diffusers latest dev version to see if it was working there, but issue is also present in latest official release)