-
Notifications
You must be signed in to change notification settings - Fork 5
Hardware‐Accelerated Machine Learning
linux-universe edited this page Oct 30, 2025
·
5 revisions
Note
This guide is based on the quadlet files in main.
Warning
As I don't have the necessary hardware, I couldn't test the both the CUDA and ROCM instructions. Any confirmation of it working would be appreciated.
-
Add
-rocmto the end of the Image= line inimmich-machine-learning.container.- Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION} + Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION}-rocm
-
Add the following lines in
immich-machine-learning.containerunder[Container].GroupAdd=video AddDevice=/dev/dri AddDevice=/dev/kfdYou may need to add
Environment=HSA_OVERRIDE_GFX_VERSION="x.x.x"depending on your GPU.
-
Add
-cudato the end of the Image= line inimmich-machine-learning.container.- Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION} + Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION}-cuda
-
Add the following lines in
immich-machine-learning.containerunder[Container].AddDevice=/dev/dri # Make sure this matched your GPU ID AddDevice=nvidia.com/gpu=0 Unmask=/dev/dri:/dev/dri
thanks to tbelways repo for inspiration