Repository navigation
[Codegen][Tuner] expose python binding for attention op details - #21170
Merged
Merged
Conversation
Max191
approved these changes
Jun 24, 2025
bangtianliu
force-pushed
the
attention_op_detail
branch
from
June 24, 2025 15:51
d81904d to
9079bf5
Compare
Signed-off-by: Bangtian Liu <[email protected]>
kuhar
reviewed
Jun 24, 2025
bangtianliu
force-pushed
the
attention_op_detail
branch
3 times, most recently
from
June 24, 2025 22:02
ecef952 to
6c79a3c
Compare
Signed-off-by: Bangtian Liu <[email protected]>
kuhar
approved these changes
Jun 25, 2025
Signed-off-by: Bangtian Liu <[email protected]>
bangtianliu
added a commit
to nod-ai/amd-shark-ai
that referenced
this pull request
Jul 2, 2025
After iree-org/iree#21170 and iree-org/iree#21216 exposing python bindings from iree side, This PR adds parser for attention op. --------- Signed-off-by: Bangtian Liu <[email protected]>
rkayaith
pushed a commit
to rkayaith/shark-ai
that referenced
this pull request
Aug 19, 2025
After iree-org/iree#21170 and iree-org/iree#21216 exposing python bindings from iree side, This PR adds parser for attention op. --------- Signed-off-by: Bangtian Liu <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
This PR introduces a new Python binding `get_attention_op_detail` for the function `mlir::iree_compiler::IREE::LinalgExt::AttentionOpDetail::get( QMap, KMap, VMap, OMap)`, which infers the logical structure of an attention operation (e.g., batch/m/k1/k2/n/domain_rank) from its affine indexing maps. This PR will enable tuner to reason about attention ops more easily. --------- Signed-off-by: Bangtian Liu <[email protected]>
RattataKing
pushed a commit
to nod-ai/amd-shark-ai
that referenced
this pull request
Mar 2, 2026
After iree-org/iree#21170 and iree-org/iree#21216 exposing python bindings from iree side, This PR adds parser for attention op. --------- Signed-off-by: Bangtian Liu <[email protected]>
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.
This PR introduces a new Python binding
get_attention_op_detailfor the functionmlir::iree_compiler::IREE::LinalgExt::AttentionOpDetail::get( QMap, KMap, VMap, OMap), which infers the logical structure of an attention operation (e.g., batch/m/k1/k2/n/domain_rank) from its affine indexing maps.This PR will enable tuner to reason about attention ops more easily.