Repository navigation
Switch to v1 vllm model runner - #3749
Merged
Merged
Conversation
tianyu-l
approved these changes
Jun 23, 2026
Comment on lines
385
to
387
| # The vLLM v2 logprob Triton kernel bypasses the aten overrides above; | ||
| # route it through trainer's function to match the trainer exactly. | ||
| force_logprobs_fn_for_batch_invariance() |
Contributor
There was a problem hiding this comment.
I guess we can keep this, but the reason we added in the first place seems v2 usage.
| use_flex = isinstance(inner_attn, FlexAttention.Config) | ||
|
|
||
| # Mirror the production VLLMGenerator so the test exercises the same | ||
| # batch-invariant path (v2 runner is required for the logprob-kernel patch). |
Contributor
There was a problem hiding this comment.
let's not delete this comment
| ), "Only varlen and flex attention backends are allowed." | ||
|
|
||
| os.environ["VLLM_USE_V2_MODEL_RUNNER"] = "1" | ||
| os.environ["VLLM_USE_V2_MODEL_RUNNER"] = "0" |
Contributor
There was a problem hiding this comment.
please create an issue on GH to track this vllm version regression.
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.
We do not need V2 model runner for now. On the other hand, v2 runner has a bug which blocks it from being used with
DP>1generator setup (see the PR description in #3743).As a result, switch back to V1.