Feature Request: AMD GPU acceleration support in Docker (ROCm/MIGraphX and VA-API)

Open
#103 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, linux, python
Domain
ai, devops

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

accepted

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seeARMS/keystone

All issues in seeARMS/keystone

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.