feat(thor): add FA4 and stride-based split-N NVFP4 support for Wan2.2 - #1344
Open
Michael20070814 wants to merge 25 commits into
Open
feat(thor): add FA4 and stride-based split-N NVFP4 support for Wan2.2#1344Michael20070814 wants to merge 25 commits into
Michael20070814 wants to merge 25 commits into
Conversation
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.
Summary
This PR adds the Wan2.2 acceleration path for NVIDIA Thor:
sm_110a);torch.compile.Performance
For Wan2.2 MoE I2V on Thor (4 denoising steps, 81 frames, 480x832), the complete optimized configuration reduced end-to-end inference latency from approximately 45 s to 16 s, corresponding to a 2.81x speedup and a 64.4% latency reduction.
This result reflects the complete configuration and should not be interpreted as the isolated gain from split-N, NVFP4, or FA4.
Before the optimization:

After the optimization:
