fix: increase Immich ML memory to 6GB and add model TTL config
Run Tests / Frontend Tests (push) Waiting to run
Run Tests / Backend Tests (push) Failing after 3m11s
Run Tests / Test Summary (push) Has been cancelled

- Increase memory limit from 4GB to 6GB for larger model downloads
- Add MACHINE_LEARNING_MODEL_TTL=300 to keep models in memory longer
- Add MACHINE_LEARNING_MODEL_TTL_POLL_S=10 for faster model unloading checks

Note: Models still failing to download due to network timeouts.
Uploads work but ML features (OCR, facial recognition) fail.
This commit is contained in:
Gan, Jimmy
2026-04-06 00:55:08 +08:00
parent 5b215e5b4a
commit 9560de6314
+3 -1
View File
@@ -88,10 +88,12 @@ services:
environment: environment:
- MACHINE_LEARNING_CACHE_FOLDER=/cache - MACHINE_LEARNING_CACHE_FOLDER=/cache
- MACHINE_LEARNING_REQUEST_TIMEOUT=600 - MACHINE_LEARNING_REQUEST_TIMEOUT=600
- MACHINE_LEARNING_MODEL_TTL=300
- MACHINE_LEARNING_MODEL_TTL_POLL_S=10
deploy: deploy:
resources: resources:
limits: limits:
memory: 4G memory: 6G
networks: networks:
- immich - immich
logging: logging: