Repository navigation
[diffusion] Accelerate Cosmos3 T2I QKNorm+RoPE - #34932
Merged
BBuf merged 2 commits intoAug 16, 2026
Merged
Conversation
BBuf
requested review from
AgainstEntropy,
HaiShaw,
mickqian,
ping1jing2 and
yichiche
as code owners
August 15, 2026 09:35
saturn-acc
pushed a commit
to saturn-acc/sglang
that referenced
this pull request
Aug 16, 2026
danielchristiancazares
pushed a commit
to danielchristiancazares/sglang
that referenced
this pull request
Aug 17, 2026
4 of 5 tasks
This was referenced Sep 19, 2026
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
T == 1)torch.compileGEN layers on their existing compile-safe pathWhy
Cosmos3 video already uses fused QKNorm + RoPE, but T2I stayed on separate QKNorm, RoPE, and KV concatenation operations because the image path needs an intermediate BF16 round. The shared fused kernel now supports that rounding mode. This change wires Cosmos3 T2I into it and avoids repeated per-layer cache casts and KV packing launches.
B300 performance
Measured with the
cosmos3-nano-t2ipreset in the 2026-08-14 full sweep from #21 on one NVIDIA B300:torch.compilequality=highLossless eager is about 13.4% faster than compile on the measured denoise workload.
Validation
dafa75ce5; this PR is rebuilt on currentmainCI States
Latest PR Test (Base): ✅ Run #31933836637
Latest PR Test (Extra): ✅ Run #31946430843