Repository navigation
feat: add Immich Remote Machine Learning LXC - #2737
jwklijnsma wants to merge 6 commits into
Conversation
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-v2
bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/immich-remote-ml.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-v2
dev_mode=net,keep bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/immich-remote-ml.sh")"Against a core branch as wellAdd |
✍️ Description
Adds a native, Docker-free Immich Remote Machine Learning LXC that serves Immich's ML API on TCP port 3003. The installer follows the upstream
machine-learning/pyproject.toml,uv.lock,README.md, and ROCm production dependencies from the Immich Dockerfile, using the existingsetup_hwaccelhelper for AMD GPU passthrough and a CPU fallback when ROCm is unavailable. The virtual environment, Hugging Face cache, and runtime data are stored outside the replaceable source directory; validation completed withbash -nand JSON parsing, but Proxmox/ROCm runtime testing is still required. Generated with GPT-6 (high reasoning effort) and reviewed against the DevScriptsAGENTS.mdand PR template.🔗 Related PR / Issue
Link: #
✅ Prerequisites (X in brackets)
AGENTS.mdand checked the generated files.🧩 Script
Name: Immich Remote ML
Tool: Standalone Immich machine-learning service for facial recognition and smart search, intended to run separately from the Immich server. It supports AMD ROCm acceleration when a compatible GPU is passed through, 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 machine-learning endpoint is unauthenticated by upstream design. Restrict TCP port 3003 at the Proxmox firewall or network layer to the Immich server and trusted clients. For unsupported gfx1030 GPUs, the generated
/etc/default/immich-remote-mlfile can 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 adjusted to match the repository structure.GPT-6, high reasoning effort, used to research the upstream Immich machine-learning implementation, draft the CT/install/metadata files, and review the generated scripts.