QVAC-17236 [Chatterbox] Investigate possibilities of reducing RTF#1674
Merged
GustavoA1604 merged 7 commits intoApr 22, 2026
Merged
Conversation
GustavoA1604
previously approved these changes
Apr 21, 2026
GustavoA1604
previously approved these changes
Apr 21, 2026
ogad-tether
previously approved these changes
Apr 22, 2026
…tro paragraph) to reflect that the encoder runs during load(), not on first synthesize()
ogad-tether
previously approved these changes
Apr 22, 2026
mario-rei
previously approved these changes
Apr 22, 2026
…s-onnx: bump "0.8.4" → "version": "0.8.5"
GustavoA1604
approved these changes
Apr 22, 2026
mario-rei
approved these changes
Apr 22, 2026
ogad-tether
approved these changes
Apr 22, 2026
Contributor
|
/review |
Contributor
Tier-based Approval Status |
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.
Previous Session Summary: Chatterbox RTF Reduction
Goal: Reduce the Real-Time Factor (RTF) for the Chatterbox TTS model in packages/qvac-lib-infer-onnx-tts.
Bottleneck Analysis
The inference pipeline was profiled and broken down:
Phase English (q4) Multilingual
Speech Encoder
~2.7s
~2.7s
LM Generation
~25s (62%)
~23s (17%)
Conditional Decoder
~16s (37%)
~109s (82%)
Optimizations Implemented
Test Results
Remaining Opportunities Identified (not yet implemented)
- KV cache optimization: Avoiding redundant tensor copies between ORT and CPU vectors (major effort)
- ORT IO binding: Directly chaining output tensors as inputs to next step
- Conditional decoder: Dominates multilingual RTF (82%) but is a single large model — limited optimization without model-level changes
Pls take a look: @freddy311082, @GustavoA1604