feat: add support for custom OpenVINO execution provider parameters#324
Open
ksmaze wants to merge 3 commits into
Open
feat: add support for custom OpenVINO execution provider parameters#324ksmaze wants to merge 3 commits into
ksmaze wants to merge 3 commits into
Conversation
Replace hardcoded OpenVINO provider options with dynamic parameter parsing from model configuration. Parse parameters from execution accelerator config, maintain device_type default as CPU when not specified, and use SessionOptionsAppendExecutionProvider_OpenVINO_V2 API with key-value arrays.
Add configuration options for controlling thread spinning in both intra-op and inter-op thread pools. Parse session.intra_op.allow_spinning and session.inter_op.allow_spinning parameters from model config and apply via AddSessionConfigEntry. Add global allow_spinning setting in backend config that controls spinning via SetGlobalSpinControl.
…loop Replace individual parameter handling blocks for session.intra_op.allow_spinning, session.inter_op.allow_spinning, and session.use_device_allocator_for_initializers with a single loop that processes all parameters with 'session.' prefix. This allows any session configuration parameter to be passed through AddSessionConfigEntry without requiring explicit code for each parameter. Change log level from VERBOSE to INFO for session
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.
Fix: #260
Replace hardcoded OpenVINO provider options with dynamic parameter parsing from model configuration. Parse parameters from execution accelerator config, maintain device_type default as CPU when not specified, and use SessionOptionsAppendExecutionProvider_OpenVINO_V2 API with key-value arrays, which is introduced since 1.17, latest triton server releases with 1.23.0