Repository navigation
Conversation
Since sgl-project#41272 the Qwen-Image lossless added-QKV split applies only when to_added_qkv is a MergedColumnParallelLinear (LoRA wrappers are called as they are), so the plain nn.Module fake in test_qwen_added_qkv_lossless_uses_three_reference_gemms now takes the packed path and the test fails on main and on every PR's merge ref. The fake subclasses MergedColumnParallelLinear and skips its __init__, which needs no parallel state here.
This was referenced Sep 27, 2026
A projection that is not a MergedColumnParallelLinear (a LoRA wrapper) is called as it is on the lossless path since sgl-project#41272; the packed fake exercises the genuine split, the wrapped fake pins the call-through.
5 tasks done
Contributor
Author
|
Superseded: #41339 carried these two commits and was merged as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
#41272 made the Qwen-Image lossless added-QKV split apply only when
to_added_qkvis aMergedColumnParallelLinear(LoRA wrappers are called as they are). The fake_PackedAddedQKVintest_model_fast_paths.py::test_qwen_added_qkv_lossless_uses_three_reference_gemmsis a plainnn.Module, so it now takes the packed path and the test fails withassert packed.calls == 0(got 1) onmainand on every PR's merge ref (seen on #41340 run 36333720101, jobs 108660581027 and 108667121455, two different H100 hosts). Because the JIT kernel job stops at the first failing file, the remaining kernel tests in that job do not run either.Modifications
Test-only, the production LoRA guard and the assertions are unchanged:
_PackedAddedQKVsubclassesMergedColumnParallelLinear(its__init__is skipped: no parallel state is needed), so_split_unquantized_merged_linearruns on a genuineMergedColumnParallelLinearinstance and the lossless test again asserts three reference GEMMs and zero packed calls.test_qwen_added_qkv_lossless_calls_a_wrapped_linear_as_is: a projection that is not aMergedColumnParallelLinear(a LoRA wrapper) is called once on the lossless path and its chunks are returned unchanged, which pins the behavior [diffusion] fix: LoRA-wrapped linears crash Qwen-Image and MiniMax-H3 inference #41272 introduced.Accuracy Tests
pytest test/registered/kernels/ops/diffusion/test_model_fast_paths.py -k qwen_added_qkvpasses locally on themaintree (RTX 3080 Ti, torch 2.9): 2 passed.Checklist
CI States
Latest PR Test (Base): ❌ Run #36365430406
Latest PR Test (Extra): ❌ Run #36365430246
Latest PR Test (AMD ROCm 10): ❌ Run #36365430324