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

Fix support of "inputs_embeds" input of VLMs in SDPAToPA transformation #28674

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

CuriousPanCake
Copy link
Contributor

@CuriousPanCake CuriousPanCake commented Jan 24, 2025

VLMs have tokens and their generation already served as the "inputs_embeds" input, so there's no need to transform the input in the way this is done for "input_ids".

Tickets:

Signed-off-by: Andrii Staikov [email protected]

@CuriousPanCake CuriousPanCake requested a review from a team as a code owner January 24, 2025 17:22
@CuriousPanCake CuriousPanCake requested review from itikhono and removed request for a team January 24, 2025 17:22
@github-actions github-actions bot added the category: Core OpenVINO Core (aka ngraph) label Jan 24, 2025
@ilya-lavrenov ilya-lavrenov added this to the 2025.1 milestone Jan 24, 2025
@CuriousPanCake CuriousPanCake changed the title Fix support of "inputs_embeds" input of VLM in SDPAToPA transformation Fix support of "inputs_embeds" input of VLMs in SDPAToPA transformation Jan 24, 2025
@github-actions github-actions bot added the category: transformations OpenVINO Runtime library - Transformations label Jan 24, 2025
@@ -904,6 +903,551 @@ TEST_P(SDPAToPATest, SDPAToPA_Baichuan2_13b_General) {
}
}

TEST_P(SDPAToPATest, SDPAToPA_nanoLLaVA_General) {
{
auto beam_idx = make_param(PartialShape{DYN}, element::i32, "beam_idx");
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like, we need to simplify the test
It's better to do in the next PR

@CuriousPanCake CuriousPanCake added this pull request to the merge queue Feb 3, 2025
Merged via the queue into openvinotoolkit:master with commit 26a3ab1 Feb 3, 2025
184 checks passed
@CuriousPanCake CuriousPanCake deleted the CVS-160598 branch February 3, 2025 12:46
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.

3 participants