Skip to content

fix(qwen3-tts): progressive EOS bias to cut late breath frames#840

Closed
Thorfy wants to merge 1 commit into
Blaizzy:mainfrom
Thorfy:fix/qwen3-tts-progressive-eos-bias
Closed

fix(qwen3-tts): progressive EOS bias to cut late breath frames#840
Thorfy wants to merge 1 commit into
Blaizzy:mainfrom
Thorfy:fix/qwen3-tts-progressive-eos-bias

Conversation

@Thorfy

@Thorfy Thorfy commented Jul 15, 2026

Copy link
Copy Markdown

Summary

Fixes #841

Test plan

  • python -m unittest mlx_audio.tts.tests.test_qwen3_tts.TestQwen3TTSEosBias TestQwen3TTSMaxTokens
  • ICL voice-clone short + slow/expressive utterances: no clipped speech, less end breath
  • Confirm batch ICL no longer hard-stops at text_len * 6

After Blaizzy#695 removed the ICL/instruct text-length max_tokens hard-cap, late
codec EOS left trailing breath-like frames. Encourage EOS with a progressive
logit bias once past max(75, text_len*6), while still honoring caller max_tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Qwen3-TTS ICL: late codec EOS leaves trailing breath frames (after #695)

1 participant