Repository navigation
Conversation
Match the PyTorch 2.10 CUDA reduction order and BF16 rounding for 5120-wide attention RMSNorm. Fuse weight deltas in the same kernel and retain the original path for unsupported inputs and backends. Add exactness and dispatch regression tests. Validated 2160 real norm calls, 431 model checkpoints, and identical generated video hashes; matched operator benchmarks show 4.0-4.47x speedup.
Use the thor-gemm-bench fused-bias QKV kernel for BF16 M=1785 self-attention when thor is enabled. Keep the original Torch path when disabled and fall back for unsupported inputs. Reuse execution metadata and workspace while rebinding current operands. Validate Q/K/V against Torch using checkpoint weights across three seeds (9 checks). The prior full inference comparison produced identical video/action hashes and measured 1.941 ms mean QKV latency at M=1785.
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 significantly accelerates DreamZero inference on NVIDIA Thor (
sm_110a) by introducing:In end-to-end benchmarks on DreamZero-Droid, these changes achieve:
Key Changes
1. Attention & Normalization
2. Native GEMM Optimizations
[1785, 5120].3. Architecture Dispatch & Safety Fallbacks
Build & Environment Notes
sm_110a(NVIDIA Thor).CUTLASS_PATHenvironment variable (e.g.,export CUTLASS_PATH=/path/to/cutlassbefore compilation).Performance Evaluation
Benchmark Configuration
[1, 2, 3, 7, 11, 14, 15, 16]5.0), DiT quantization:OFF,torch.compile:OFFON; Model & VAE CPU offloadOFFCumulative End-to-End Latency
+ FA4+ Fused RMSNorm+ CUTLASS FFN Up+ cuBLASLt FFN Down+ Native QKV ProjectionsKernel Microbenchmarks