164 lines
9.5 KiB
Markdown
164 lines
9.5 KiB
Markdown
# Parakeet Redux — preparation on Athena, 2026-10-13
|
|
|
|
**Activated after user Go. The Redux profile is available in Deck; production STT
|
|
publication remains Qwen. The isolated preview has been stopped after integration.**
|
|
|
|
## Files and runtime
|
|
|
|
Public model: `mudler/parakeet-cpp-gguf/redux-packed.gguf`, revision
|
|
`741158ae71e64ef5c89385862c18f777d07a97a1`,213319296 bytes,SHA256
|
|
`574614b9a4d9f72ab202877a7ad6a1f4bf819dd1d27b9d42dfe8cd429fcebdd5`.
|
|
This is the packed ternary Redux conversion, NOT the expanded f16 or q8 model.
|
|
Original model credit: Moondream and NVIDIA, CC-BY-4.0.
|
|
|
|
Runtime: official CPU-x64 parakeet.cpp v0.6.1 (commit
|
|
`5c9b0fbbd8e611d88e47d7e1ebae9bca9b447e8f`), archive SHA256
|
|
`cce60d122ab72e1068cd0d164e54a21655a0b83f1b9c21befc20124f5a972c10`.
|
|
Native binaries; no extra container, compiler, Python ML packages or CUDA runtime.
|
|
`prepare.py` pins URLs and verifies both digests, rejects unsafe archive paths/links,
|
|
extracts only into the dedicated runtime root. CLI/server help executed successfully
|
|
on Athena (help returns2 by design); no model loaded or inference performed.
|
|
|
|
Paths:
|
|
- `/opt/athena-deck-dev/runtime/state/parakeet-runtime/v0.6.1`: CPU binaries/model/manifest.
|
|
- `/opt/athena-deck-dev/parakeet-prepared-20261013`: staged Deck source/build/activation script.
|
|
- `/opt/athena-deck-dev/runtime/state/parakeet-comparison-prepared`: Go-guarded test script,
|
|
two explicitly listed previously generated synthetic WAVs and expected text.
|
|
- Prepared image `athena-deck-standalone:parakeet-prepared-20261013`; not running.
|
|
|
|
The runtime and weights are inside the existing managed state mount. Only the new
|
|
parakeet-runtime root is writable by Deck UID65534, so future catalogue registration
|
|
can store its marker; pinned version files are readable/executable. Other paths unchanged.
|
|
|
|
## Go test, independently of the app update
|
|
|
|
Run only after the user asks to start the test:
|
|
|
|
```sh
|
|
docker exec athena-deck-dev python3 \
|
|
/var/lib/deck/parakeet-comparison-prepared/compare.py --go \
|
|
--cases /var/lib/deck/parakeet-comparison-prepared/cases/cases.json \
|
|
--output /var/lib/deck/parakeet-comparison-prepared/results
|
|
```
|
|
|
|
Uses existing installed Qwen3-ASR0.6B-Q8 model/projector/active llama-server,
|
|
and the prepared packed Redux model. Each backend launches temporarily on a random
|
|
loopback port with2CPU threads; GPU visibility disabled. Backends run sequentially,
|
|
then their own process groups are stopped. Production workers/config remain untouched.
|
|
Checks startup and transcribes each identical synthetic file twice. Records startup,
|
|
processing/audio duration,RTF and simple case/punctuation-normalized WER, plus the
|
|
synthetic transcripts in its own results file. No private inputs/logs or library scans.
|
|
A live user's voice/noisy recordings are not part of this initial test; synthetic
|
|
samples cannot establish real German accuracy or superiority. Testing temporarily
|
|
uses additional CPU/RAM and can compete with production CPU work, even without restarts.
|
|
|
|
## Stable Deck endpoint, prepared implementation
|
|
|
|
After a separate activation in an idle maintenance window:
|
|
|
|
```sh
|
|
python3 /opt/athena-deck-dev/parakeet-prepared-20261013/activate-prepared.py --activate
|
|
```
|
|
|
|
Uses existing manifest/installer and preserves mounts, credentials, API ports,
|
|
profiles and audio policy. It does restart the Deck app, so do not execute while
|
|
user work runs. First startup registers a symlinked STT catalogue entry and the
|
|
**Parakeet Redux CPU** profile once, without publishing it. Existing Qwen stays selected.
|
|
|
|
Later: publish exactly one STT profile in Deck. Enabling a different STT profile
|
|
unchecks the former one; active STT jobs block switching. `/v1/audio/transcriptions`,
|
|
API base URL and token stay identical. `athena-stt`, `deck-stt`, `whisper-1`, plus
|
|
names/API IDs belonging to existing disabled STT profiles route to the sole published
|
|
STT profile, retaining current client configuration. Unknown names still fail; no
|
|
published profile fails; ambiguous older configs fail explicitly. Chat/other model
|
|
routing is unchanged. Native Parakeet requests are serialized and loopback-only
|
|
behind Deck authentication; Qwen and Redux use distinct model/backend residency keys.
|
|
Warm STT follows the currently published profile instead of silently reloading the
|
|
old Qwen policy target. Running jobs are never evicted by warm reconciliation.
|
|
|
|
No silent inference fallback from Redux to Qwen: report the real backend error.
|
|
Parakeet server accepts WAV and returns JSON text, which matches Deck's existing
|
|
normalization and response. Its verbose_json language is an `en` placeholder and
|
|
its language hint is not a forced language selector; Deck exposes only the existing
|
|
text result. Word timestamps/live previews are NOT part of this initial adapter.
|
|
The existing120-second upload limit is retained. Qwen keeps its4-GiB RAM admission
|
|
check; Redux uses1GiB after its loaded preview measured369MiB. Short synthetic
|
|
requests were checked; this does not establish the peak for120-second recordings.
|
|
|
|
## Verification / restore
|
|
|
|
35 targeted tests passed. They cover fixed revision, no false installed state, old client-name routing,
|
|
unknown/ambiguous/disabled routes, and warm profile switching without active-job eviction.
|
|
Existing STT/audio-policy/execution mapping tests run too. A broad historical endpoint
|
|
suite has pre-existing chat-forwarding failures (one reproduced against unchanged HEAD);
|
|
those are not ASR/model test results. No measured performance/accuracy claims yet.
|
|
|
|
Native restore: from Git run `prepare.py --root <state>/parakeet-runtime/v0.6.1`,
|
|
ensure the server's native account can write `<state>/parakeet-runtime` and its catalogue,
|
|
then use the packaged server/modules. `deploy/install.py` includes parakeet_runtime.py.
|
|
Existing profile/catalogue/endpoint/audio-policy state is part of encrypted restore.
|
|
Public weights/runtime are reproducible from pinned URLs/digests; no secrets, weights
|
|
or private audio committed. Fresh-host restore has not been tested.
|
|
|
|
Official sources:
|
|
- https://github.com/mudler/parakeet.cpp/releases/tag/v0.6.1
|
|
- 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`.
|
|
|
|
## Activated and API-tested after user Go
|
|
|
|
Final active image: `athena-deck-standalone:parakeet-ready-20261013`. New profile
|
|
**Parakeet Redux CPU** registered, runnable; existing **QWEN3-ASR-STT** remains published.
|
|
The native CPU preview has been stopped; Deck launches its own CPU worker when used.
|
|
API URL, token, old model name and STT publication policy remain usable.
|
|
|
|
An initial in-container duplicate-Qwen test was rejected by the existing4-GiB
|
|
admission check because Strata's mapped model pages filled most of the40-GiB
|
|
cgroup budget. This is a resource admission result, not an ASR accuracy result.
|
|
Redux's same inherited check was therefore adjusted to1GiB. A separate8-GiB,
|
|
2CPU, network-disabled test container then exercised the real STT and Endpoint
|
|
classes with an isolated profile/endpoint configuration; production publication
|
|
was never changed. The existing CUDA-linked Qwen binary needs libcuda.so.1 even
|
|
on CPU; the test mounted only that driver library, with no GPU devices and
|
|
CUDA_VISIBLE_DEVICES empty. Outputs are purely synthetic.
|
|
|
|
Eight successful HTTP200 requests switched Qwen → Redux while keeping the old
|
|
Qwen model name in every request. The same pair of WAVs were each transcribed
|
|
twice by both backends. `integration-results.json` records synthetic text/metrics.
|
|
|
|
| Synthetic recording | Qwen warm | Redux warm | Simple word errors |
|
|
|---|---:|---:|---|
|
|
| Piper German,5.956s |0.808s|0.407s|both1/14|
|
|
| Qwen clone German,4.640s |0.806s|0.406s|Qwen0/12,Redux2/12|
|
|
|
|
First Piper request including load: Qwen3.028s,Redux0.807s. Endpoint's200-ms
|
|
job polling coarsens these latency measurements. These two short generated clips
|
|
suggest lower latency, not demonstrated superiority on real speech or noise.
|
|
Qwen was more accurate on the second clip. Tests do not alter production settings.
|
|
35 relevant non-inference unit tests passed after the RAM correction.
|
|
|
|
`integration-check.py` must only be run on explicitly selected synthetic fixtures.
|
|
It starts a separate authenticated loopback endpoint with an ephemeral internally
|
|
held test key, drives the same publication logic and uses the actual native
|
|
backends. Its finally block stops only its own CPU workers. Test metadata and
|
|
public text are in Git; no credentials or private audio were captured.
|