Skip to content

kitten_tts2: apply repetition penalty to the silence token - #1211

Merged
0xShug0 merged 1 commit into
0xShug0:mainfrom
Twistarkle:kitten-tts2-penalize-silence
Nov 5, 2026
Merged

0xShug0 merged 1 commit into
0xShug0:mainfrom
Twistarkle:kitten-tts2-penalize-silence

Conversation

@Twistarkle

Copy link
Copy Markdown
Contributor

Fixes #1209.

Removes the silence-token (4299) exemption from the repetition penalty so the port matches upstream KittenML/KittenTTS@64baa6a. Only <speech_end>/[STOP] stay exempt, which they already are since sampling stops on them.

Quick before/after on db84f67 (Q8_0 GGUF, seed 1234, default max_tokens, Vulkan; CPU behaves the same):

Voice Text Tokens used / budget Longest pause Silence share
Luna (preset) technical paragraph before 663 / 663 (hit cap) 2.86 s 31%
after 651 / 663 0.52 s 9%
Luna (preset) nature paragraph before 722 / 722 (hit cap) 1.50 s 26%
after 638 / 722 0.74 s 11%
Cloned voice (29 s reference) technical paragraph before 663 / 663 (hit cap) 1.12 s 26%
after 663 / 663 (hit cap) 0.70 s 9%
Cloned voice (29 s reference) nature paragraph before 722 / 722 (hit cap) 1.66 s 27%
after 683 / 722 0.66 s 13%

Cloning is where this shows up most. The one "after" run that still reaches the cap is just a slow speaker: with max_tokens=1200 it ends on its own at 669 tokens, so that's the default budget being tight rather than silence.

🤖 Generated with Claude Code

@0xShug0
0xShug0 merged commit 828fb26 into 0xShug0:main Nov 5, 2026
7 checks passed
@0xShug0

0xShug0 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

@Twistarkle Thanks! PR merged.

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.

kitten_tts2: long pauses and runaway generation because the silence token skips repetition penalty

2 participants