flux icon indicating copy to clipboard operation
flux copied to clipboard

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

Open Quick-Eyed-Sky opened this issue 1 year ago • 3 comments
trafficstars

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 avatar Nov 07 '24 14:11 Quick-Eyed-Sky

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

Quick-Eyed-Sky avatar Nov 07 '24 14:11 Quick-Eyed-Sky

+1

wen020 avatar Nov 08 '24 09:11 wen020

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]

Quick-Eyed-Sky avatar Nov 09 '24 07:11 Quick-Eyed-Sky