diffusers
Refactor QKV Fusion Utilities
#14047
Open

Refactor QKV Fusion Utilities #14047

dg845 wants to merge 19 commits into main from refactor/lora-aware-qkv-fusion
dg845
dg845 Refactor QKV fusion: add inplace option, model-level helper to restor…
4e188842
dg845 Add tests for refactored QKV fusion API in AttentionMixin/AttentionMo…
658f0719
dg845 Fix Claude review comments (typo, get_added_qkv docstring)
37c0f70c
dg845 make style and make quality
b761f4a3
dg845 Merge branch 'main' into refactor/lora-aware-qkv-fusion
a7512dbd
github-actions github-actions added models
github-actions github-actions added tests
github-actions github-actions added size/L
HuggingFaceDocBuilderDev
dg845 Add inplace argument to model-overriden methods for compatibility (W…
e41dee65
dg845 Use inplace=False in ChronoEdit for consistency
799b8cf7
sayakpaul
sayakpaul commented on 2026-06-24
dg845 dg845 changed the title Refactor QKV Fusion Utilities to be LoRA-Aware Refactor QKV Fusion Utilities 135 days ago
dg845 Merge branch 'main' into refactor/lora-aware-qkv-fusion
0b0e3e77
dg845 Merge branch 'main' into refactor/lora-aware-qkv-fusion
41577e9e
dg845 Guard QKV fusion on LoRA adapter state, not module names
712483bb
dg845 Implement inplace QKV fusion for the Wan-family transformers
7c2bbfa0
dg845 Fix get_qkv ignoring encoder_hidden_states when fused
c3b34869
dg845 Drop restore_checkpoint_fusion_state
d8300f9e
dg845 Build the unfused projections on the meta device
84eb5d53
github-actions github-actions added utils
dg845 Merge branch 'main' into refactor/lora-aware-qkv-fusion
26d39f08
dg845 Move model-level QKV fusion tests into AttentionTesterMixin
bf553c4f
dg845 Check LoRA-guarded unfusing and split-projection restoration per model
2b9edfbc
dg845 Use plain truthiness for fused_projections assertions
7235091b
dg845 Document the inplace fusion argument
9910574d
dg845 dg845 requested a review from sayakpaul sayakpaul 56 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone