Skip to content

Support independent K/V head counts in SDPA test utilities#327

Draft
keshavvinayak01 wants to merge 1 commit intomainfrom
users/keshavvinayak01/sdpa-independent-kv-heads
Draft

Support independent K/V head counts in SDPA test utilities#327
keshavvinayak01 wants to merge 1 commit intomainfrom
users/keshavvinayak01/sdpa-independent-kv-heads

Conversation

@keshavvinayak01
Copy link
Copy Markdown
Contributor

Split headsKV into headsK/headsV in referenceSdpa and executeSdpa to allow testing GQA with H_k != H_v. headsV defaults to headsK for backward compatibility. Add test for Q=8, K=4, V=2 heads.

Split headsKV into headsK/headsV in referenceSdpa and executeSdpa to
allow testing GQA with H_k != H_v. headsV defaults to headsK for
backward compatibility. Add test for Q=8, K=4, V=2 heads.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Keshav Vinayak Jha <keshavvinayakjha@gmail.com>
Copy link
Copy Markdown
Contributor Author

@keshavvinayak01 keshavvinayak01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting this as draft for now because first iree needs to bump torch-mlir to include: llvm/torch-mlir#4523, then we'll need to bump IREE, only then the CI will pass :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant