-
Notifications
You must be signed in to change notification settings - Fork 22
feat: Enhance service management scripts and add Strix Halo support #249
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
0xrushi
wants to merge
3
commits into
SimpleOpenSoftware:dev
Choose a base branch
from
0xrushi:feat/addstrixhalo
base: dev
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
3 commits
Select commit
Hold shift + click to select a range
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| FROM docker.io/kyuz0/vllm-therock-gfx1151:sha-039484a | ||
|
|
||
| ARG PYTORCH_CUDA_VERSION=strixhalo | ||
| ENV PYTORCH_CUDA_VERSION=${PYTORCH_CUDA_VERSION} | ||
|
|
||
| # Install system dependencies | ||
| RUN set -eux; \ | ||
| dnf -y install \ | ||
| gcc gcc-c++ make git ffmpeg curl libjpeg-turbo-devel zlib-devel libpng-devel; \ | ||
| dnf -y clean all | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Install uv | ||
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv | ||
|
|
||
| # Copy dependency files first (for better caching) | ||
| COPY pyproject.toml uv.lock ./ | ||
|
|
||
| # Use the base image's prebuilt venv (contains torch stack for gfx1151) | ||
| RUN test -x /opt/venv/bin/python | ||
| ENV VIRTUAL_ENV=/opt/venv | ||
| ENV PATH="/opt/venv/bin:$PATH" | ||
|
|
||
| # Install dependencies, but never install/override torch/torchvision/torchaudio in this image. | ||
| # We avoid `uv sync` here because it recreates the venv and drops `--system-site-packages`. | ||
| # For strixhalo, we install pyannote.audio from git with --no-deps separately. | ||
| RUN set -eux; \ | ||
| uv export --frozen --format requirements.txt --no-dev --no-hashes \ | ||
| --extra ${PYTORCH_CUDA_VERSION} --no-emit-project \ | ||
| --prune torch --prune torchvision --prune torchaudio \ | ||
| --prune rocm --prune rocm-sdk-core --prune rocm-sdk-devel --prune rocm-sdk-libraries-gfx1151 \ | ||
| --prune torchcodec \ | ||
| $(if [ "${PYTORCH_CUDA_VERSION}" = "strixhalo" ]; then echo "--prune pyannote.audio"; fi) \ | ||
| --output-file /tmp/requirements.txt; \ | ||
| uv pip install --python /opt/venv/bin/python --no-managed-python --prerelease=if-necessary-or-explicit \ | ||
| --requirements /tmp/requirements.txt; \ | ||
| if [ "${PYTORCH_CUDA_VERSION}" = "strixhalo" ]; then \ | ||
| uv pip install --python /opt/venv/bin/python --no-managed-python --no-deps \ | ||
| "git+https://github.com/pyannote/pyannote-audio.git"; \ | ||
| fi; \ | ||
| uv cache clean | ||
|
|
||
| # Copy the full source code (after dependencies are cached) | ||
| COPY src/ src/ | ||
|
|
||
| # Install the project (editable so the compose bind-mount workflow still works) | ||
| RUN uv pip install --python /opt/venv/bin/python --no-managed-python --no-deps --editable . | ||
|
|
||
| # Verify we can import the base image's torch stack (and that torchvision ops are present) | ||
| RUN python -c "import torch, torchvision; print('torch', torch.__version__, torch.__file__); print('torchvision', torchvision.__version__, torchvision.__file__)" | ||
|
|
||
| # Create directories | ||
| RUN mkdir -p /app/audio_chunks /app/debug /app/data /models | ||
|
|
||
| # Set environment variables | ||
| ENV HF_HOME=/models | ||
| ENV PYTHONPATH=/app | ||
| ENV LD_LIBRARY_PATH=/opt/rocm/lib:/opt/rocm/lib/host-math/lib:/opt/rocm/lib/rocm_sysdeps/lib:/opt/venv/lib/python3.13/site-packages/torch/lib:/usr/lib64:${LD_LIBRARY_PATH} | ||
|
|
||
| # Expose port | ||
| EXPOSE 8085 | ||
|
|
||
| # Run the service | ||
| CMD ["/opt/venv/bin/simple-speaker-service"] |
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.
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.
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.
🧩 Analysis chain
🌐 Web query:
AMD ROCm PyTorch gfx1151 stable release availability💡 Result:
Short answer: Yes — AMD's ROCm/PyTorch builds include support for gfx1151 (Ryzen AI / MI300-series class) in the ROCm 7.x line, but some components (e.g., AOTriton/other newer toolchains) are listed as experimental or under investigation and there are kernel/workaround notes. (Status verified as of January 6, 2026.) [1][2][3]
Sources
🌐 Web query:
AMD ROCm official stable releases gfx1151 PyPI index💡 Result:
Short answer:
Sources:
[1] ROCm 7.1.0 / release notes — gfx1150 / gfx1151 enabled.
[2] hipDF installation (shows AMD PyPI and example --extra-index-url=https://pypi.amd.com/rocm-7.0.2/simple).
[3] Multiple ROCm docs (e.g., MONAI / CuPy) showing pip install --extra-index-url=https://pypi.amd.com/simple.
🌐 Web query:
rocm.nightlies.amd.com PyTorch nightly builds index💡 Result:
The ROCm-hosted PyTorch nightly wheel index is available at https://rocm.nightlies.amd.com/ (per-variant subpaths like /v2/gfx120X-all/). You can install nightlies with pip using the index URL, for example:
python -m pip install --index-url https://rocm.nightlies.amd.com/v2/gfx120X-all/ --pre torch torchvision torchaudio
Sources: [1], [2].
Consider switching to AMD's official stable PyPI index instead of nightlies.
The
rocm-gfx1151index points to AMD's nightly builds (rocm.nightlies.amd.com), which may introduce unstable or breaking changes. Official stable PyPI releases for ROCm 7.x include gfx1151 support and are available athttps://pypi.amd.com/simpleor versioned paths likehttps://pypi.amd.com/rocm-7.0.2/simple. Use stable releases unless nightlies are specifically required for this project, and document the rationale if nightly builds are intentional.🤖 Prompt for AI Agents