From 45bc86e58eaba767881ffad0d0b3634d192fc7c8 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Tue, 13 Oct 2026 16:26:46 +0200 Subject: [PATCH] Document running CPU Redux preview without Deck restart --- integrations/parakeet-redux/README.md | 23 ++++++++++++++++++-- integrations/parakeet-redux/start-preview.sh | 17 +++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100755 integrations/parakeet-redux/start-preview.sh diff --git a/integrations/parakeet-redux/README.md b/integrations/parakeet-redux/README.md index 03cb4ed..d47515c 100644 --- a/integrations/parakeet-redux/README.md +++ b/integrations/parakeet-redux/README.md @@ -1,7 +1,8 @@ # Parakeet Redux — preparation on Athena, 2026-10-13 -**Prepared only. No transcription test, app activation/restart, endpoint publication, -service launch or change to running Qwen/Strata/audio policies.** +**Deck update remains prepared/inactive. By subsequent explicit user request, the +isolated Redux CPU preview is now started. No transcription test, app activation/restart, +endpoint publication or change to running Qwen/Strata/audio policies.** ## Files and runtime @@ -104,3 +105,21 @@ Official sources: - https://github.com/mudler/parakeet.cpp/blob/v0.6.1/examples/server/README.md - https://github.com/mudler/parakeet.cpp/blob/v0.6.1/docs/ultra-redux.md - https://huggingface.co/moondream/parakeet-redux + +## CPU preview started later on user request + +`athena-parakeet-redux-preview.service` runs the prepared native CPU server at +`127.0.0.1:18097`. GET `/health` returned200 and `{"status":"ok"}`. Measured +service memory387096576 bytes (~369MiB); this is loaded/idle memory, not peak +transcription memory. No transcription request or quality/speed test has run. +Strata PID3127 and GPU allocations11236/15348MiB stayed identical before/after. + +The host's restrictive Deck parent directories are preserved. A read-only bind +inside the service namespace gives UID65534 access through +`/var/lib/athena-parakeet-preview/runtime`; no model copies or broader directory +permissions. `start-preview.sh` reproduces this layout without starting Deck. +The service is transient, not boot-enabled and not exposed publicly. Its future +recipe suppresses stdout/stderr so reference audio/transcripts cannot enter its logs. +It is not selectable in the currently running Deck app until the prepared app +update is activated. After the regular integration is activated and ready, stop +only this temporary preview with `systemctl stop athena-parakeet-redux-preview`. diff --git a/integrations/parakeet-redux/start-preview.sh b/integrations/parakeet-redux/start-preview.sh new file mode 100755 index 0000000..51d4b0f --- /dev/null +++ b/integrations/parakeet-redux/start-preview.sh @@ -0,0 +1,17 @@ +#!/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