Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3.7 backport] graph, benchdnn: several minor fixes for SDPA with mask #2673

Merged
merged 5 commits into from
Feb 14, 2025

Conversation

ElaineBao
Copy link
Contributor

Description

backport #2660 to rls-v3.7

This PR includes 3 minor fixes for SDPA with explicit or implicit mask:
[x] enhance check of axis in implicit causal mask to include negative axis (-1 & -2).
[x] support 1D / 2D mask for explicit causal mask (MFDNN-13164).
[x] add a internal attribute for internal op dnnl_gen_index for constant propagation (SET_ATTR_IS_CONSTANT)

@ElaineBao ElaineBao added backport component:graph-api Codeowner: @oneapi-src/onednn-graph component:tests Codeowner: @oneapi-src/onednn-arch labels Feb 12, 2025
@ElaineBao ElaineBao self-assigned this Feb 12, 2025
@ElaineBao ElaineBao requested review from a team as code owners February 12, 2025 02:34
@ElaineBao
Copy link
Contributor Author

make test
enable benchdnn_nightly
disable benchdnn_all
enable benchdnn_graph

@ElaineBao ElaineBao force-pushed the yixin/backport_sdpa_minor_fix branch from b1b65bd to 35e730a Compare February 12, 2025 17:00
@ElaineBao
Copy link
Contributor Author

make test
enable benchdnn_nightly
disable benchdnn_all
enable benchdnn_graph

@ElaineBao ElaineBao force-pushed the yixin/backport_sdpa_minor_fix branch from 35e730a to 215766d Compare February 13, 2025 02:52
@ElaineBao
Copy link
Contributor Author

make test
enable benchdnn_nightly
disable benchdnn_all
enable benchdnn_graph

@ElaineBao ElaineBao force-pushed the yixin/backport_sdpa_minor_fix branch from 215766d to 5f40724 Compare February 13, 2025 04:05
@ElaineBao
Copy link
Contributor Author

make test
enable benchdnn_nightly
disable benchdnn_all
enable benchdnn_graph

op_kind::dnnl_to_group, op_kind::dnnl_from_group,
op_kind::dnnl_permute, op_kind::dnnl_squeeze,
op_kind::dnnl_unsqueeze, op_kind::dnnl_transpose,
op_kind::dnnl_reshape, op_kind::dnnl_gen_index, op_kind::dnnl_mask};
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I'd add a comma at the end to keep previous formatting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reformatted, thanks

@ElaineBao ElaineBao force-pushed the yixin/backport_sdpa_minor_fix branch from 5f40724 to 01a3978 Compare February 14, 2025 02:22
@TaoLv TaoLv merged commit 9e05725 into rls-v3.7 Feb 14, 2025
8 of 17 checks passed
@TaoLv TaoLv deleted the yixin/backport_sdpa_minor_fix branch February 14, 2025 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport component:graph-api Codeowner: @oneapi-src/onednn-graph component:tests Codeowner: @oneapi-src/onednn-arch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants