Repository navigation
Conversation
Contributor
Author
|
Closing this combined PR to split into clean, independent micro-PRs. |
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
Allow
qsa_decode_attn_slotsto launch up to 64 homogeneous slots in a single kernel call (gated behind opt-inSTRATA_QSA_ATTN_BATCH64=1), instead of capping every call at 8 slots due to the 4 KB CUDA kernel parameter budget.Changes
QsaAttnSlotPtrs64): packs only the 5 active pointers per slot (k,v,ks,vs,pages) into a 2,560-byte by-value descriptor (safe under the kernel parameter limit and compatible with CUDA Graph capture), while keeping the existing 8-slotQsaAttnLegacySlotspath as the default whenSTRATA_QSA_ATTN_BATCH64is unset.attn_chunk_slots64_kernel/attn_chunk_slots64_pre75_kernel): unpackQsaAttnPoolsin-register perblockIdx.zfromQsaAttnSlotPtrs64.verify.cpp): batch up to 64 slots inqsa_decode_attn_slotswhenSTRATA_QSA_ATTN_BATCH64=1, while keepingqsa_block_scores_slotschunked at 8 rows (its own descriptor limit).qsa_slots_parityto cover >8 up to 64 slots and documentSTRATA_QSA_ATTN_BATCH64insettings-register.json.Verification
strataandqsa_slots_parityon Windows 11 / CUDA 13.4 (-DSTRATA_GEOMETRY=q4_lite,sm_89;120).qsa_slots_parity.exewithSTRATA_QSA_ATTN_BATCH64=1andSTRATA_QSA_ATTN_BATCH64=0on RTX 5080 (both exited0).