docs: add repetition_penalty param to README with streaming context

This commit is contained in:
Kedara Studios
2026-02-07 10:36:34 +01:00
parent 837960761b
commit a3f95c5e65
+4
View File
@@ -12,6 +12,9 @@ From [dffdeeq/Qwen3-TTS-streaming](https://github.com/dffdeeq/Qwen3-TTS-streamin
Added in this fork:
- **Two-phase streaming** - faster first-chunk latency
- **Repetition penalty for streaming** - prevents token loops that cause looping audio and runaway generation. Defaults to 1.0 (disabled) because streaming generates frame-by-frame with CUDA graph constraints where repetition manifests differently than the non-streaming path (which defaults to 1.05)
- **Multiple EOS token detection** - broader termination coverage for reliable generation stopping
- **Hann window crossfade** - click-free chunk boundaries with proper fade-in/fade-out
## Two-Phase Streaming
@@ -71,6 +74,7 @@ for chunk, sr in model.stream_generate_voice_clone(
| `first_chunk_emit_every` | 0 | Phase 1 emit interval (0 = disabled) |
| `first_chunk_decode_window` | 48 | Phase 1 decode window |
| `first_chunk_frames` | 48 | Switch to phase 2 after N frames |
| `repetition_penalty` | 1.0 | Penalizes repeated tokens (1.0 = disabled). Increase toward 1.05 if you hear looping artifacts |
## Installation