Skip to content

[bug]: ROCM Docker container not using AMD GPU #9490

Description

@Malbeth81

Is there an existing issue for this problem?

  • I have searched the existing issues

Install method

Manual

Operating system

Linux

GPU vendor

AMD (ROCm)

GPU model

RX 7900 XTX

GPU VRAM

24GB

Version number

main-rocm

Browser

No response

System Information

No response

What happened

I've been trying to install the application on TrueNAS Scale via the Docker container, following the steps from https://github.com/invoke-ai/InvokeAI/blob/main/docker/README.md, but it will always only use the CPU and the the GPU, which is passed through (kfd & dri devices), which works fine for other apps.

These are the logs generated by the Docker application:

2026-08-10 14:00:44.212740+00:00Could not detect ROCm GPU architecture: [Errno 2] No such file or directory: 'rocminfo'
2026-08-10 14:00:44.213089+00:00Could not detect ROCm warp size: [Errno 2] No such file or directory: 'rocminfo'. Defaulting to 64. (some 4-bit functions may not work!)
2026-08-10 14:00:44.215226+00:00Failed to load CPU gemm_4bit_forward from kernels-community: No module named 'kernels'. Please make sure you already pip install kernels and the kernels >= 0.11.1
m[2026-08-10 10:00:47,901]::[InvokeAI]::INFO --> Using torch device: CPU
m[2026-08-10 10:00:47,902]::[InvokeAI]::INFO --> cuDNN version: 3005001
m[2026-08-10 10:00:48,285]::[InvokeAI]::INFO --> Patchmatch initialized
2026-08-10 14:00:48.553379+00:00Siglip2ImageProcessorFast is deprecated. The Fast suffix for image processors has been removed; use Siglip2ImageProcessor instead.
[38;20m[2026-08-10 10:00:50,230]::[InvokeAI]::INFO --> InvokeAI version 6.14.0-alpha
[38;20m[2026-08-10 10:00:50,230]::[InvokeAI]::INFO --> Root directory = /invokeai
[38;20m[2026-08-10 10:00:50,231]::[InvokeAI]::INFO --> Initializing database at /invokeai/databases/invokeai.db
[38;20m[2026-08-10 10:00:50,249]::[InvokeAI]::INFO --> JWT secret loaded from database
[38;20m[2026-08-10 10:00:50,251]::[ModelManagerService]::INFO --> [MODEL CACHE] Calculated model RAM cache size: 12817.33 MB. Heuristics applied: [1].
[38;20m[2026-08-10 10:00:50,251]::[ModelManagerService]::INFO --> Model cache global RAM budget: 12.52 GB across 1 device cache(s).
[38;20m[2026-08-10 10:00:50,252]::[ModelInstallService]::INFO --> Restoring incomplete installs
[38;20m[2026-08-10 10:00:50,253]::[ModelInstallService]::INFO --> Finished restoring incomplete installs
[38;20m[2026-08-10 10:00:50,315]::[InvokeAI]::INFO --> Invoke running on http://0.0.0.0:9090 (Press CTRL+C to quit)

It seems the Dockerfile no longer installs rocm like it used to https://github.com/invoke-ai/InvokeAI/blob/v5.2.0/docker/Dockerfile#L41, so I don't get how it is supposed to function without it? Why keep publishing an image that is essentially broken and useless?

What you expected to happen

I expect the application to run in Docker using the image with the main-rocm tag and detect and use the GPU to run the models.

How to reproduce the problem

Simply run docker run --device /dev/kfd --device /dev/dri --publish 9090:9090 ghcr.io/invoke-ai/invokeai:main-rocm on a machine with an AMD GPU.

Additional context

No response

Discord username

Malbeth

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions