wrolpi/pi-gen/stage2/04-wrolpi
Roland 485a9703eb
ai: package llama-server for all three deployments, with idle unload
install_llama_cpp.sh builds llama-server from the SHA-pinned v0.3.0
source tarball (single source of truth: on-device upgrade, Pi image,
Live ISO, and the new docker/llm container all call it; version-marker
makes re-runs no-ops).  start_llama_server.sh refuses to start unless
ai.yaml enables AI and the active model file exists — which also covers
unmounted media.  wrolpi-llm.service is installed but deliberately
never enabled at boot: the Controller starts it on demand (registered
in managed_services; the llm compose service follows the samba
pattern), and the API's perpetual idle-unload worker asks the
Controller to stop it after the configured idle minutes.  llama-server
is localhost-only natively, internal-network-only in docker, and never
proxied by Caddy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-24 14:09:54 -06:00
..
files Key changes: 2026-04-04 13:48:19 -06:00
00-run-chroot.sh Updating pi-gen build to use bookworm-arm64 branch. 2026-02-11 17:38:04 -07:00
01-packages-nr Bake tippecanoe into the Raspberry Pi image (#537) 2026-07-15 15:48:25 -06:00
02-run.sh Creating script in pi-gen directory which creates the WROLPi Raspberry Pi OS images. 2023-10-12 18:33:51 -06:00
03-run-chroot.sh ai: package llama-server for all three deployments, with idle unload 2026-09-24 14:09:54 -06:00
04-run-chroot.sh zim: ship a default fallback Zim and honor the configured Zim directory 2026-07-20 19:09:57 -06:00