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: Remove onnxruntime libraries from system path #7323

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

tanmayv25
Copy link
Contributor

@tanmayv25 tanmayv25 commented Jun 5, 2024

What does the PR do?

Removes the onnxruntime library from the system path which seemed to have been added as a workaround for openVINO EP running behind onnxruntime backend.
It has been verified with a glab pipeline with TRITON_NIGHTLY=1 that we no longer need this workaround to use the OV EP.

This might help resolve #7200.

Checklist

  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Added test plan and verified test passes.
  • Verified that the PR passes existing CI.
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging ref.
  • All template sections are filled out.
  • Optional: Additional screenshots for behavior/output changes with before/after.

Commit Type:

Check the conventional commit type
box here and add the label to the github PR.

  • build
  • ci
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

Related PRs:

Where should the reviewer start?

Test plan:

No additional tests were added. The current tests i.e. L0_onnx_optimization and l_onnx_execution_provider should provide sufficient coverage for whether the changes introduced any regressions.

  • CI Pipeline ID:
    #15568694

Caveats:

We can explore if we can now use different versions of openVINO between ORT and OpenVINO backend.

Background

By including the onnxruntime libraries in the system path, there is a conflict between the openvino library between ORT backends installation and the OV installed with the OV backend.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

@tanmayv25 tanmayv25 added module: backends Issues related to the backends PR: fix A bug fix labels Jun 5, 2024
@tanmayv25 tanmayv25 requested review from kthui, GuanLuo and krishung5 June 5, 2024 00:14
@tanmayv25 tanmayv25 changed the title fix: Remove onnxrutime libraries from system path fix: Remove onnxruntime libraries from system path Jun 5, 2024
@GuanLuo
Copy link
Contributor

GuanLuo commented Jun 5, 2024

Can we add a test similar to #7200 ? I don't think we need to "explore if we can now use different versions of openVINO between ORT and OpenVINO backend", things will likely break if trying to load both versions / wrong version in runtime. For our published image, we should make sure the versions are aligned

@tanmayv25
Copy link
Contributor Author

tanmayv25 commented Jun 5, 2024

Yes... The test will be added in a separate PR. Verified locally that #7200 is resolved with this change.

@tanmayv25 tanmayv25 merged commit 720c29b into main Jun 5, 2024
3 checks passed
@tanmayv25 tanmayv25 deleted the tanmayv-ortlib branch June 5, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: backends Issues related to the backends PR: fix A bug fix
Development

Successfully merging this pull request may close these issues.

Triton Server OpenVINO backend not working with Tensorflow saved models
4 participants