Repository navigation
[Bugfix][Scheduler] Respect disabled chunked prefill for multimodal requests - #65399
Merged
njhill merged 4 commits intoNov 4, 2026
Merged
Conversation
…equests Defer whole requests when encoder capacity would force partial prefill, releasing cache references acquired during the abandoned admission attempt. Ignore long-prefill thresholds when chunked prefill is disabled. Cover async encoder-cache pressure and synchronous prefill thresholds with scheduler regressions and real image-embedding comparisons. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Jakub Zakrzewski <jzakrzewski@nvidia.com>
jzakrzew
requested review from
ApostaC,
ProExpertProg,
ZJY0516,
alexm-redhat,
heheda12345,
houseroad,
ivanium,
mgoin,
njhill,
orozery,
robertgshaw2-redhat,
tlrmchlsmth,
yewentao256,
youkaichao and
ywang96
as code owners
November 3, 2026 13:12
Isotr0py
requested review from
Isotr0py
and removed request for
ZJY0516,
robertgshaw2-redhat and
ywang96
November 4, 2026 13:06
njhill
reviewed
Nov 4, 2026
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Jakub Zakrzewski <jzakrzewski@nvidia.com>
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Jakub Zakrzewski <jzakrzewski@nvidia.com>
njhill
approved these changes
Nov 4, 2026
Member
|
/ci run |
|
✅ Triggered Buildkite CI #99993 for commit ℹ️ This PR is 151 commits behind upstream |
ejrtks1020
added a commit
to ejrtks1020/vllm
that referenced
this pull request
Nov 4, 2026
…mask Resolve the scheduler conflict with vllm-project#65399: keep both deferral guards (whole-prompt prefix LM and disabled chunked prefill), and release encoder cache references in the whole-prompt guard as well, since it also defers the request after encoder inputs were scheduled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kang Nahoon <ejrtks102020@gmail.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Fix partial prefill of multimodal pooling requests when chunked prefill is disabled. Bidirectional MEAN-pooling models can crash under async encoder-cache pressure or an explicit long-prefill threshold.
Claims
long_prefill_token_thresholdwhen chunked prefill is disabled.Validation
Reproduced with real weights for
nvidia/llama-nemotron-embed-vl-1b-v2, using Model Runner V2. Both cases queue two distinct images with chunked prefill disabled:long_prefill_token_threshold=128, which incorrectly splits the queued prompts.With the unchanged upstream scheduler (
c7a7607519), both cases raiseRuntimeError: partial prefill is not supported with MEAN pooling. With this fix, both complete and every batched embedding matches its individually processed reference with cosine similarity ≥0.999.Focused regressions, 2 passed each:
Details
The scheduler checks the token budget before scheduling encoder inputs. Encoder-cache exhaustion can subsequently shorten the request to the text before an image, violating disabled chunked prefill. Async scheduling exposes this when an earlier batch still holds encoder-cache references. An explicit long-prefill threshold provides a separate path to partial prefill under synchronous scheduling.
The encoder check lives in
_try_schedule_encoder_inputs. The threshold is applied only when chunked prefill is enabled.Open-PR searches found no equivalent fix. Related work: #63033 adds a PaliGemma-specific whole-prompt guard; #61733 rejects permanently oversized prompts at admission. Neither covers these two triggers.
Pull Request Checklist
I used vLLM's
/pr-checklistskill. (Mandatory for agents, optional for humans).AI assistance was used during the creation of this PR.
Design Fit: Minimizes impact on core components, reuses existing functionality, and justifies added complexity.
Testing and Validation: Validates the change and ensures any added tests are meaningful and reliable, with CI coverage or documented CI resource constraints and validation performed outside CI.
Code Quality and Style: Keeps code and comments clear and concise, and updates relevant documentation and examples.
Pull Request Contents: Includes a brief summary and relevant links, supports claims with evidence, explains root causes and implementation trade-offs, and follows the contributing guide.