Repository navigation
Conversation
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Signed-off-by: Taian Zhang <[email protected]>
Collaborator
Author
|
The autotuner implementation, hardening, tactic-space documentation, and NSC validation have been folded into #17262 at head |
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
Add runtime tactic autotuning for the Blackwell NVFP4 Conv3d path used by the native Wan VAE.
Stacked dependency
This is a stacked Draft PR based on #17262, which introduces the FP4 Wan VAE and its CuTeDSL Conv3d integration. The autotuner changes are:
Until #17262 merges, GitHub's
main-based diff also contains its prerequisite FP4 VAE changes. After #17262 merges, this PR will be rebased ontomain.Candidate space
The existing fixed 256x256/2CTA/2x1 configuration is both a candidate and the eager product fallback. The earlier acceptance experiment temporarily used 128x128/1CTA/1x1 as a deliberately non-optimal baseline to demonstrate real discovery; that slow fallback is not shipped.
Performance
NSC B200, four-GPU Wan2.2 VAE decode, latent
[1,48,21,44,80], output 704x1280x81, selected FP4 stack with temporal chunk size 3. Fixed/tuned/tuned/fixed ABBA ordering; two warmups and eight measured samples per process. Reported fixed and tuned values pool 16 samples each.Autotuning recovered the experimental baseline's 11.0% deficit and was 0.558 ms / 0.15% faster than the fixed tactic. The two tuned process medians were 367.333/366.974 ms versus fixed 367.573/367.729 ms. Selected 2CTA N tiles span 64/128/192/256, confirming per-shape profiling rather than restoration of one hard-coded configuration.
Validation
47b3526cce).AutoTuner.capture()/ replay state and distributed post-merge generation;BasePipeline.warmup(),VisualGenMapping, andParallelVAEFactoryexercised distributedpost_tune_merge_distwithout hangs.Follow-up before ready
mainafter [TRTLLM-13767][feat] integrate FP4 Conv3d into parallel Wan VAE #17262 merges.