mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 00:28:47 +02:00
docs(ml): update hardware acceleration doc (#8700)
* update docs * formatting
This commit is contained in:
parent
e421fe9860
commit
8c9a092561
@ -27,8 +27,6 @@ services:
|
|||||||
count: 1
|
count: 1
|
||||||
capabilities:
|
capabilities:
|
||||||
- gpu
|
- gpu
|
||||||
- compute
|
|
||||||
- video
|
|
||||||
|
|
||||||
openvino:
|
openvino:
|
||||||
device_cgroup_rules:
|
device_cgroup_rules:
|
||||||
|
@ -43,7 +43,8 @@ You do not need to redo any machine learning jobs after enabling hardware accele
|
|||||||
|
|
||||||
1. If you do not already have it, download the latest [`hwaccel.ml.yml`][hw-file] file and ensure it's in the same folder as the `docker-compose.yml`.
|
1. If you do not already have it, download the latest [`hwaccel.ml.yml`][hw-file] file and ensure it's in the same folder as the `docker-compose.yml`.
|
||||||
2. In the `docker-compose.yml` under `immich-machine-learning`, uncomment the `extends` section and change `cpu` to the appropriate backend.
|
2. In the `docker-compose.yml` under `immich-machine-learning`, uncomment the `extends` section and change `cpu` to the appropriate backend.
|
||||||
3. Redeploy the `immich-machine-learning` container with these updated settings.
|
3. Still in `immich-machine-learning`, add one of -[armnn, cuda, openvino] to the `image` section's tag at the end of the line.
|
||||||
|
4. Redeploy the `immich-machine-learning` container with these updated settings.
|
||||||
|
|
||||||
#### Single Compose File
|
#### Single Compose File
|
||||||
|
|
||||||
@ -60,8 +61,6 @@ deploy:
|
|||||||
count: 1
|
count: 1
|
||||||
capabilities:
|
capabilities:
|
||||||
- gpu
|
- gpu
|
||||||
- compute
|
|
||||||
- video
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You can add this to the `immich-machine-learning` service instead of extending from `hwaccel.ml.yml`:
|
You can add this to the `immich-machine-learning` service instead of extending from `hwaccel.ml.yml`:
|
||||||
@ -69,6 +68,7 @@ You can add this to the `immich-machine-learning` service instead of extending f
|
|||||||
```yaml
|
```yaml
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
container_name: immich_machine_learning
|
container_name: immich_machine_learning
|
||||||
|
# Note the `-cuda` at the end
|
||||||
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
|
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
|
||||||
# Note the lack of an `extends` section
|
# Note the lack of an `extends` section
|
||||||
deploy:
|
deploy:
|
||||||
@ -79,8 +79,6 @@ immich-machine-learning:
|
|||||||
count: 1
|
count: 1
|
||||||
capabilities:
|
capabilities:
|
||||||
- gpu
|
- gpu
|
||||||
- compute
|
|
||||||
- video
|
|
||||||
volumes:
|
volumes:
|
||||||
- model-cache:/cache
|
- model-cache:/cache
|
||||||
env_file:
|
env_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user