Repository navigation
Conversation
…shared in attn_fold.cuh tf_sparse_attention attends each (row, key head) to its own list of cache rows: GQA up to 16 query heads a key head, head dim 128, the list cut into four warps' slices folded in warp order, NaN and infinite values replayed as block_attention.cu does. block_attention.cu takes its Fold from attn_fold.cuh, unchanged (SASS identical on every SM built). Contract cells for Kolibri 1.1's 48 over 4 heads with a planted control (the kernel told one key fewer).
…e contract lists nothing, every slot, past cap and unnamed rows
… the cache rows weighs nothing and is not read
…ock_attention's fold
…tion image and export
…is refused (its count's 32-key tiles round up in i32)
… 31), where a count's tile round-up would overflow i32
…; n + 31 overflowed i32 at max_cap, a host mirror checks the boundary
…fused before hk x 128 is taken (2^57 heads overflowed it)
…n excessive count is refused, not an overflow
…r when the sparse attention set fails
Owner
Author
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.
CI for a landing train: #5166 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.