Skip to content

[CUDA] Support per-batch committed_length in DynamicSparseAttention - #33627

Merged
Tianlei Wu (tianleiwu) merged 1 commit into
asonawane/main-ops-sparse-attention-indexerfrom
tlwu/20261026/dsa-batched-committed-length
Oct 26, 2026
Merged

Tianlei Wu (tianleiwu) merged 1 commit into
asonawane/main-ops-sparse-attention-indexerfrom
tlwu/20261026/dsa-batched-committed-length

Conversation

@tianleiwu

Copy link
Copy Markdown
Contributor

Summary

Extends com.microsoft::DynamicSparseAttention (committed_length input 17, introduced in #33472) to accept either [1] or [batch_size] int32 elements and validates committed_length[b * committed_length_stride] per batch item in ValidateInputsKernel.

- Allow committed_length input to have 1 or batch_size int32 elements.
- Validate committed_length[b * committed_length_stride] per batch item in ValidateInputsKernel.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tianleiwu
Tianlei Wu (tianleiwu) force-pushed the tlwu/20261026/dsa-batched-committed-length branch from 2089b93 to 563ea1d Compare October 26, 2026 20:09
@tianleiwu
Tianlei Wu (tianleiwu) merged commit 9116cb9 into asonawane/main-ops-sparse-attention-indexer Oct 26, 2026
6 checks passed
@tianleiwu
Tianlei Wu (tianleiwu) deleted the tlwu/20261026/dsa-batched-committed-length branch October 26, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant