Skip to content

Commit

Permalink
feat: enable immich cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Dec 6, 2024
1 parent 1a89294 commit a898795
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
url: http://immich-machine-learning:3003
clip:
enabled: true
modelName: ViT-B-32__openai
modelName: ViT-B-16-SigLIP-256__webli
facialRecognition:
enabled: true
modelName: buffalo_l
Expand Down
16 changes: 8 additions & 8 deletions applications/immich/immich/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ controllers:
machine-learning:
enabled: true
pod:
# runtimeClassName: nvidia
runtimeClassName: nvidia
tolerations:
- key: nvidia.com/gpu
operator: Exists
Expand All @@ -85,17 +85,17 @@ controllers:
image:
repository: ghcr.io/immich-app/immich-machine-learning
pullPolicy: IfNotPresent
tag: v1.122.0
tag: v1.122.0-cuda

envFrom:
- configMapRef:
name: immich-env

env:
# - name: NVIDIA_DRIVER_CAPABILITIES
# value: compute,utility
# - name: NVIDIA_VISIBLE_DEVICES
# value: all
- name: NVIDIA_DRIVER_CAPABILITIES
value: compute,utility
- name: NVIDIA_VISIBLE_DEVICES
value: all
- name: TRANSFORMERS_CACHE
value: /cache
- name: DB_USERNAME
Expand All @@ -113,11 +113,11 @@ controllers:
requests:
cpu: 100m
memory: 384Mi
# nvidia.com/gpu: "1"
nvidia.com/gpu: "1"
limits:
cpu: 3
memory: 1536Mi
# nvidia.com/gpu: "1"
nvidia.com/gpu: "1"

probes:
liveness: &ml_probes
Expand Down

0 comments on commit a898795

Please sign in to comment.