Feature Request: AMD GPU acceleration support in Docker (ROCm/MIGraphX and VA-API)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
Research direction
Start with the standard Docker image build and its published ghcr.io/seearms/keystone-aio:latest configuration, then inspect how FFmpeg and ONNX Runtime are installed. Use vainfo and the ONNX Runtime provider list in the issue to verify VA-API and MIGraphXExecutionProvider availability. Done means an AMD-oriented image includes the required runtime and driver components, reports accelerated execution providers, and documents device passthrough and any HSA_OVERRIDE_GFX_VERSION requirements.
Written by the indexing model from the issue text.
Description
Feature Request
Would it be possible to provide better out-of-the-box AMD GPU acceleration support for Docker installations, similar to the existing Intel image?
I'm currently running Keystone on Unraid with an AMD Ryzen 9 8945HX and integrated AMD Radeon 610M graphics.
Hardware and environment
- OS: Unraid
- CPU: AMD Ryzen 9 8945HX
- GPU: AMD Radeon 610M
- GPU architecture: RDNA 2 (
gfx1036) - Docker image:
ghcr.io/seearms/keystone-aio:latest - Container OS: Debian 13 (Trixie)
- ONNX Runtime: 1.32.0
Both GPU devices are passed through to the container:
--device=/dev/dri:/dev/dri --device=/dev/kfd:/dev/kfd
1. AMD VA-API video decoding
Keystone correctly detects the AMD GPU, but FFmpeg initially fails to initialize VA-API:
Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
I was able to resolve this by installing the following packages inside the container:
apt-get update && apt-get install -y mesa-va-drivers vainfo
After installing these packages, both vainfo and FFmpeg successfully initialize VA-API on /dev/dri/renderD128.
Keystone now reports:
Detected hardware: AMD 0x164e
Video decode: VA-API · available
Unfortunately, these packages need to be reinstalled whenever the container is recreated or updated.
Would it be possible to include mesa-va-drivers in the standard Docker image?
2. AMD MIGraphX inference acceleration
Although Keystone documents support for AMD MIGraphX, the standard Docker image currently only provides the following ONNX Runtime execution providers:
Version: 1.32.0
Providers: ['AzureExecutionProvider', 'CPUExecutionProvider']
As a result, all loaded AI inference models currently run on the CPU.
Would it be possible to provide a dedicated AMD Docker image containing:
- AMD ROCm runtime
- MIGraphX libraries
- ONNX Runtime with
MIGraphXExecutionProvider - AMD Mesa VA-API drivers
- Automatic AMD GPU detection and acceleration configuration
For example:
ghcr.io/seearms/keystone-aio:latest-amd
3. Older AMD GPU architecture support
My integrated GPU reports gfx1036, which may not be officially supported by current ROCm releases.
Would it be possible to investigate compatibility with older RDNA 2 GPUs and optionally document or support HSA_OVERRIDE_GFX_VERSION for unsupported architectures where applicable?
I understand that support for every AMD GPU may not be feasible due to ROCm limitations.
Expected behavior
Ideally, AMD users should be able to deploy Keystone with GPU acceleration by selecting the appropriate Docker image and passing through their GPU devices, without manually installing drivers or building ONNX Runtime.
I'm happy to test AMD-specific builds on my Unraid server and provide logs and feedback.
Thanks for your work on Keystone!
- Dominant language
- Python
- Stars
- 1k
- Forks
- 114
- Avg merge
- 1h
- Merged PRs (30d)
- 115
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from seeARMS/keystone
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
All issues in seeARMS/keystone
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day