Repository navigation
[diffusion] Fuse Cosmos3 Nano T2I attention on Hopper - #36571
Merged
BBuf merged 1 commit intoAug 27, 2026
Merged
Conversation
BBuf
force-pushed
the
codex/diffusion-cosmos3-nano-t1-fused-hopper
branch
from
August 26, 2026 22:29
e43b8fa to
2d4acc0
Compare
BBuf
force-pushed
the
codex/diffusion-cosmos3-nano-t1-fused-hopper
branch
from
August 27, 2026 07:57
2d4acc0 to
59220d1
Compare
BBuf
marked this pull request as ready for review
August 27, 2026 07:58
BBuf
requested review from
AgainstEntropy,
HaiShaw,
mickqian,
ping1jing2 and
yichiche
as code owners
August 27, 2026 07:58
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
H100 validation
Hardware: NVIDIA H100 80GB HBM3, CUDA_VISIBLE_DEVICES=0. Native SGLang backend, Cosmos3-Nano T2I preset, 1024x1024x1, 35 steps, seed 42, lossless output, synchronized same-GPU ABBA.
All four ABBA outputs are byte-identical: SHA256 c93da30473d6b145615f86645730d391182d9fa845426e49de0623ae4cdd72a2. SSIM is 1.0 and PSNR is infinite.
A five-denoise-step torch profile shows GPU kernel time decreasing from 253.393 ms to 231.242 ms (-8.74%) and launches decreasing from 12,264 to 4,344 (-64.6%). The fused QKNorm + RoPE + KV-pack kernel is invoked 360 times in the candidate trace.
The branch is rebased onto main commit 7f27bf4708a. A fresh model smoke on 0669407 reports 1.600 s denoise latency and the same output hash; the intervening commits only add a CUDA 13.4 container and wheel ABI metadata, without changing diffusion code.
Tests
Related background: BBuf/how-to-optim-algorithm-in-cuda#21
CI States
Latest PR Test (Base): ✅ Run #33051882279
Latest PR Test (Extra): ✅ Run #33058373303
Latest PR Test (AMD ROCm 7.2): ❌ Run #33051882303