Repository navigation
Add opt-in skipping of empty Drama3 chunks - #1200
Merged
Merged
Conversation
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.
Adds
skip_empty_chunks=falsefor 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 withDrama 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*.skip_empty_chunks=trueAll 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 --checkpassed. This reproduces the empty-chunk failure with different weights/hardware from the reporter; greedy did not reproduce their initial-asterisk failure.Closes #1188.