Skip to content

Switch to v1 vllm model runner - #3749

Merged
pzhan9 merged 3 commits into
pytorch:mainfrom
pzhan9:v1_model_runner
Jun 23, 2026
Merged

pzhan9 merged 3 commits into
pytorch:mainfrom
pzhan9:v1_model_runner

Conversation

@pzhan9

@pzhan9 pzhan9 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

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>1 generator setup (see the PR description in #3743).

As a result, switch back to V1.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 23, 2026
@pzhan9
pzhan9 requested review from tianyu-l and wwwjn June 23, 2026 21:04
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()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please create an issue on GH to track this vllm version regression.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pzhan9
pzhan9 merged commit df81df5 into pytorch:main Jun 23, 2026
8 of 12 checks passed
@pzhan9
pzhan9 deleted the v1_model_runner branch June 23, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rl ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants