[blackwell][draft] sm100: QKV projection + RoPE Triton kernel (#228) - #236
Draft
Andrewxu313 wants to merge 2 commits into
Draft
[blackwell][draft] sm100: QKV projection + RoPE Triton kernel (#228)#236Andrewxu313 wants to merge 2 commits into
Andrewxu313 wants to merge 2 commits into
Conversation
Placeholder commit for draft PR. Implementation tracked in: batchgen-agent-metadata/batchgen_design/blackwell/blackwell-kernel-port-v1.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fills the SM100 placeholder for the fused QKV WGMMA kernel. On Blackwell the WGMMA .cu is not built, so cuda_qkv_wgmma() dispatches to a pure-Triton GEMM+split kernel with a standard rotate_half RoPE epilogue matching the SM90a CUDA convention (out[n1]=x1*c-x2*s, out[n2]=x2*c+x1*s). - batchgen_kernels/triton/qkv_proj_rope.py: qkv_proj_split, apply_rope_qk, qkv_proj_rope - qkv_wgmma.py: sm100 dispatch branch + availability via Triton - triton/__init__.py: export new kernels Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Closes #228. Part of #204 (Blackwell Phase 2).
Summary
New triton/qkv_proj_rope.py: tl.dot BF16 matmul + fused split epilogue (Q/K/V separate buffers) + optional RoPE on Q+K. F.linear not acceptable (loses split+RoPE epilogue).
Spec
blackwell-kernel-port-v1.md § Sub-task 5