← Back to Pull requests

[Bugfix] MiniCPM-o 4.5 duplex: reset turn_end on every unit to fix st… #8822

Closed
unknown closed this pull request without merging on Oct 13, 2026 04:26 UTC
View on GitHub
unknown unknown commented on Oct 12, 2026 07:27 UTC
Author

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::llm2tts set 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 llm2tts sets the <turn_end> flag

3. How will this work move that variable?

By setting is to False after each turn when it's not supposed to be ended

4. 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 to False when 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.

[!NOTE]

To avoid agent spam, vLLM-Omni limits contributors without write access to 5 open PRs. If this blocks well-intentioned critical work, please contact a committer to request bypass list access.

(anything written below this line will be removed by GitHub Actions)

Diff: 313 lines (+234 / -79) across 3 files Reviewer: twu3202 Review duration: 1258m
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
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 45.3% (MEDIUM) · Higher = larger blast radius
45.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17.9% · Safe to merge
17.9%