Repository navigation
Add immich remote ml - #2736
Add immich remote ml#2736jwklijnsma wants to merge 18 commits into
Conversation
|
👋 @jwklijnsma this PR adds new file(s) under
If this is a new script submission, please check that box and fill out the 📦 Application Requirements section — it's required for review. |
|
✅ Requirements check passed. Thanks for fixing the description — the |
Try this branchThe engine and the scripts resolve independently, so this runs the changed export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/jwklijnsma/DevScripts/add-immich-remote-ml
bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/immichremoteml.sh")"Both lines are needed. Without The same command works on an Incus host: the engine detects the platform and Useful while testing
export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/jwklijnsma/DevScripts/add-immich-remote-ml
dev_mode=net,keep bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/immichremoteml.sh")"Against a core branch as wellAdd |
There was a problem hiding this comment.
Proxmox script test failed at b2eb61f:
ct/immich-remote-ml.sh(pve): build exited 0 but never reported successct/immich-remote-ml.sh(incus): build exited 0 but never reported success
Logs and details: test result. Push a fix, then ask for /test again.
|
/test |
Replaced by a newer Proxmox script test.
There was a problem hiding this comment.
Proxmox script test failed at 6f5ba1c:
-
ct/immich-remote-ml.sh(pve): build exited 115: install/immichremoteml-install.sh is not in http://10.99.0.1:18080/45678263256-1-pve-ct-immich-remote-ml-default -
ct/immich-remote-ml.sh(incus): build exited 22: [2026-11-25 19:45:51] [ERROR] in line 1113: exit code 22 (${var_install}.sh")" exited with status 22): while executing command _install_script="$ (_cs_fetch_text "install/${var_install
Logs and details: test result. Push a fix, then ask for /test again.
|
/test |
|
/test |
Replaced by a newer Proxmox script test.
There was a problem hiding this comment.
Proxmox script test failed at f355bcd:
-
ct/immich-remote-ml.sh(pve): build exited 115: install/immichremoteml-install.sh is not in http://10.99.0.1:18080/45678584239-1-pve-ct-immich-remote-ml-default -
ct/immich-remote-ml.sh(incus): build exited 22: [2026-11-25 19:47:51] [ERROR] in line 1113: exit code 22 (${var_install}.sh")" exited with status 22): while executing command _install_script="$ (_cs_fetch_text "install/${var_install
Logs and details: test result. Push a fix, then ask for /test again.
Replaced by a newer Proxmox script test.
There was a problem hiding this comment.
Proxmox script test failed at f355bcd:
-
ct/immich-remote-ml.sh(pve): build exited 115: install/immichremoteml-install.sh is not in http://10.99.0.1:18080/45679141012-1-pve-ct-immich-remote-ml-default -
ct/immich-remote-ml.sh(incus): build exited 22: [2026-11-25 19:51:14] [ERROR] in line 1113: exit code 22 (${var_install}.sh")" exited with status 22): while executing command _install_script="$ (_cs_fetch_text "install/${var_install
Logs and details: test result. Push a fix, then ask for /test again.
|
/test |
|
/test |
…ve) at c9d1fb2
…ve)-after-update at c9d1fb2
…ncus) at c9d1fb2
…ncus)-after-update at c9d1fb2
Proxmox script test passed at c9d1fb2.
|
/test |
…ve) at 7cd5e93
…ve)-after-update at 7cd5e93
…ncus) at 7cd5e93
…ncus)-after-update at 7cd5e93
|
For what? Its integrated in the immich Installer? |
The purpose of this PR is to provide a separate Remote Machine Learning LXC for Immich installations running on another server. The existing Community Scripts Immich installer already installs local Machine Learning, so this PR does not replace or modify that functionality. Instead, it allows users to run Immich Machine Learning on an external Proxmox server with a dedicated GPU (AMD ROCm or NVIDIA CUDA) and connect it to their existing Immich installation over the network. This is particularly useful when Immich runs on a server without a GPU, while another server has the GPU resources available. In short: Immich stays on the original server; GPU-intensive machine-learning tasks are offloaded to a separate server. |
|
I don’t really see it that way. If we did that, we’d have to do the same for ollama, openwebui, all the AI tools, Frigate, other NVR tools, and so on. Who’s going to maintain all that? I see absolutely no added value in these scripts, apart from the fact that they just bloat our repo. Any other opinion? @community-scripts/contributor |
|
Thanks for the honest feedback, @MickLesk — I completely understand the concern about repository bloat and long-term maintenance overhead. |
…ve) at ae20c57
…ve)-after-update at ae20c57
…ncus) at ae20c57
…ncus)-after-update at ae20c57
Proxmox script test@jwklijnsma ✅ 2/2 passed at
📊 Resources
Not built:
📄 ct/immichremoteml.sh (pve) — install log (1409 lines)🔄 ct/immichremoteml.sh (pve) — update log (31 lines)📄 ct/immichremoteml.sh (incus) — install log (734 lines)🔄 ct/immichremoteml.sh (incus) — update log (25 lines)Full logs: workflow run (artifacts |
|
I also do not see why we should add that. Immich is prone to breaking as is, why should we make it even more complex and harder to maintain? |




✍️ Description
Adds a native, Docker-free Immich Remote Machine Learning LXC exposing Immich's machine-learning API on TCP port 3003. It installs the upstream Python project with
uv, uses the sharedsetup_hwaccelhelper for NVIDIA and AMD GPU detection, and selects Immich's CUDA or ROCm extras respectively, with CPU fallback; the runtime environment and model cache live outside the replaceable source tree. The first automated Proxmox/Incus test did not reach the normal completion footer; this revision adds the DevScripts scripts-base URL, the required CT footer, and uses the ROCm runtime packages from Immich's own ROCm image. Shell syntax is rechecked; please rerun the Proxmox/Incus install test before considering this ready.🔗 Related PR / Issue
Link: #
✅ Prerequisites (X in brackets)
AGENTS.md.🧩 Script
Name: Immich Remote ML
Tool: Standalone Immich machine-learning service for facial recognition and smart search, designed to run separately from the Immich server. It supports NVIDIA CUDA and AMD ROCm acceleration with CPU fallback.
🗂️ Category (X in brackets)
ct/+install/)vm/)tools/addon/tools/pve/🖥️ Platform – tested on (X in brackets)
🏗️ Architecture (X in brackets)
🛠️ Type of Change (X in brackets)
🔍 Code & Security Review (X in brackets)
CODE-AUDIT.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)check_for_gh_releaseandfetch_and_deploy_gh_release.📋 Additional Information (optional)
The Immich ML API has no authentication. Restrict TCP port 3003 to the Immich server and trusted clients. NVIDIA requires
/dev/nvidia*device passthrough and matching host driver userspace libraries (Immich documents compute capability 5.2+ and driver 545+). AMD ROCm requires AMD GPU passthrough; for unsupported gfx1030 devices,/etc/default/immich-remote-mlcan be extended withHSA_OVERRIDE_GFX_VERSION=10.3.0.📦 Application Requirements (for new scripts)
🌐 Source
🤖 AI Assistance (X in brackets)
AGENTS.mdand.github/agents/pve-script-creator.agent.mdas guidance, then reviewed and corrected to match the repository structure.GPT-6, high reasoning effort, used to investigate the upstream Immich ML project, draft the CT/install/metadata files, and apply the test feedback.