-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
(WSL2) Pipelines loaded with torch_dtype=torch.float16
cannot run with cpu
device. It is not recommended to move them to cpu
as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16
operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16
argument, or use another device for inference.
#1659
Comments
Hey @darkanubis0100, Could you please provide a reproducible code snippet? Note that you cannot run FP16 on CPU. Simply remove |
Yes, in fact the code I use is from a foreign Notebook (The one from DotCSV). It seems strange to me that it was working fine until I decided to use the img2img module, for some reason it is using the CPU instead of the GPU to perform that task. That's normal? I already attached the used notebook.
|
Surprised OpenVINO and ONNX haven't been brought up for FP16 support on Diffusers. Assuming the model is convertible, it'd work just fine. |
In theory, in practice I can't find a way to execute img2img even changing torch_dtype=torch.float16 to torch_dtype=torch.float32 |
Another output that I get is:
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
I get those two errors when I try to use the img2img functionality of SDv2.
The first result is thrown in the Notebook console (JupyterLab), the second one is thrown in the web interface after a few seconds pass during the generation of the new image. So far this only happens when I use img2img, the rest of the modules seem to work fine.
The text was updated successfully, but these errors were encountered: