Skip to main content

OpenVINO™ Integration with Torch-ORT accelerates PyTorch models using OpenVINO™ Execution Provider for ONNX Runtime. This product is designed for PyTorch developers who want to get started with OpenVINO™ in their inferencing applications. It delivers OpenVINO™ inline optimizations that enhance inferencing performance with minimal code modifications.

OpenVINO™ Integration with Torch-ORT accelerates inference across many AI models on a variety of Intel® hardware such as:

  • Intel® CPUs
  • Intel® integrated GPUs
  • Intel® Movidius™ Vision Processing Units - referred to as VPU.

Installation

Requirements

  • Ubuntu 18.04, 20.04
  • Python 3.7, 3.8 or 3.9

This package supports:

  • Intel® CPUs
  • Intel® integrated GPUs
  • Intel® Movidius™ Vision Processing Units (VPUs).

The torch-ort-infer package has dependency on the onnxruntime-openvino package that will be installed by default to run inference workloads. This onnxruntime-openvino package comes with pre-built libraries of OpenVINO™ version 2022.2.0 eliminating the need to install OpenVINO™ separately. The OpenVINO™ libraries are prebuilt with CXX11_ABI flag set to 0.

For more details, please refer to OpenVINO™ Execution Provider for ONNX Runtime.

Post-installation step

Once torch-ort-infer is installed, there is a post-installation step:

python -m torch_ort.configure

Usage

By default, Intel® CPU is used to run inference. However, you can change the default option to either Intel® integrated GPU or Intel® VPU for AI inferencing. Invoke the provider options to change the hardware on which inferencing is done.

For more API calls and environment variables, see Usage.

Samples

For quick start, explore the samples for few HuggingFace and TorchVision models.

License

OpenVINO™ Integration with Torch-ORT is licensed under MIT. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.

Support

Please submit your questions, feature requests and bug reports via GitHub Issues.

How to Contribute

We welcome community contributions to OpenVINO™ Integration with Torch-ORT. If you have an idea for improvement:

Metadata

Release files for torch-ort-infer 1.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for torch-ort-infer 1.13.1
File Interpreter ABI Platform
torch_ort_infer-1.13.1-py3-none-any.whl Python 3 none any Details

Release files / torch_ort_infer-1.13.1-py3-none-any.whl

Download URL torch_ort_infer-1.13.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e36fc35903c80252981cdca07e4b2f48856a3eb3615569ead0013d7e7914f7d4
BLAKE2b-256 checksum
How to use checksums
cc29cbd6b2c8e5111e993d79e5e992d288d3dd81a3569461f813e1ec040fbddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release history Release notifications | RSS feed

This release

1.13.1 This release

1 release file

1.12.0

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page