18 lines
1.0 KiB
Bash
Executable File
18 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# Native preview only. No Deck/model changes. Called explicitly by the operator.
|
|
set -eu
|
|
[ "$(id -u)" = 0 ] || { echo 'Run as root'; exit 1; }
|
|
if systemctl is-active --quiet athena-parakeet-redux-preview; then exit 0; fi
|
|
runtime_root=${PARAKEET_PREVIEW_ROOT:-/opt/athena-deck-dev/runtime/state/parakeet-runtime/v0.6.1}
|
|
target=/var/lib/athena-parakeet-preview/runtime
|
|
install -d -m 755 "$target"
|
|
systemctl reset-failed athena-parakeet-redux-preview 2>/dev/null || true
|
|
systemd-run --unit=athena-parakeet-redux-preview \
|
|
--property=User=65534 --property=Group=65534 --property=Nice=10 \
|
|
--property=NoNewPrivileges=yes --property=PrivateTmp=yes --property=ProtectSystem=strict \
|
|
--property=StandardOutput=null --property=StandardError=null \
|
|
--property="BindReadOnlyPaths=$runtime_root:$target" \
|
|
--setenv=CUDA_VISIBLE_DEVICES= --setenv=OMP_NUM_THREADS=2 \
|
|
/usr/bin/env "$target/runtime/parakeet-v0.6.1-bin-linux-cpu-x64/parakeet-server" \
|
|
--model "$target/redux-packed.gguf" --host 127.0.0.1 --port 18097 --threads 2 --concurrency 1
|