Skip to content

Add fused QKV support to Qwen3-VL state_dict_adapter - #3102

Merged
wwwjn merged 2 commits into
mainfrom
qwen3-vl-state-dict
Apr 25, 2026
Merged

wwwjn merged 2 commits into
mainfrom
qwen3-vl-state-dict

Conversation

@wwwjn

@wwwjn wwwjn commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Port the fused QKV (FusedQKVLinear) handling from Qwen3's adapter to Qwen3-VL. When fuse_qkv is enabled, to_hf() splits wqkv into separate q/k/v projections, and from_hf() fuses them back. This is needed for PR #2878 which switches Qwen3-VL to use FusedQKVLinear.

Test

Load Qwen3-VL-2B-Instruct weight into a fusedQKV Qwen3-VL model

Port the fused QKV (FusedQKVLinear) handling from Qwen3's adapter to
Qwen3-VL. When fuse_qkv is enabled, to_hf() splits wqkv into separate
q/k/v projections, and from_hf() fuses them back. This is needed for
PR #2878 which switches Qwen3-VL to use FusedQKVLinear.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 25, 2026
@wwwjn
wwwjn requested a review from shuhuayu April 25, 2026 00:51
@wwwjn
wwwjn force-pushed the qwen3-vl-state-dict branch from 4231c79 to 956469a Compare April 25, 2026 01:10
@wwwjn
wwwjn merged commit eb518a1 into main Apr 25, 2026
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants