From f9997994624b77d904d7d3ebb7ca614b10db521d Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 28 Jun 2026 22:02:57 -0700 Subject: [PATCH] =?UTF-8?q?Add=20hwaccel.ml.yml=20=E2=80=94=20hardware-acc?= =?UTF-8?q?elerated=20ML=20config=20(openvino=20active)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwaccel.ml.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 hwaccel.ml.yml diff --git a/hwaccel.ml.yml b/hwaccel.ml.yml new file mode 100644 index 0000000..f8847df --- /dev/null +++ b/hwaccel.ml.yml @@ -0,0 +1,53 @@ +# Configurations for hardware-accelerated machine learning + +# If using Unraid or another platform that doesn't allow multiple Compose files, +# you can inline the config for a backend by copying its contents +# into the immich-machine-learning service in the docker-compose.yml file. + +# See https://immich.app/docs/features/ml-hardware-acceleration for info on usage. + +services: +# armnn: +# devices: +# - /dev/mali0:/dev/mali0 +# volumes: +# - /lib/firmware/mali_csffw.bin:/lib/firmware/mali_csffw.bin:ro +# - /usr/lib/libmali.so:/usr/lib/libmali.so:ro + +# cpu: {} + +# cuda: +# deploy: +# resources: +# reservations: +# devices: +# - driver: nvidia +# count: 1 +# capabilities: +# - gpu + + openvino: +# device_cgroup_rules: +# - 'c 189:* rmw' +# devices: +# - /dev/dri:/dev/dri + volumes: + - /dev/bus/usb:/dev/bus/usb + - /dev/dri:/dev/dri + hostname: immich-ml + networks: + - traefik_backend + +# openvino-wsl: +# devices: +# - /dev/dri:/dev/dri +# - /dev/dxg:/dev/dxg +# volumes: +# - /dev/bus/usb:/dev/bus/usb +# - /usr/lib/wsl:/usr/lib/wsl + +networks: + postgresql_db-backend: + external: true + traefik_backend: + external: true