stable-diffusion-webui-tensorrt icon indicating copy to clipboard operation
stable-diffusion-webui-tensorrt copied to clipboard

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm

Open AdamBlazer opened this issue 1 year ago • 3 comments

I have this error, when i click on button Convert Unet - RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm

Can you help me to solve this please ?

AdamBlazer avatar Jul 08 '23 19:07 AdamBlazer

Hello, How to solve this?

wangweilovelife avatar Jul 20 '23 03:07 wangweilovelife

I don't quite remember but I think I solved it by removing the space between --xformers and the equal sign set COMMANDLINE_ARGS=--xformers

See if that works for you.

CaptainDoubleYou avatar Jul 28 '23 18:07 CaptainDoubleYou

I don't quite remember but I think I solved it by removing the space between --xformers and the equal sign set COMMANDLINE_ARGS=--xformers

See if that works for you.

Didn't do it for me sadly.

DuckersMcQuack avatar Oct 07 '23 23:10 DuckersMcQuack