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: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat1 in method wrapper... #3681

Open
karanjakhar opened this issue Sep 30, 2023 · 2 comments

Comments

@karanjakhar
Copy link

Describe the bug
I followed the steps from "how to contribute" and setting up Lugwig locally for development. When I run pytest I get
Screenshot from 2023-09-30 13-15-33

Environment (please complete the following information):

  • OS: Ubuntu
  • Version: 20.04
  • Python version: 3.10
  • Ludwig version: 0.8
@tgaddair
Copy link
Collaborator

Hey @karanjakhar, some of the tests have known issues when running on GPU. We have a PR in progress to fix these tests:

#3578

As a temporary workaround, can you try running these tests on CPU? It should work to do something like:

CUDA_VISIBLE_DEVICES="" pytest ...

cc @jeffkinnison

@karanjakhar
Copy link
Author

Most of these are solved with your suggestion. But I am getting this now:
Screenshot from 2023-10-01 14-29-21

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

2 participants