Fix PocketTTS prompt graph overflow - #1
Open
RANGROO wants to merge 36 commits into
Open
Conversation
Change size_t to std::size_t in noise.h, fill Debian compilation issue
- pack QKV and gate/up projections and use fused SwiGLU in the shared Qwen decoder path - use grouped FlashAttention, F16 bucketed KV caches, direct set-rows updates, and CUDA-friendly RoPE/view/set-rows graphs - retain and reuse cloned-reference KV prefixes so repeated server requests prefill only their text suffix - add graph and F16 KV correctness coverage plus fixed-seed request-level CUDA benchmark/parity tooling - document the optimized Higgs runtime controls and reproducible validation flow
…rmance Optimize Higgs Audio v3 inference
# Conflicts: # docs/tts.md
# Conflicts: # README.md # src/framework/runtime/registry.cpp
RANGROO
marked this pull request as ready for review
July 29, 2026 05:29
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.
Problem
PocketTTS aborts the entire audio.cpp server when long or token-dense prompts overflow the fixed 32,768-node FlowLM prompt graph. The crash occurs while adding per-step key/value cache transfer nodes.
Change
No API, configuration, model, or migration changes are included.
Validation
audiocpp_serverwith CUDA 12.8 (scripts/build_linux.sh --backend cuda --native-cpu OFF --target audiocpp_server -j 8)albavoice: HTTP 200, valid WAVLocal deployment
The CUDA build was deployed to
/home/dwemer/audio.cpp/build/bin/audiocpp_serverand verified through the installed port8086. HerikaServer TTS Studio reportsPocketTTS (audio.cpp) Connected.Limits