Repository navigation
Fix PocketTTS decoder lifetimes across chunk and session reuse - #1314
Merged
Merged
Conversation
0xShug0
force-pushed
the
fix/pocket-tts-vulkan-robotic-voice-1310
branch
from
November 16, 2026 22:33
f7a3feb to
c3d1672
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PocketTTS can overwrite Mimi decoder constants when reusing a graph across text chunks, producing quieter, altered speech after the first chunk. Preserve the offline decoder constants and streaming transformer inputs/constants across graph executions.
The fix is confined to PocketTTS tensor-lifetime flags and a gated real-weight lifecycle test. It retains the existing streaming quality and chunk-reset fixes. Graph math, precision, sampling, defaults, PocketTTS Small, shared framework code and GGML are unchanged. The separate capture-cache cleanup calls have been removed.
Validation against main
87a2fadfc, using Debug builds, the English BF16 package, eight server threads and sequential warmed A→B→B→A blocks:Each row has 30 measured requests per condition. CUDA offline was additionally confirmed in reverse order with 60 requests per condition; its table row uses that confirmation. No CPU performance regression was observed.
Process peak VRAM for the warmed workload: CUDA offline 1,150 → 1,150 MiB, CUDA streaming 1,068 → 1,068 MiB, Vulkan offline 536.84 → 536.84 MiB, Vulkan streaming 413.66 → 413.72 MiB. CPU peak RSS was essentially unchanged.
Correctness and lifecycle:
The reporter’s exact #1310 request/reference was unavailable; the deterministic reproducer demonstrates the same altered/quiet speech symptom. Intel/Adreno-specific Vulkan limits and forced-OOM recovery were not validated. Automated checks cannot rule out every rare audible artifact.
Fixes #1310.