mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #459] [MERGED] Sparse MQA logits follow-ups for nv_dev: 16-byte paged KV stride, workspace reuse under graph capture #463
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#463
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/459
Author: @lfr-0531
Created: 9/23/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @RayWang96
Base:
nv_dev← Head:pr/nv-dev-sparse-paged-fixes📝 Commits (2)
422debbReuse a warmed sparse MQA logits workspace during graph capture337b1f8Accept 16-byte aligned KV pages in the paged sparse MQA logits📊 Changes
2 files changed (+14 additions, -4 deletions)
View changed files
📝
csrc/apis/attention.hpp(+13 -3)📝
deep_gemm/include/deep_gemm/impls/sm100_sparse_mqa_logits.cuh(+1 -1)📄 Description
Summary
Two small follow-ups to #447 for the DSv4.1 sparse MQA logits, found while integrating
nv_devinto TensorRT-LLM (index cache pages are 64 x (64 + 4) = 4352-byte page-footer pages, and CUDA graphs are captured on a side stream). No kernel algorithm changes.fp8_fp4_paged_sparse_mqa_logitsrequiredfused_kv_cache.stride(0) % 512 == 0(host and device asserts). The paged accessor only computespage = base + page_idx * kv_page_stride_bytesand copies the KV / SF blocks with 16-bytecp.asyncchunks, so 16-byte alignment is the actual requirement (the cache base pointer is now checked for it as well). Caches whose page stride is not padded to 512 bytes can be read in place.Validation
nv_devhead alone the 7 paged decode cases fail on the 512-byte stride assert.Supersedes #458 (the nv_dev + main 26/09 merge), which #447 has landed.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.