Skip to content

Add opt-in skipping of empty Drama3 chunks - #1200

Merged
0xShug0 merged 2 commits into
mainfrom
fix/drama3-empty-chunk-1188
Nov 4, 2026
Merged

0xShug0 merged 2 commits into
mainfrom
fix/drama3-empty-chunk-1188

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Adds skip_empty_chunks=false for Drama3. When enabled, EOS before the first audio frame logs a warning and skips that chunk without adding it to generated history, matching upstream Fish Speech. If every chunk is empty, the request fails before WAV serialization with Drama 3 produced no audio: all text chunks were empty. The default error behavior is unchanged. No changes to sampling, decoder/codec state handling, or exported take text.

Validation used a Debug build on RTX 5090 CUDA with Q4_K_S experts and Q8_0 tower projections. The fixture was * The boat is here., text_chunk_size=1, max_tokens=8; the control omitted *.

Test Default / explicit false skip_empty_chunks=true
Streaming, temperature 1, seeds 1–16 Seeds 2 and 3 fail; 14 complete All 16 complete
Streaming, greedy fixture and control Both complete Both complete
Offline, seeds 2 and 3 Both fail Both complete
Offline, greedy fixture and control Both complete Both complete

All 18 streaming default cases retain byte-identical audio output against the pre-change baseline, including partial audio from failed streams. The 16 previously successful streaming cases also retain byte-identical audio with the option enabled. Offline greedy/control audio and take artifacts are identical across omitted, false, and true settings. Cases run sequentially within each session, including requests after failures and skipped chunks.

Debug server build, model-spec validation, and git diff --check passed. This reproduces the empty-chunk failure with different weights/hardware from the reporter; greedy did not reproduce their initial-asterisk failure.

Closes #1188.

@0xShug0
0xShug0 merged commit 38bf83e into main Nov 4, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/drama3-empty-chunk-1188 branch November 4, 2026 22:32
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.

Fish Speech Drama 3 Parity Roadmap

1 participant