Skip to content

Conversation

@yewentao256
Copy link
Member

@yewentao256 yewentao256 commented Nov 17, 2025

Purpose

We don't hope user to turn on/off batch invariant during inferrence, so just remove the code for better maintainence

Signed-off-by: yewentao256 <[email protected]>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the batch invariant feature by removing several unused functions, including disable_batch_invariant_mode and the set_batch_invariant_mode context manager. The goal is to simplify maintenance by removing the ability to toggle this feature at runtime. While this simplifies the code, I have a significant concern about removing the cleanup logic, as it makes process-wide changes to PyTorch and environment variables permanent, which can negatively impact applications using vLLM as a library.

Signed-off-by: yewentao256 <[email protected]>
@yewentao256 yewentao256 added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 17, 2025
@vllm-bot vllm-bot merged commit 3ddcf46 into main Nov 18, 2025
46 of 48 checks passed
@vllm-bot vllm-bot deleted the wentao-remove-unused-function branch November 18, 2025 04:29
@DarkLight1337
Copy link
Member

Entrypoint tests are failing on main, merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants