Skip to content

Reduce WanAnimate TorchAO test input sizes to prevent OOM#13541

Open
jiqing-feng wants to merge 3 commits intohuggingface:mainfrom
jiqing-feng:torchao-fix-wananimate-oom
Open

Reduce WanAnimate TorchAO test input sizes to prevent OOM#13541
jiqing-feng wants to merge 3 commits intohuggingface:mainfrom
jiqing-feng:torchao-fix-wananimate-oom

Conversation

@jiqing-feng
Copy link
Copy Markdown
Contributor

What does this PR do?

Shrinks dummy inputs in TestWanAnimateTransformer3DTorchAo to avoid OOM on devices without FlashAttention (e.g. XPU, which falls back to math SDPA and materializes the full O(S²) attention matrix).

Reduced hidden_states spatial from 64×64 to 16×16 and frames from 21 to 5, bringing self-attention sequence length from 21,504 to 320. Face frame count adjusted from 77 to 13 to satisfy the temporal alignment constraint with the face encoder's stride-2 convolutions.

Shrink dummy inputs to avoid OOM on devices without FlashAttention.
Reduce hidden_states spatial from 64x64 to 16x16 and frames from 21 to 5,
bringing self-attention sequence length from 21,504 to 320.
@github-actions github-actions Bot added tests size/S PR with diff < 50 LOC and removed size/S PR with diff < 50 LOC labels Apr 22, 2026
@github-actions github-actions Bot added size/S PR with diff < 50 LOC and removed size/S PR with diff < 50 LOC labels Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S PR with diff < 50 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant