Repository navigation
Batch Drama3 streaming codec frames and overlap decoding with AR generation - #1065
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.
Changes
fish_drama3.codec_batch_frames=4andfish_drama3.codec_async_decode=true. Batching starts with one frame and flushes the final partial batch. Set these options to1andfalseto select one-frame synchronous decoding.Performance
RTX 5090, Debug C++17 builds, eight threads, the same Q4-expert/F16-tower GGUF and reference voice. Two fresh sessions per version/backend/mode, each with one warmup and three distinct 262–266-character clone requests, run sequentially. Settings: seed 42, temperature 1, top-k 4097, top-p 0.9, context 4096, text chunk size 2000. All outputs stopped naturally.
The comparison is main
d19c748bversus this branch with only the codec batching/overlap commit applied. Both use their default codec scheduling. Warm RTF uses summedsession.wall_msdivided by summed generated duration, excluding warmup; peak VRAM includes startup and warmup.RTF reductions are approximately 17.4%, 7.9%, 28.2%, and 12.5%, respectively. Peak VRAM increases by approximately 86–98 MiB. The codec remains on the GPU in both offload configurations.
Validation And Limits