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

Andi2022HH
Fri, 23 Jun 2023 10:46:24 +0000

I found the code great. Sorry maybe this is a stupid question, how can I use the generated “model(**tokenizer(“Hello World”, return_tensors=“pt”))” to get some text out of it?