Skip to content

Use depthwise upsampling for PocketTTS on CPU - #806

Merged
0xShug0 merged 1 commit into
mainfrom
fix/pocket-tts-depthwise-upsampler
Oct 6, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/pocket-tts-depthwise-upsampler

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Related to #799.

Replace CPU Mimi upsampler expansion (32 MiB dense diagonal weights) with the existing framework depthwise module (64 KiB). Preserve streaming overlap, session-owned graph caches, and the original GPU paths. Only two PocketTTS source files change; no framework, ggml, spec, or interface changes.

CPU threads Decoder/frame before After Session RTF before After
2 34.98 ms 14.58 ms 0.557 0.302
4 30.50 ms 10.11 ms 0.461 0.207

Per-frame medians exclude the first two invocations; session RTF includes graph initialization. Whole-process CPU peak RSS fell from 663.5 to 603.9 MiB with the same Debug build and request.

Validation: offline long/short/long requests in one session and streaming output remain byte-identical on CPU, CUDA, and Vulkan. No performance regression identified; the GPU execution paths remain unchanged. Debug CLI/server build and whitespace check pass. Metal/HIP retain their original paths and were not run.

@0xShug0
0xShug0 merged commit 216e1c6 into main Oct 6, 2026
6 checks passed
@0xShug0
0xShug0 deleted the fix/pocket-tts-depthwise-upsampler branch October 6, 2026 00:58
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.

1 participant