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

Accelerate with AMD GPUs #512

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

eliranwong
Copy link

@eliranwong eliranwong commented May 28, 2024

This pull request is created to extend piper support of AMD GPUs or ROCm-enabled GPUs via 'ROCMExecutionProvider' or 'MIGraphXExecutionProvider'.

Original issue is recorded at: #483

To support ROCm-enabled GPUs via 'ROCMExecutionProvider' or 'MIGraphXExecutionProvider':

  1. Install piper-tts

pip install piper-tts

  1. Uninstall onnxruntime

pip uninstall onnxruntime

  1. Install onnxruntime-rocm

pip3 install https://repo.radeon.com/rocm/manylinux/rocm-rel-6.0.2/onnxruntime_rocm-inference-1.17.0-cp310-cp310-linux_x86_64.whl

Remarks: Wheel files that support different ROCm versions are available at: https://repo.radeon.com/rocm/manylinux

To verify:

python3

$ import onnxruntime
$ onnxruntime.get_available_providers()

Output:

['MIGraphXExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider']

To accelerate with AMD GPUs:

piper --migraphx

To accelerate with ROCm-enabled GPUs:

piper --rocm

Remarks: Tested on Ubuntu 22.04.4 + Kernel 6.6.32 + ROCm 6.0.2

Setup notes are available at: https://github.com/eliranwong/MultiAMDGPU_AIDev_Ubuntu/tree/main

@GrumpyMeow
Copy link

This seems like a legit Pull Request. Having this Pull request merged, would be appreciated.

@kvrban
Copy link

kvrban commented Jul 15, 2024

Can you show benchmarks using this solution?

@remon-nashid
Copy link

crickets

@eliranwong
Copy link
Author

It appears that the developer does not care much about AMD users.

@remon-nashid
Copy link

It appears that the developer does not care much about AMD users.

I'd understand the lack of interest in AMD if he's a sole maintainer who uses nvidia, but I don't get why he'd ignore such a well prepared PR to improve the capabilities of piper! I think I'll use your fork @eliranwong for now.

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

Successfully merging this pull request may close these issues.

4 participants