Repository navigation
Register OpenVINO plugin for GenAI vision evaluation - #2748
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused changes have corresponding unit coverage, and no blocking issues were identified.
No open issues 🎉
What changed in this PR
Adds OpenVINO plugin registration to Olive’s GenAI vision evaluation for NPU targets and makes sample failures explicit.
Changes:
- Registers OpenVINO once when selected for NPU evaluation.
- Raises descriptive errors for missing images and inference failures.
- Adds tests for single/split vision configurations, CPU behavior, and sample errors.
| File | Description |
|---|---|
| test/evaluator/test_olive_evaluator.py | Tests OpenVINO registration and sample failure handling. |
| olive/evaluator/olive_evaluator.py | Adds OpenVINO registration and replaces blank predictions on failure with errors. |
Review effort: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Xiaoyu Z (xiaoyu-work)
approved these changes
Oct 20, 2026
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.
Describe your changes
onnxruntime-ep-openvinoplugin for ONNX Runtime GenAI vision evaluation when the NPU target selectsOpenVINOExecutionProvider, matching the existing QNN registration path.User-facing change: OpenVINO NPU GenAI vision models can be evaluated through Olive; individual sample failures now stop evaluation with a descriptive error.
Validation:
C:\Users\aamancherla\repos\olive-recipes\google-gemma-4-E2B-it\multi_comp\.venv\Scripts\python.exe -m pytest -q test\evaluator\test_olive_evaluator.py -k genai_vision --tb=short— passed (8 tests).C:\Users\aamancherla\repos\olive-recipes\google-gemma-4-E2B-it\multi_comp\.venv\Scripts\python.exe -m ruff check --ignore CPY001 olive\evaluator\olive_evaluator.py test\evaluator\test_olive_evaluator.py— passed.C:\Users\aamancherla\repos\olive-recipes\google-gemma-4-E2B-it\multi_comp\.venv\Scripts\python.exe -m ruff format --check olive\evaluator\olive_evaluator.py test\evaluator\test_olive_evaluator.py— passed (2 files).lintrunner -a— not run locally.Checklist before requesting a review
lintrunner -a(Optional) Issue link