Commit 0c4e02c
Backport inference fixes from upstream PRs QwenLM#234 and QwenLM#126
- QwenLM#234: Fix sample loss in chunked_decode — the context removal logic
over-trims audio at chunk boundaries, causing shorter output and
audible pops. Take expected sample count from the end instead of
trimming a fixed amount from the front.
- QwenLM#126: Fix tuple item assignment in _normalize_audio_inputs — mutating
a tuple element silently fails, breaking stereo-to-mono conversion.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8ecda9b commit 0c4e02c
2 files changed
Lines changed: 4 additions & 3 deletions
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
| 894 | + | |
| 895 | + | |
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
| 262 | + | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments