Accelerate PyTorch models with ONNX Runtime OpenVINO EP
Project description
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.1.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 Bert Sequence Classification and Image Classification scenarios.
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:
- Share your proposal via GitHub Issues.
- Submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file torch_ort_infer-1.12.0-py3-none-any.whl
.
File metadata
- Download URL: torch_ort_infer-1.12.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a36ca8962b183cd414d292ff5cfb8da78856a3ca03a57aca5a30f610ae416c8 |
|
MD5 | 4ba9f77454bd1cc34fe1beb670f50d90 |
|
BLAKE2b-256 | 35452ea593826fabd1ede6e36bda12efbd81f7409f099affe38281ae72f5dd9a |