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

torch is not detecting any cuda. #463

Open
angela804 opened this issue Oct 19, 2023 · 9 comments
Open

torch is not detecting any cuda. #463

angela804 opened this issue Oct 19, 2023 · 9 comments

Comments

@angela804
Copy link

curious but whenever I train a model, it's always using CPU and never gpu. I'm confused why it's not detecting any cuda when i have cuda already installed

@IshanG97
Copy link
Contributor

IshanG97 commented Jan 7, 2024

Having a similar issue. Are you using WSL?

@angela804
Copy link
Author

Having a similar issue. Are you using WSL?

there's something wrong with the CUDA and the Pytorch versions. I think my CUDAs are from an older version so I just reinstalled all of my CUDAs and it worked

@hanyiwei799
Copy link

Having a similar issue. Are you using WSL?

there's something wrong with the CUDA and the Pytorch versions. I think my CUDAs are from an older version so I just reinstalled all of my CUDAs and it worked

My cuda is already 11.8 and still have this problem

@hanyiwei799
Copy link

Having a similar issue. Are you using WSL?

there's something wrong with the CUDA and the Pytorch versions. I think my CUDAs are from an older version so I just reinstalled all of my CUDAs and it worked

Can you tell me more about how you solved it

@BenjaminSchaar
Copy link

I also have this problem cuda canno't find any GPUS even though they are existing

@BenjaminSchaar
Copy link

print(torch.cuda.is_available())
print(torch.version.cuda)

-> this always shows none available

@angela804
Copy link
Author

@hanyiwei799 @BenjaminSchaar
solved this one around november last year so my memory is kind of boggly, but, as far as I remember, cuda and pytorch versions were conflicting.
so, instead of just installing the pytorch from here, I uninstalled my cuda first, and reinstalled it again with latest versions.
image

@angela804
Copy link
Author

you can not follow that command, i just show that to make sure we're on the same thing

@BenjaminSchaar
Copy link

thanks alot i will try it!

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

4 participants