← Back to Pull requests

Send mm_payload with return_mm_kwargs on vLLM render copies #3455

Closed
unknown closed this pull request without merging on Oct 15, 2026 16:33 UTC
View on GitHub
unknown unknown commented on Oct 15, 2026 15:39 UTC
Author

What type of PR is this?
/kind bug

What this PR does / why we need it:

vllm.omitMMKwargs adds "mm_payload": "none" next to "return_mm_kwargs": false on the render copy.

vllm-project/vllm#61427 replaced the return_mm_kwargs render option with mm_payload and kept return_mm_kwargs as a deprecated alias that vLLM ignores when mm_payload is set. With only return_mm_kwargs on the render copy, a client that sends "mm_payload": "tensors" overrides the option on vLLM main, so the render response carries the processed tensors again. Routing stays correct; render time goes back to the full-tensor cost.

The vLLM v0.32 release branch has return_mm_kwargs only, so the render copy carries both fields: v0.32 reads return_mm_kwargs, and versions with vllm-project/vllm#61427 read mm_payload. Both are spliced after the client's fields, and the later duplicate key wins in vLLM's parser, so client values for either field are overridden. v0.32 logs the unknown mm_payload at debug level only. omitMMKwargs: false sends the render copy without either field, as before.

Which issue(s) this PR fixes:

Part of #1552

Test plan

  • The render copy gets both fields before its closing brace, client values for either field are overridden, and a non-object body is rejected

  • With prefillOnly, the render copy keeps the output-budget rewrite and carries both fields

  • Bodies spliced by omitMMKwargs for chat, completions, Responses and Messages, validated with vLLM's request models from releases/v0.32.0 (7960eeb9de) and main (a97d19d792): v0.32 resolves return_mm_kwargs=false and main resolves mm_payload="none", including when the client sent "return_mm_kwargs": true, "mm_payload": "tensors"; no warnings logged

  • make presubmit and make test-unit
  • Release note _(write NONE if no user-facing change)_:
    ``release-note
    vllm.omitMMKwargs also sends vLLM's mm_payload render field, so render responses stay free of multimodal tensors on vLLM versions with mm_payload when a client sends its own value.
    ``

    Diff: 262 lines (+196 / -66) across 3 files Reviewer: ahg-g Review duration: 53m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.67) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.67 · 262 lines diff across 3 files
    0.67
    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.333
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.067
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #3455"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 67.4% (HIGH) · Higher = larger blast radius
    67.4%
    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: 26.6% · Safe to merge
    26.6%