-
-
Notifications
You must be signed in to change notification settings - Fork 178
Add AMD ROCm support and documentation. #272
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
Open
keybangz
wants to merge
14
commits into
nomadkaraoke:main
Choose a base branch
from
keybangz:amd-rocm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e4df6ec
Add AMD ROCm platform support
keybangz 2d7af4b
Improve ROCm installation process and add PyTorch version checks
keybangz b18b0f2
ROCm GPU support.
keybangz d51648f
Update for PR review.
keybangz c184b76
Remove duplicate README content.
keybangz 460a43f
Create utils.py
keybangz 92d55a4
Update debug_rocm_issues.py
keybangz 1dadc0b
Delete debug_results.txt
keybangz 5525800
Create debug_minimal.py
keybangz dc7a30b
Fix merge conflicts
keybangz 053532e
Merge branch 'main' into amd-rocm
keybangz 9e368f9
More merge fixes.
keybangz c543b62
Fix ROCm fallback, ensemble guard, __init__ params, yaml.safe_load, a…
keybangz 328cc26
Revert to FullLoader with context manager for model YAML with Python …
keybangz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| # Andrew env | ||
| .DS_Store | ||
| .vscode | ||
| debug_results.txt | ||
|
|
||
| # Andrew functional adds | ||
| /tracks/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Use ROCm base image with Python | ||
| FROM rocm/dev-ubuntu-22.04:7.2-complete | ||
|
|
||
| # Set the working directory in the container | ||
| WORKDIR /workdir | ||
|
|
||
| # Install necessary packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ffmpeg \ | ||
| python3 \ | ||
| python3-pip \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN python3 -m pip install --upgrade pip | ||
|
|
||
| # Install PyTorch with ROCm support | ||
| RUN --mount=type=cache,target=/root/.cache \ | ||
| pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.2 | ||
|
|
||
| # Install audio-separator with GPU support | ||
| RUN --mount=type=cache,target=/root/.cache \ | ||
| pip3 install "audio-separator[gpu]" onnxruntime-rocm | ||
|
|
||
| # Default environment variables for AMD RX 6600 series (gfx1032) | ||
| # Override these for other GPUs: | ||
| # RX 7900: HSA_OVERRIDE_GFX_VERSION=11.0.0, PYTORCH_ROCM_ARCH=gfx1100 | ||
| # MI250X: HSA_OVERRIDE_GFX_VERSION=9.4.2, PYTORCH_ROCM_ARCH=gfx90a | ||
| ARG HSA_OVERRIDE_GFX_VERSION=10.3.2 | ||
| ARG PYTORCH_ROCM_ARCH=gfx1030 | ||
| ENV HSA_OVERRIDE_GFX_VERSION=${HSA_OVERRIDE_GFX_VERSION} | ||
| ENV PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} | ||
|
|
||
| # Run audio-separator when the container launches | ||
| ENTRYPOINT ["audio-separator"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.