pytorch - 💡(How to fix) Fix [vllm] [2.12 regression] Qwen3-VL vision-connector LoRA generation diverges from golden output [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#181631Fetched 2026-04-28 06:24:17
View on GitHub
Comments
1
Participants
2
Timeline
117
Reactions
0
Author
Participants
Timeline (top)
mentioned ×54subscribed ×54labeled ×7commented ×1

Under torch 2.12.0 + triton 3.7.0, vLLM's test_qwen3vl_vision_lora (Qwen3-VL with the EpochEcho/qwen3-4b-vl-lora-vision-connector LoRA adapter) generates output that doesn't match the golden expected pattern:

AssertionError: Generated text "A majestic tower stands tall" doesn't match expected pattern "A majestic skyscraper stands tall, partially obscured by a vibrant canopy of cherry blossoms, against a clear blue sky."

Passes on torch 2.11. Newly failing on the 2026-04-27 run; Qwen3-VL is a different model from #181409 (which is Qwen2-VL). Blocking the torch 2.12 upgrade for vLLM (vllm-project/vllm#40077).

Root Cause

Under torch 2.12.0 + triton 3.7.0, vLLM's test_qwen3vl_vision_lora (Qwen3-VL with the EpochEcho/qwen3-4b-vl-lora-vision-connector LoRA adapter) generates output that doesn't match the golden expected pattern:

AssertionError: Generated text "A majestic tower stands tall" doesn't match expected pattern "A majestic skyscraper stands tall, partially obscured by a vibrant canopy of cherry blossoms, against a clear blue sky."

Passes on torch 2.11. Newly failing on the 2026-04-27 run; Qwen3-VL is a different model from #181409 (which is Qwen2-VL). Blocking the torch 2.12 upgrade for vLLM (vllm-project/vllm#40077).

Code Example

tests/lora/test_qwenvl.py::test_qwen3vl_vision_lora

---

config = TestConfig(
    model_path=QWEN3VL_MODEL_PATH,
    lora_path=qwen3vl_vision_lora_files,
    mm_processor_cache_gb=0,
    enable_tower_connector_lora=True,
)
tester = Qwen2VLTester(config)
for lora_id in [1, 2]:
    tester.run_test(TEST_IMAGES, expected_outputs=EXPECTED_OUTPUTS, lora_id=lora_id)
RAW_BUFFERClick to expand / collapse

Summary

Under torch 2.12.0 + triton 3.7.0, vLLM's test_qwen3vl_vision_lora (Qwen3-VL with the EpochEcho/qwen3-4b-vl-lora-vision-connector LoRA adapter) generates output that doesn't match the golden expected pattern:

AssertionError: Generated text "A majestic tower stands tall" doesn't match expected pattern "A majestic skyscraper stands tall, partially obscured by a vibrant canopy of cherry blossoms, against a clear blue sky."

Passes on torch 2.11. Newly failing on the 2026-04-27 run; Qwen3-VL is a different model from #181409 (which is Qwen2-VL). Blocking the torch 2.12 upgrade for vLLM (vllm-project/vllm#40077).

Environment

  • torch: 2.12.0+cu130 (test channel)
  • triton: 3.7.0
  • CUDA: 13.0 / Driver: 570.133.20
  • Python: 3.12.13
  • Base model: Qwen3-VL (QWEN3VL_MODEL_PATH)
  • LoRA adapter: EpochEcho/qwen3-4b-vl-lora-vision-connector

Reproduction

Failing test:

tests/lora/test_qwenvl.py::test_qwen3vl_vision_lora
config = TestConfig(
    model_path=QWEN3VL_MODEL_PATH,
    lora_path=qwen3vl_vision_lora_files,
    mm_processor_cache_gb=0,
    enable_tower_connector_lora=True,
)
tester = Qwen2VLTester(config)
for lora_id in [1, 2]:
    tester.run_test(TEST_IMAGES, expected_outputs=EXPECTED_OUTPUTS, lora_id=lora_id)

Assertion (in Qwen2VLTester.run_test): assert expected.startswith(generated).

Observed: "A majestic tower stands tall" Expected: "A majestic skyscraper stands tall, partially obscured by a vibrant canopy of cherry blossoms, against a clear blue sky."

Reproducibility

Diagnosis request

Same family as pytorch/pytorch#181409 (Qwen2-VL vision-tower LoRA divergence) and pytorch/pytorch#181168 (Qwen2-VL multi-image divergence). The Qwen3-VL LoRA case is a different model (Qwen3 vs Qwen2) and a different LoRA target (vision connector), but the symptom — small numerical drift on torch 2.12 producing a deterministic divergence in LoRA-adapted multimodal generation — is the same family. Could a maintainer investigate the shared kernel-level cause (matmul / attention / rotary) under LoRA?

Links

  • vLLM PR: vllm-project/vllm#40077
  • Umbrella: pytorch/pytorch#180899

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @aakhundov @coconutruben @jataylo

extent analysis

TL;DR

Downgrade to torch 2.11 to potentially resolve the AssertionError caused by numerical drift in LoRA-adapted multimodal generation.

Guidance

  • Investigate the shared kernel-level cause (matmul / attention / rotary) under LoRA, as the symptom is similar to previous issues (pytorch/pytorch#181409 and pytorch/pytorch#181168).
  • Verify that the issue is specific to the Qwen3-VL model and the EpochEcho/qwen3-4b-vl-lora-vision-connector LoRA adapter by testing other models and adapters.
  • Run the failing test (tests/lora/test_qwenvl.py::test_qwen3vl_vision_lora) with torch 2.11 to confirm that the issue is resolved.
  • Consider opening a new issue in the pytorch repository to investigate the root cause of the numerical drift.

Example

No code snippet is provided as the issue is related to a specific model and LoRA adapter, and the code is already available in the issue description.

Notes

The issue may be related to changes in the torch 2.12 version, and downgrading to torch 2.11 may only be a temporary workaround. A thorough investigation of the root cause is necessary to provide a permanent fix.

Recommendation

Apply the workaround by downgrading to torch 2.11, as it has been confirmed to resolve the issue in previous builds.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

pytorch - 💡(How to fix) Fix [vllm] [2.12 regression] Qwen3-VL vision-connector LoRA generation diverges from golden output [1 comments, 2 participants]