Skip to content

fix(fsdp): apply set_attention_backend per raw model (wan2.2) - #20

Merged
Rockdu merged 1 commit into
radixark:mainfrom
Rockdu:fix/set-attention-backend-raw-model
Jul 6, 2026
Merged

fix(fsdp): apply set_attention_backend per raw model (wan2.2)#20
Rockdu merged 1 commit into
radixark:mainfrom
Rockdu:fix/set-attention-backend-raw-model

Conversation

@Rockdu

@Rockdu Rockdu commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

The wan2.2 refactor moved DiT loading to a raw_models dict + per-component loop, but conflicts the set_attention_backend call outside the loop referencing an undefined model — so --fsdp-attention-backend raised NameError (the default None path hid it). Move it into the loop, on each raw component before LoRA/FSDP wrapping, so wan2.2's two transformers both get it.

The wan2.2 refactor moved DiT loading to a raw_models dict + per-component
loop, but left the set_attention_backend call outside the loop referencing
an undefined `model` — so `--fsdp-attention-backend` raised NameError (the
default None path hid it). Move it into the loop, on each raw component
before LoRA/FSDP wrapping, so wan2.2's two transformers both get it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Rockdu
Rockdu requested a review from guapisolo as a code owner July 6, 2026 18:57
@Rockdu
Rockdu requested review from zhihengy and removed request for guapisolo July 6, 2026 18:58
@Rockdu
Rockdu merged commit 829d726 into radixark:main Jul 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant