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

How do I use my [AMD] GPU #181

Open
NiuAWSM opened this issue Jul 8, 2024 · 3 comments
Open

How do I use my [AMD] GPU #181

NiuAWSM opened this issue Jul 8, 2024 · 3 comments

Comments

@NiuAWSM
Copy link

NiuAWSM commented Jul 8, 2024

Hello!
Im having a blast training the AI! :D
Im running the training on win11 right now. It works, but my CPU is so much worse than my GPU...
What do I have to do to run it on my 7900xtx?
I followed the win guide to setup the project.
Help is much appreciated^^ :)
Thanks!

@PWhiddy
Copy link
Owner

PWhiddy commented Jul 8, 2024

Hi!

Generally ML frameworks like pytorch (which stable baselines and therefore this repo uses) don't have great support for non-nvidia gpus.

I'm not sure if using an amd gpu with pytorch on windows as possible at all. You might be able to get it to work by using windows subsystem for linux (WSL) and installing the ROCm version of pytorch, but it might be a bit of a process and I have not tested it myself.

Hope that's helpful! Do report back if you end up trying it :)

@NiuAWSM
Copy link
Author

NiuAWSM commented Jul 9, 2024

Hey thanks for answering!
I got pytorch 2.1.2+rocm6.1.3 working on WSL.
how do I use GPU instead of CPU?

@PWhiddy PWhiddy changed the title How do I use my GPU How do I use my [AMD] GPU Jul 9, 2024
@PWhiddy
Copy link
Owner

PWhiddy commented Jul 9, 2024

For others seeing this issue, following these instructions seemed to do the trick

https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/howto_wsl.html

if this is installed correctly the gpu should be used automatically

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