[OpenVINO] Fix compiled-model cache invalidation and expand test whitelist - #3029
Open
goyaladitya05 wants to merge 9 commits into
Open
goyaladitya05 wants to merge 9 commits into
goyaladitya05 wants to merge 9 commits into
Conversation
github-actions
Bot
requested review from
divyashreepathihalli and
laxmareddyp
September 4, 2026 08:50
|
✅ Approved issue check passed: #3045 is assigned to @goyaladitya05. |
goyaladitya05
marked this pull request as ready for review
September 9, 2026 10:16
goyaladitya05
marked this pull request as ready for review
September 9, 2026 13:33
Contributor
Author
|
@hertschuh Could you please take a look? thanks! |
laxmareddyp
marked this pull request as ready for review
September 9, 2026 16:57
divyashreepathihalli
requested review from
JyotinderSingh
and removed request for
divyashreepathihalli
September 16, 2026 17:46
This branch has not been deployed
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.
Description of the change
ov_inferreused a compiled model whenever the device matched, so a secondgenerate()with different input shapes ran against a graph traced for the first one.compile_modelalso relaxed every input dimension to-1after tracing, advertising shapes the graph was never built for. The cache is now keyed on the input signature and static args, and the relaxation is gone so the compiled model matches what was traced.The BLIP2 early-stopping mocks read
token_ids.shape[0]as a Python int, which isNoneunder a dynamic batch. They now use theops.ones_like+ops.slice_updateidiom the other causal-LM tests already use.Depends on keras-team/keras#23564, which is now in keras-nightly.
Closes: #3045