-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
PyTorch 2.3.0 Incompatibility with Current Diffusers Library #7950
Comments
The solution is to downgrade the torch version to v2.1.2. |
In Google Colab's T4, one is able to use |
(base) tides@VM-112-2-ubuntu:~/StableDiffusionNotebooks$ nvidia-smi |
You also tried installing the torch in a fresh new environment, right? |
yes |
Describe the bug
When running the StableDiffusionXLPipeline with a specific model file (Clay_SDXL.safetensors), inference works correctly on CPU but results in a segmentation fault when run on GPU. Below are the specific steps and configurations that lead to this issue.
Reproduction
import torch
from diffusers import StableDiffusionXLPipeline
pipeline = StableDiffusionXLPipeline.from_single_file('/data1/tides/sd/SDXL.safetensors', torch_dtype=torch.float16)
pipeline.to('cuda:2')
result_image = pipeline(prompt='girl')
Logs
System Info
Python Version: 3.9.19
PyTorch Version: 2.3.0+cu118
CUDA Version: 11.8
Diffusers Version: 0.27.2
Operating System: Ubuntu
Who can help?
No response
The text was updated successfully, but these errors were encountered: