Skip to content

Conversation

@mgoin
Copy link
Member

@mgoin mgoin commented Sep 25, 2025

Reverts #25613

…tion` ca…"

This reverts commit 4492e3a.

Signed-off-by: yewentao256 <zhyanwentao@126.com>
@yewentao256 yewentao256 force-pushed the revert-25613-wentao-fix-torch-function-super-issue branch from be236f9 to 416c7d5 Compare September 25, 2025 15:21
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 reverts a previous change that introduced a workaround for TorchDynamo on PyTorch versions older than 2.8.0. The reverted code in BasevLLMParameter.__torch_function__ returned NotImplemented on these older PyTorch versions. While this fixed a TorchDynamo issue, it appears to have introduced a critical regression related to LoRA adapters, causing infinite recursion. This revert correctly removes the version-specific logic, restoring the previous behavior of always delegating to super().__torch_function__. This resolves the LoRA regression. While this reintroduces the original TorchDynamo issue for users on older PyTorch versions, this seems to be an intentional trade-off. The change is simple, clean, and effectively addresses the immediate regression. The code is correct and I have no further suggestions.

@yewentao256
Copy link
Member

yewentao256 commented Sep 25, 2025

force-pushed the revert-25613-wentao-fix-torch-function-super-issue branch from be236f9 to 416c7d5

This fixes the DCO CI runs

@vllm-bot vllm-bot merged commit 916bd92 into main Sep 25, 2025
14 of 16 checks passed
@vllm-bot vllm-bot deleted the revert-25613-wentao-fix-torch-function-super-issue branch September 25, 2025 16:45
yewentao256 added a commit that referenced this pull request Oct 3, 2025
…tion` calling disabled super()" (#25681)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
Signed-off-by: yewentao256 <zhyanwentao@126.com>
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 10, 2025
…tion` calling disabled super()" (vllm-project#25681)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
Signed-off-by: xuebwang-amd <xuebwang@amd.com>
choprahetarth pushed a commit to Tandemn-Labs/vllm that referenced this pull request Oct 11, 2025
…tion` calling disabled super()" (vllm-project#25681)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
lywa1998 pushed a commit to lywa1998/vllm that referenced this pull request Oct 20, 2025
…tion` calling disabled super()" (vllm-project#25681)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 24, 2025
…tion` calling disabled super()" (vllm-project#25681)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants