fix(nsa): tilelang sparse kernel hardcoded head offset + sm_120 smem-fit geometry - #70
Open
architehc wants to merge 1 commit into
Open
fix(nsa): tilelang sparse kernel hardcoded head offset + sm_120 smem-fit geometry#70architehc wants to merge 1 commit into
architehc wants to merge 1 commit into
Conversation
…plit sparse_attention_fwd_kernel_v1 hardcodes a *64 head offset that breaks any non-64 head split; fix to *H_per_block. Adds an sm_120 geometry (H_per_block=16, threads=128, v1/num_stages=1) that fits the 99KB smem budget, kv_dtype parametrization for fp8 KV pools, and drops the wg_wait kwarg removed in tilelang >= 0.1.9.
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
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.
With this, tilelang NSA prefill and decode run on sm_120 (validated with tilelang 0.1.12 + apache-tvm-ffi 0.1.11 + nvidia-cutlass-dsl 4.5.0, serving GLM-5.2 at 1M context).
🤖 Generated with Claude Code