Skip to content

Refactor Zonos3 execution and preserve chunked voice consistency - #1282

Merged
0xShug0 merged 1 commit into
mainfrom
refactor/zonos3-shared-moe
Nov 14, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
refactor/zonos3-shared-moe

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Unreferenced Zonos3 text chunks can select different voices, and some requests lose the final sentence. Anchor later chunks to the first chunk’s generated acoustic codes while preserving explicit references and single-chunk output.

Reuse framework MoE resources, depthwise convolution, attention and weighted-statistics modules; retain decoder state/graphs between requests and remove redundant host copies and zero-tap resampling work. Host spectral conversion and the existing FFT now use the configured thread count. All implementation changes are model-local; no framework or GGML changes.

The public guidance option is now guidance_scale, without a cfg_scale alias. Existing model-prefixed MoE options remain accepted alongside the shared controls.

Validation

Direct comparison: main 51fa5e611 versus this branch 9ae5f757a. RTX 5090, Ryzen 9 7900X, Debug build, eight threads, native PTQ package. Temperature 0.75, maximum 400 generated rows per chunk, text normalization disabled, endline chunking with a 160-character budget, seeds 42 and 2026. Warmed A → B → B → A, six measured requests per side/workload/backend; 108 measured requests succeeded.

Backend Workload Main RTF PR RTF
CUDA Single chunk 0.03927 0.03517
CUDA Four chunks 0.03949 0.03598
CUDA Streaming four chunks 0.03998 0.03685
Vulkan Single chunk 0.05016 0.04519
Vulkan Four chunks 0.05151 0.04583
Vulkan Streaming four chunks 0.05184 0.04643
CPU Single chunk 0.14411 0.14319
CPU Four chunks 0.15178 0.14891
CPU Streaming four chunks 0.15246 0.15180

CPU performance is essentially unchanged. Chunked output duration changes after fixing voice conditioning; RTF uses actual output duration.

Backend Main peak VRAM PR peak VRAM
CUDA 1,821 MiB 1,843 MiB
Vulkan 1,270 MiB 1,330 MiB
  • Single-chunk WAVs are byte-identical on CUDA and Vulkan. CPU lengths match, cosine exceeds 0.99999999996, and maximum difference is one PCM step.
  • Nemotron diarization, without a speaker-count hint, detects one speaker in every PR four-chunk recording for both seeds on all three backends; main produces two or three.
  • Qwen3-ASR reports all four sentences in PR outputs, with 0–1.67% WER; the sole remaining difference is “9” versus “nine.” Main loses the last sentence with seed 42 on CPU and Vulkan.
  • Streaming PCM matches complete results and separately generated chunked WAVs in all 36 checks. All 36 repeated-seed lifecycle checks pass.

@0xShug0
0xShug0 merged commit 5394610 into main Nov 14, 2026
7 checks passed
@0xShug0
0xShug0 deleted the refactor/zonos3-shared-moe branch November 14, 2026 06:59
@0xShug0

0xShug0 commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

@Ryu1845 I haven't looked into Zonos2 yet, but it may have the same voice consistency issue.

@Ryu1845

Ryu1845 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Argh, thanks for the heads up. I'll look into this ASAP

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