-
Notifications
You must be signed in to change notification settings - Fork 717
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
Integrating OpenVINO Runtime in Spark NLP #14200
Merged
maziyarpanahi
merged 28 commits into
JohnSnowLabs:release/540-release-candidate
from
rajatkrishna:openvino-integration
May 21, 2024
Merged
Integrating OpenVINO Runtime in Spark NLP #14200
maziyarpanahi
merged 28 commits into
JohnSnowLabs:release/540-release-candidate
from
rajatkrishna:openvino-integration
May 21, 2024
Conversation
This file contains 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
Add OpenVINO model engine wrapper Add default buffer size for reading weights file Read OpenVINO IR format models
- Resole merge conflicts - Add test for openvino load model
* Add param to enable OpenVINO through Python API * Formatting changes
* Enable OpenVINO backend for E5 Embeddings * Update Python APIs
13 tasks
maziyarpanahi
added
on-hold
cannot be merged right away
new-feature
Introducing a new feature
DON'T MERGE
Do not merge this PR
labels
Mar 10, 2024
danilojsl
requested changes
May 2, 2024
src/main/scala/com/johnsnowlabs/ml/openvino/OpenvinoWrapper.scala
Outdated
Show resolved
Hide resolved
* Use CPU by default for OpenVINO inference due to error loading device config in cluster envs
danilojsl
approved these changes
May 3, 2024
maziyarpanahi
approved these changes
May 21, 2024
maziyarpanahi
changed the base branch from
master
to
release/540-release-candidate
May 21, 2024 12:34
maziyarpanahi
merged commit May 21, 2024
fabc4ab
into
JohnSnowLabs:release/540-release-candidate
1 of 4 checks passed
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
DON'T MERGE
Do not merge this PR
new-feature
Introducing a new feature
on-hold
cannot be merged right away
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.
This PR introduces OpenVINO Runtime support in Spark NLP
Description
This PR enables Spark NLP to leverage the OpenVINO Runtime API for Java to load and run models in various formats including ONNX, PaddlePaddle, Tensorflow, Tensorflow Lite and OpenVINO IR format. OpenVINO also enables performance improvements when running on supported intel hardware, with upto 40% improvement vs Tensorflow on benchmarks with no further tuning. You can also take advantage of the full optimization and quantization capabilities offered by the OpenVINO toolkit when exporting/converting the model to the OpenVINO format using the Model Conversion API.
The following annotators have been enabled to work with OpenVINO:
Note: To take advantage of this feature, see these instructions to build OpenVINO jar (Linux), and these to build Spark NLP. OpenVINO is cross-platform. Refer here for Windows build instructions, and here for other platforms.
Motivation and Context
Screenshots (if appropriate):
Types of changes
Checklist: