-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
ROCm support for AMD GPUs on Linux #1248
Conversation
* Added requirements for AMD GPUs * Updated README with instructions on how to use RVC with ROCm
ROCm support for AMD GPUs on Linux
Is there a specific version of the AMD drivers to use? Oftentimes, ML packages like to break across minor version and environments. If you have tested it to work on a specific version, can you provide it? |
I'm using the latest mesa 23.1.6-3 on arch. For ROCm i'm running version 5.6.0-1 and i've tested pytorch with ROCm 5.6 aswell as with ROCm 5.4.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is always welcomed to provide a detailed document.
If you are using Windows or macOS, you can download and extract `RVC-beta.7z` to use RVC directly by using `go-web.bat` on windows or `sh ./run.sh` on macOS to start Webui. | ||
|
||
## ROCm Support for AMD graphic cards (Linux only) | ||
To use ROCm on Linux install all required drivers as described [here](https://rocm.docs.amd.com/en/latest/deploy/linux/os-native/install.html). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth mentioning that the step "2. Add the AMDGPU Repository and Install the Kernel-mode Driver" can be skipped on most Linux distributions since they'll include the AMD GPU driver. Not only that, but doing this can actually harm your current installation.
AMD GPU is recognized at startup now, but "train" tab still shows "no supported GPU". All GPU ID fields are empty, and if I manually set them to "0" the GPU still does not get utilized, neither in pitch extraction nor in training (which immediately errors out)
|
Posted in AMD Segmentation Fault as well as here for visibility. So, after much trial and error, I got this working, I will list the instructions below on how I got Training working on an AMD RX 6750 XT on Ubuntu Desktop 22.04.3 LTS as per Some notes: I downloaded the code directly, not a release version, it should work on a release version, but I downloaded the code, ran through the build instructions etc. A big thanks to this person on Reddit who wrote the original base instructions I used and tweaked for RVC Orion_light on Reddit ALSO, I haven't tested rmvpe or rmvpe_gpu as I forgot to get the pretrain's for them, but it should work, side note I believe rmvpe was having issues with audio longer than 3 minutes, at least I was. Install Notes:
After booting back into Ubuntu, we will install ROCm and Pytorch.
Next we will build RVC V2 from source, pretty self explanatory via the official docs, but will retype them here as there is some extra stuff with AMD on Linux
Note about the interface: I had to use Harvest like instead of rmvpe or rmvpe_gpu becuase I forgot to download that model. Also for GPU indexes I put At a batch size of 16 and training 300 Epochs I'm using 99% of my GPU as indicated by GPU% and my temperature is around the low to mid 70s in celsius, I also do have some Coil Whine (Reference AMD GPU). It also takes about 30-40 seconds per Epoch. I hope this helped someone trying to set this up and train with their AMD GPU on Linux! |
is it possible to run RVC on AMD in Windows ? I have RX6800 XT but console says no supported Nvidia GPU found |
Pull request checklist
PR type
Description
Screenshot
Localhost url to test on
Jira Link
Ticket