-
Notifications
You must be signed in to change notification settings - Fork 549
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
Does piper support AMD GPU acceleration with rocm? #483
Comments
I can see onnx runtime support AMD rocm, please read: https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/install-onnx.html But how to get it integrated into piper? |
From what I know, you need to modify and rebuild Piper, setting the execution-providers to your chosen ones. Best |
Appreciate your reply and help. May I ask for more information about:
|
Do you mean I need to manually edit this line: piper/src/python_run/piper/voice.py Line 53 in 078bf8a
|
|
So far, below is the easiest way that I found:
piper/src/python_run/piper/voice.py Line 53 in 078bf8a
to: providers=["ROCMExecutionProvider"] I am open to better solution. I would appreciate if the author of piper and support it directly, so that I don't need to manually edit the line. Many thanks. |
I read piper currently support --cuda argument. I would suggest to add --rocm argument to make piper better. |
Update: Created a pull request to add --migraphx and --rocm options to support AMD / ROCm-enabled GPUs. If the pull request is merged, AMD-GPUs users can run piper either 'piper --migraphx' or 'piper --rocm'. Before the pull request is merged, AMD-GPUs users can still workaround the issue with the following setup: To support ROCm-enabled GPUs via 'ROCMExecutionProvider' or 'MIGraphXExecutionProvider':
Remarks: Wheel files that support different ROCm versions are available at: https://repo.radeon.com/rocm/manylinux To verify:
Output:
Workaround:Manually edit the 'load' function in the file ../site-packages/piper/voice.py: From:
To:
|
Does this also work for training a new voice model (via the |
The PR works for inference. I haven't touched training part. |
I also wrote a tutorial to work with iGPU: |
I think for training it won't work, as piper is using PyTorch 1 and PyTorch only supports ROCm starting PyTorch2 (and only ROCm between 5.2 and 6.0) I am looking for an alternative on my end. I was digging into bark from suno.ai but not sure how to yet. |
Minor correction: PyTorch is up to support ROCm 6.1.3, the official AMD package. You may read https://github.com/eliranwong/MultiAMDGPU_AIDev_Ubuntu#install-pytorch |
Has anyone figured out how to train a model with AMD GPU? I get this error might be related
|
Does piper support AMD GPU acceleration with rocm?
The text was updated successfully, but these errors were encountered: