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

Update SDPA to PagedAttention transformation to support phi3 sliding window #29608

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

itikhono
Copy link
Contributor

Details:

Update SDPA to PagedAttention transformation to support phi3 sliding window

Tickets:

@github-actions github-actions bot added category: Core OpenVINO Core (aka ngraph) category: transformations OpenVINO Runtime library - Transformations labels Mar 21, 2025
@ilya-lavrenov
Copy link
Contributor

phi3 sliding

Is a solution generic or phi3 specific? We have other models with sliding window support like Mistral.

@itikhono
Copy link
Contributor Author

I will check it with the Mistral model

{{"variable_id", "varid_1"}, {"variable_type", "f32"}, {"variable_shape", PartialShape{DYN, 32, DYN, 96}}});
auto Gather1 = makeOP<opset8::Gather>({ReadValue, Parameter, 0}, {{"batch_dims", 0}});
auto Constant7 = makeConst(element::f32, ov::Shape({1, 1, 3072}), MOCK_VALUE);
auto Constant8 = makeConst(element::u8, ov::Shape({32064, 3072}), MOCK_VALUE);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: decrease the weights size for this test

@itikhono itikhono marked this pull request as ready for review March 28, 2025 09:20
@itikhono itikhono requested a review from a team as a code owner March 28, 2025 09:20
@itikhono
Copy link
Contributor Author

@sshlyapn could you help to check these changes on GPU?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Core OpenVINO Core (aka ngraph) category: transformations OpenVINO Runtime library - Transformations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants