I'm optimizing a hot path in a CUDA inference engine (SGLang fork for MiniCPM-SALA on NVIDIA RTX 6000D, sm_120 Blackwell).
The hot section is per-head RMSNorm on Q and K, followed by RoPE, called once per attention layer during prefill. Production shape:
- q, k: (8192, 32, 128) bf16, head_dim=128, 32 heads each (multi-head, NOT GQA)
- 24 such layers per chunk, max_position=524288 (long ctx)
- rope: NeoX-style, base=10000, no yarn (factor=1.0)
Current production calls 3 separate kernels per layer:
sgl_kernel.rmsnorm(q.reshape(-1,128), q_w) -> ~300us on (262144, 128) bf16
sgl_kernel.rmsnorm(k.reshape(-1,128), k_w) -> ~300us
rotary_emb(positions, q, k) -> ~196us
Total ~796us per layer, 24 layers = ~19ms/chunk.
I just discovered sgl_kernel.fused_qk_norm_rope which is a direct adaptation of TensorRT-LLM's fusedQKNormRopeKernel. I'm about to bench it.
Please research the following and return concise findings (no code needed, just facts + links):
1. RTX 6000D / sm_120 Blackwell memory bandwidth. What's the GDDR/HBM bandwidth for this card? RTX 6000D vs RTX Pro 6000 vs older. The card has 84GB VRAM.
2. Existing best-in-class fused (qk_norm + rope) kernels.
- TensorRT-LLM fusedQKNormRope (already adapted in sgl-kernel)
- flashinfer apply_rope variants — does flashinfer have a fused version?
- vLLM, transformers, axolotl, megatron — any fused qknorm-rope?
- any sm_120-specific implementations?
3. RMSNorm performance for small head_dim. Why might sgl_kernel.rmsnorm be 300us on (262144, 128) bf16 (~5x slower than naive triton at 151us)?
- liger-kernel rmsnorm performance — I recall it has a clean efficient impl
- apex.normalization.fused_rms_norm_affine
- vllm's rmsnorm for small D
- flashinfer rmsnorm
- What's the typical configuration (block size, vec width) for D=128?
4. Bitwise reproducibility of RMSNorm. When fp32 reduce ordering changes, can output be guaranteed bit-identical to a reference impl? Practical strategies (deterministic reduce, kahan, fixed warp-size reduction order)?
- Is there literature on "deterministic" rmsnorm?
- What do production engines (TensorRT-LLM, vLLM) say about determinism vs perf trade-off?
5. Anything novel in 2025/2026 on fused norm+rope?
- papers, blog posts, kernel implementations
- sm_120 / Blackwell-specific tricks (TMA? Hopper-style cluster?)
Be skeptical and critical. If you find that the TRT-LLM kernel I'm about to use has known issues on sm_120 or with multi-head (nh_q=nh_k=32) instead of GQA, flag it.
Return a punch-list-style report under 600 words. Prefer authoritative sources (NVIDIA docs, github releases, papers) over forum posts.