Skip to content

fix qwen3vl mrope op#4484

Merged
wangxiyuan merged 3 commits intovllm-project:mainfrom
shaopeng-666:fix_mrope
Dec 8, 2025
Merged

fix qwen3vl mrope op#4484
wangxiyuan merged 3 commits intovllm-project:mainfrom
shaopeng-666:fix_mrope

Conversation

@shaopeng-666
Copy link
Copy Markdown
Collaborator

@shaopeng-666 shaopeng-666 commented Nov 27, 2025

What this PR does / why we need it?

Qwen2.5-VL mrope precision problem would been solved once this pr is merged

Does this PR introduce any user-facing change?

No

How was this patch tested?

Test on G8600 with textVQA dataset

Signed-off-by: 李少鹏 <lishaopeng21@huawei.com>
@github-actions
Copy link
Copy Markdown
Contributor

👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:‌‌

  • A PR should do only one thing, smaller PRs enable faster reviews.
  • Every PR should include unit tests and end-to-end tests ‌to ensure it works and is not broken by other future PRs.
  • Write the commit message by fulfilling the PR description to help reviewer and future developers understand.

If CI fails, you can run linting and testing checks locally according Contributing and Testing.

Copy link
Copy Markdown
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 addresses a precision issue with the mrope fusion operator on Ascend NPUs. The changes involve removing a workaround that disabled the operator on x86 platforms, indicating the underlying precision problem has been resolved for the specific qwen3vl model configuration. Additionally, an unused import is cleaned up, and a call to .contiguous() is added for the positions tensor before passing it to the npu_mrope operator. This is a good defensive measure to ensure correctness by providing a contiguous tensor as expected by the kernel. The changes are logical and well-contained.

Signed-off-by: 李少鹏 <lishaopeng21@huawei.com>
@wangxiyuan wangxiyuan merged commit 9766cf9 into vllm-project:main Dec 8, 2025
17 of 19 checks passed
@ApsarasX
Copy link
Copy Markdown
Collaborator

ApsarasX commented Dec 8, 2025

please cherry-pick this PR to branch v0.11.0-dev

zhangxinyuehfad pushed a commit to zhangxinyuehfad/vllm-ascend that referenced this pull request Dec 9, 2025
### What this PR does / why we need it?
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Signed-off-by: 李少鹏 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
zhangxinyuehfad added a commit to zhangxinyuehfad/vllm-ascend that referenced this pull request Dec 9, 2025
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
No
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Signed-off-by: 李少鹏 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
Co-authored-by: hfadzxy <starmoon_zhang@163.com>
zhangxinyuehfad pushed a commit to zhangxinyuehfad/vllm-ascend that referenced this pull request Dec 9, 2025
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
No
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Co-authored-by: 李少鹏 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
zhangxinyuehfad pushed a commit to zhangxinyuehfad/vllm-ascend that referenced this pull request Dec 9, 2025
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
No
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Co-authored-by: 李少鹏 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
Signed-off-by: hfadzxy <starmoon_zhang@163.com>
wangxiyuan added a commit that referenced this pull request Dec 9, 2025
### What this PR does / why we need it?
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
### Does this PR introduce _any_ user-facing change? No
### How was this patch tested?
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Signed-off-by: hfadzxy <starmoon_zhang@163.com>
Co-authored-by: shaopeng-666 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
weijinqian0 pushed a commit to weijinqian0/vllm-ascend that referenced this pull request Dec 9, 2025
### What this PR does / why we need it?
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Signed-off-by: 李少鹏 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Clorist33 pushed a commit to Clorist33/vllm-ascend that referenced this pull request Dec 9, 2025
)

### What this PR does / why we need it?
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
### Does this PR introduce _any_ user-facing change? No
### How was this patch tested?
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Signed-off-by: hfadzxy <starmoon_zhang@163.com>
Co-authored-by: shaopeng-666 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
Clorist33 pushed a commit to Clorist33/vllm-ascend that referenced this pull request Dec 10, 2025
### What this PR does / why we need it?
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Signed-off-by: 李少鹏 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
Mercykid-bash pushed a commit to Mercykid-bash/vllm-ascend that referenced this pull request Dec 10, 2025
### What this PR does / why we need it?
Qwen2.5-VL mrope precision problem would been solved once this pr is
merged
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Test on G8600 with textVQA dataset

- vLLM version: v0.11.2
- vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.2

---------

Signed-off-by: 李少鹏 <lishaopeng21@huawei.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants