Skip to content

docs(piper_tts): the non-finite duration abort is the plain Vulkan path, not the sidecar - #946

Merged
0xShug0 merged 1 commit into
0xShug0:mainfrom
wOvAN:piper-vulkan-duration-doc
Oct 17, 2026
Merged

0xShug0 merged 1 commit into
0xShug0:mainfrom
wOvAN:piper-vulkan-duration-doc

Conversation

@wOvAN

@wOvAN wOvAN commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

The one sentence that is now stale

docs/models/piper_tts.md says the non-finite duration abort is what the RKNN decoder sidecar adds
to the Vulkan duration path:

six runs of one fixed-seed request produced six different renders, and with the RKNN decoder
sidecar
the same draw landed outside exp outright as Piper TTS duration predictor produced a non-finite duration

Measured on this board (RK3588 Orange Pi 5 Plus, native aarch64 build of 0097d365 / v0.9.2,
--vulkan on, --backend vulkan, --threads 4, seed=1234, 160-character English text, no
sidecar, no exec_plan): the abort is the normal outcome of the plain Vulkan path, 1 of 1 runs,
rc=1, peak RSS 2254 MB. The run log shows the duration graph building and duration_ms 2499
being logged, so the graph fits — it is the value that is not finite.

That changed with #911, which sized the graph arenas for long unchunked latents: before it, the same
request died earlier and louder, at
GGML_ASSERT(ctx->descriptor_set_idx < ctx->descriptor_sets.size()) in ggml-vulkan.cpp
(ggml_vk_dispatch_pipeline). So the old failure mode is gone, the new one is not sidecar-specific,
and the sentence that scopes it to the sidecar now understates it: on Mali the duration stages are not
a tuning knob to watch, they are a stage to move off the device.

Fix

One clause, no new claims: the same measurement, scoped to the plain Vulkan path and to v0.9.2.

Measured on an RK3588 Mali G610 with `--backend vulkan`, six runs of one fixed-seed request
produced six different renders, and the same draw lands outside `exp` outright as
`Piper TTS duration predictor produced a non-finite duration` — on v0.9.2 that abort is the normal
outcome of the plain `--backend vulkan` path (1 of 1 runs, first request, no sidecar involved),
not only the one-in-six draw the RKNN decoder sidecar used to add.

The rest of the paragraph — host pinning as the fix, ~1.9x on the duration stage, render-affecting
on CUDA — is unchanged and still reproduces.

Validation

Docs-only change, one file, one paragraph. The quoted behaviour is from
/root/wt-vk/runs/{piper_vk_en,piper_cpu_en}.{out,log,wav} and /root/wt-vk/runs/results.tsv on
the board (the same build also renders piper_tts on CPU at RTF 0.264, 9543.4 ms of audio, so the
aborts are Vulkan-specific and not a broken voice).

…th, not the sidecar

Measured on RK3588 Mali G610 with a native aarch64 build of v0.9.2: --backend vulkan
with no sidecar and no exec_plan aborts the first request with
'Piper TTS duration predictor produced a non-finite duration' (1 of 1 runs).
Before 0xShug0#911 sized the graph arenas the same request died earlier and louder, at
GGML_ASSERT(ctx->descriptor_set_idx < ctx->descriptor_sets.size()) in ggml-vulkan.cpp,
so the sidecar-scoped sentence understates the plain-path failure.
@0xShug0
0xShug0 merged commit 9cad7ad into 0xShug0:main Oct 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants