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

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

Open
sowmaster opened this issue Jan 25, 2025 · 0 comments

Comments

@sowmaster
Copy link

sowmaster commented Jan 25, 2025

Hi, I run the dpo code with the exact configuration provided for zephyr-7b-beta to reproduce the model zephyr-7b-dpo-full. But I am getting the following error:

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 index in method wrapper_CUDA__index_select)

Looks like either the model or data was not sent to cuda. What could be wrong? Thank you.

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