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

RuntimeError: Input tensors need to be on the same GPU, but found the following tensor and device combinations: #18

Open
kristosh opened this issue Feb 28, 2025 · 0 comments

Comments

@kristosh
Copy link

When I am trying to run the notebook on linear probing which runs smoothly after installing your package transformers-heads, I am getting into the following issue in the the like regarding training:

RuntimeError: Input tensors need to be on the same GPU, but found the following tensor and device combinations:
 [(torch.Size([1, 884736]), device(type='cuda', index=1)), (torch.Size([27648]), device(type='cuda', index=0)), (torch.Size([2304, 768]), device(type='cuda', index=1))]

How can I cope with this issue in my case and why it is happening for me?

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