Trying to configure AMD GPU RX 6700XT to be visible for Open Web UI application.
I understand that it is required to install rocm driver for it (I didn’t know if it should be done in TrueNas Scale or inside application), but still it is not visible and showing the following errors:
2025-05-22 18:28:36.352664+00:00time=2025-05-22T21:28:36.352+03:00 level=WARN source=amd_linux.go:61 msg="ollama recommends running the https://www.amd.com/en/support/linux-drivers" error="amdgpu version file missing: /sys/module/amdgpu/version stat /sys/module/amdgpu/version: no such file or directory"
2025-05-22 18:28:36.353980+00:00time=2025-05-22T21:28:36.353+03:00 level=WARN source=amd_linux.go:443 msg="amdgpu detected, but no compatible rocm library found. Either install rocm v6, or follow manual install instructions at https://github.com/ollama/ollama/blob/main/docs/linux.md#manual-install"
2025-05-22 18:28:36.353998+00:00time=2025-05-22T21:28:36.353+03:00 level=WARN source=amd_linux.go:348 msg="unable to verify rocm library: no suitable rocm found, falling back to CPU"
How can I add AMD GPU to be visible for Open Web UI?
Passthrough GPUs was configured in TrueNas Scale UI
P.S. I’ve managed to read a bit (not my strongest part) and downloaded ROCM image for ollama instead of the usual one.
Currently I can see that the GPU is visible, but the following error appears:
2025-05-23 07:38:38.445616+00:00time=2025-05-23T07:38:38.445Z level=ERROR source=amd_linux.go:407 msg="amdgpu devices detected but permission problems block access: kfd driver not loaded. If running in a container, remember to include '--device /dev/kfd --device /dev/dri'"
I have also managed to use HSA_OVERRIDE_GFX_VERSION, because I have 6700xt, and the minimal supported one is 6800.
Currently I need to understand how can I include /dev/kfd and /dev/dri?
I’m replying since I had the same issue as OP and figured it out. I wanted it documented in case anyone else runs into the same issue. I had this error when using the Ollama app, but I’m sure it is applicable to OpenWebUI as well. You can change the Docker image in the YAML and it should work.