[Bugfix] MiniCPM-o 4.5 duplex: reset turn_end on every unit to fix st… #8822
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 313 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #8822"
general
weight: 0.35
twu3202
Fix the MiniCPM-o 4.5 duplex's bug: reset turn_end on every unit
<!-- markdownlint-disable -->
In
vllm_omni/model_executor/stage_input_processors/minicpmo_4_5_omni.py::llm2ttsset meta["turn_end"] = True on the unit containing <|turn_eos|> but never wrote False on other units. Every later unit then got the turn-end Talker budget (104 tokens, no floor, EOS masked after each 25-frame boundary), generated >=5 extra frames past its text, and re-spoke the tail of the previous unit: repeated words and slower speech from the second reply on.Write the flag on every native duplex handoff, like turn_start.
Contributor intent (required human answers)
All four questions must be answered by the human contributor before submission.
An agent may reuse explicit human answers with a public-safe source reference;
it must not invent, infer, or prefill missing answers. If an answer is missing
or materially ambiguous, ask the human and wait. Do not publish private
conversation content without authorization.
1. What outcome do you want to achieve?
Fix the issue https://github.com/vllm-project/vllm-omni/issues/8820
2. What is the highest-leverage variable for that outcome?
The way
llm2ttssets the<turn_end>flag3. How will this work move that variable?
By setting is to
Falseafter each turn when it's not supposed to be ended4. Whose customer or user needs does this address, and what are those needs?
Everyone who wants to use MiniCPM-o 4.5 for multi-turn audio conversation
Purpose
Set the
<turn_end>flag toFalsewhen it's not the ending turn.Test Plan
Rerun reproduce.py after fix
https://gist.github.com/lrq619/278ea6a2384c5c3d2d6aed600eb03b47
vLLM Version:
vLLM-Omni Commit:
198c2105930bd1bac0b0966ffd0997cdd84d4790
Test Result
turn2_fixed.wav
Now the audio went on smoothly
BEFORE SUBMITTING: read CONTRIBUTING.md and run the precheck-pr skill with the code agent for a self-check against project conventions.
(anything written below this line will be removed by GitHub Actions)