Skip to content
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

New error: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #191

Open
Quick-Eyed-Sky opened this issue Nov 7, 2024 · 3 comments

Comments

@Quick-Eyed-Sky
Copy link

I made a colab for FLUX.dev and it worked perfectly, but today I get this error, what has changed?

"Skipping this image and continuing...
An error occurred during image generation: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and CPU!"

@Quick-Eyed-Sky
Copy link
Author

I explored a lot, and the problems come maybe from a diffusers version...

@wen020
Copy link

wen020 commented Nov 8, 2024

+1

@Quick-Eyed-Sky
Copy link
Author

Found this, I'm testing it now.

Issue appears to be with diffusers . Resolution was to revert to an older version by modifying requirements.txt and using this version:

git+https://github.com/huggingface/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants