Repository navigation
[Fix] lora: Support Qwen3.5 GDN packed projections - #48158
Closed
yuanhengfang wants to merge 1 commit into
Closed
yuanhengfang wants to merge 1 commit into
yuanhengfang wants to merge 1 commit into
Conversation
Author
|
Superseded by #48161 to use the repository-style branch name |
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
Qwen3.5 serves its GatedDeltaNet input projections as the fused runtime modules
in_proj_qkvzandin_proj_ba. PEFT adapters commonly export those weights asin_proj_qkv + in_proj_zandin_proj_b + in_proj_ainstead.On main, the raw adapter target names are not normalized to both fused runtime modules, grouped qkv+z weights are not expanded into the four runtime slices, and
in_proj_bais missing from the supported LoRA metadata. Loading such an adapter therefore fails during buffer sizing withget_hidden_dim not implemented for in_proj_qkvorin_proj_a.The equivalent GDN normalization was merged into the
sglang-milesbranch in #30499 but has not reached main. This PR brings that language-model path to main. Vision tower and merger LoRA support are intentionally out of scope.Modifications
in_proj_qkvzandin_proj_ba.in_proj_qkv + in_proj_zLoRA factors using the same slice semantics as vLLM: replicate the shared qkv A factor for q/k/v and concatenate B rows.in_proj_b + in_proj_afactors and support already-fusedin_proj_baadapters.in_proj_bahidden dimensions, stacked rank, attention-TP sharding, auto-detection, and CLI target support.Accuracy Tests
python test/registered/unit/lora/test_qwen3_5_gdn_lora.py: 5/5 passed.python test/registered/unit/lora/test_mem_pool_layouts.py: 7/7 passed.in_proj_qkvz: A[32, 4096], B[12288, 8]in_proj_ba: A[16, 4096], B[64, 8]in_proj_qkvzandin_proj_ba.Speed Tests and Profiling
Not applicable. This changes adapter target/weight normalization and buffer metadata; it does not change inference kernels or the base-model forward path.
Checklist