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

ERROR: Expected all tensors to be on the same device #1

Open
Mithadon opened this issue Sep 9, 2024 · 0 comments
Open

ERROR: Expected all tensors to be on the same device #1

Mithadon opened this issue Sep 9, 2024 · 0 comments

Comments

@Mithadon
Copy link

Mithadon commented Sep 9, 2024

First, thank you for sharing this. I think it's a function sorely lacking in auto1111/Forge.
It's not yet working for me though. I would appreciate your advice. I get the following error:

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

I'm using 4090 and 4080, in my ideal world I'd be able to use the VAE, all clips, and loras on the 4080. I'm not sure if the loras even can be on a different device, but I miss having VAE/clips on CUDA:1.

EDIT: It seems to work properly with T5 fp16. The problem is when using a GGUF quant of T5. Which is not as crucial now that I don't need to load it on the same GPU as the UNET.

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

1 participant