You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,20 +14,26 @@ For more information on the supported hardware, please refer to [OpenVINO System
14
14
15
15
## Quick Start (pip wheel)
16
16
17
-
On Linux, the OpenVINO backend is included in the ExecuTorch pip wheel. Install the OpenVINO runtime to activate it:
17
+
On Linux and Windows, the OpenVINO backend is included in the ExecuTorch pip wheel. Install the OpenVINO runtime to activate it:
18
18
19
19
```bash
20
20
pip install executorch[openvino]
21
21
```
22
22
23
-
The backend automatically discovers the OpenVINO C library from the pip-installed package — no `LD_LIBRARY_PATH` setup is needed.
23
+
The backend automatically discovers the OpenVINO C library from the pip-installed package — no `LD_LIBRARY_PATH`(Linux) or `PATH` (Windows) setup is needed.
24
24
25
25
If auto-discovery fails (e.g. non-standard install), you can point to the library explicitly:
Follow the steps below to setup your build environment:
97
+
98
+
99
+
1.**Create a Virtual Environment**
100
+
- Create a virtual environment and activate it by executing the commands below.
101
+
102
+
**Linux:**
103
+
```bash
104
+
python -m venv env
105
+
source env/bin/activate
106
+
```
107
+
108
+
**Windows (PowerShell):**
109
+
```powershell
110
+
python -m venv env
111
+
env\Scripts\Activate.ps1
112
+
```
113
+
2.**Clone ExecuTorch Repository from Github**
114
+
- On Windows, enable symlinks before cloning. Refer to [Building from Source](https://docs.pytorch.org/executorch/main/using-executorch-building-from-source.html#environment-setup) for more details.
115
+
- Clone Executorch repository by executing the command below.
To additionally build with LLM extension support, append `-DEXECUTORCH_BUILD_EXTENSION_LLM=ON -DEXECUTORCH_BUILD_EXTENSION_LLM_RUNNER=ON` to the configure step.
157
+
158
+
#### Build Python Package with Pybindings
159
+
160
+
Compiles and installs the ExecuTorch Python package with the OpenVINO backend into your Python environment, enabling python bindings required to execute OpenVINO backend tests and `aot_optimize_and_infer.py` script inside `executorch/examples/openvino` folder.
- On Linux, `backends/openvino/scripts/openvino_build.sh` can be used as a convenience wrapper with `--enable_python`, `--cpp_runtime`, and `--cpp_runtime_llm` options instead of running the above commands directly.
For more information about ExecuTorch environment setup, refer to the [Environment Setup](https://pytorch.org/executorch/main/getting-started-setup#environment-setup) guide.
182
+
183
+
## Runtime Setup
184
+
185
+
OpenVINO is a runtime-only dependency — it is not required at build time. The backend discovers and loads the OpenVINO C library dynamically when first used. You can provide the library via pip (recommended) or a manual install.
74
186
75
-
Before you begin, ensure you have openvino installed and configured on your system.
187
+
### Install via pip (Recommended)
188
+
189
+
```bash
190
+
pip install openvino
191
+
```
76
192
77
193
### Use OpenVINO from Release Packages
78
194
79
195
1. Download the OpenVINO release package from [here](https://docs.openvino.ai/2025/get-started/install-openvino.html). Make sure to select your configuration and click on **OpenVINO Archives** under the distribution section to download the appropriate archive for your platform.
80
196
81
197
2. Extract the release package from the archive and set the environment variables.
82
198
199
+
**Linux:**
83
200
```bash
84
201
tar -zxf openvino_toolkit_<your_release_configuration>.tgz
@@ -103,46 +228,23 @@ cd <your_preferred_install_location>
103
228
source setupvars.sh
104
229
```
105
230
106
-
For more information about OpenVINO build, refer to the [OpenVINO Build Instructions](https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_linux.md).
107
-
108
-
### Setup
109
-
110
-
Follow the steps below to setup your build environment:
111
-
112
-
113
-
1.**Create a Virtual Environment**
114
-
- Create a virtual environment and activate it by executing the commands below.
115
-
```bash
116
-
python -m venv env
117
-
source env/bin/activate
118
-
```
119
-
2.**Clone ExecuTorch Repository from Github**
120
-
- Clone Executorch repository by executing the command below.
- Ensure that you are inside `executorch/backends/openvino/scripts` directory. The following command builds and installs ExecuTorch with the OpenVINO backend, also compiles the C++ runtime libraries and binaries into `<executorch_root>/cmake-out` for quick inference testing.
126
-
```bash
127
-
openvino_build.sh
128
-
```
129
-
- Optionally, `openvino_build.sh` script can be used to build python package or C++ libraries/binaries seperately.
**Build OpenVINO Backend Python Package with Pybindings**: To build and install the OpenVINO backend Python package with Python bindings, run the `openvino_build.sh` script with the `--enable_python` argument as shown in the below command. This will compile and install the ExecuTorch Python package with the OpenVINO backend into your Python environment. This option will also enable python bindings required to execute OpenVINO backend tests and `aot_optimize_and_infer.py` script inside `executorch/examples/openvino` folder.
132
-
```bash
133
-
./openvino_build.sh --enable_python
134
-
```
135
-
**Build C++ Runtime Libraries for OpenVINO Backend**: Run the `openvino_build.sh` script with the `--cpp_runtime` flag to build the C++ runtime libraries as shown in the below command. The compiled libraries files and binaries can be found in the `<executorch_root>/cmake-out` directory. The binary located at `<executorch_root>/cmake-out/executor_runner` can be used to run inference with vision models.
136
-
```bash
137
-
./openvino_build.sh --cpp_runtime
138
-
```
139
-
**Build C++ Runtime Libraries with LLM Extension**: Run the `openvino_build.sh` script with the `--cpp_runtime_llm` flag to build the C++ runtime libraries with LLM extension as shown in the below command. Use this option instead of `--cpp_runtime` for LLM extension support which is required by LLM examples.
For more information about ExecuTorch environment setup, refer to the [Environment Setup](https://pytorch.org/executorch/main/getting-started-setup#environment-setup) guide.
246
+
For more information about OpenVINO build, refer to the [OpenVINO Build Instructions](https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_linux.md).
145
247
146
-
### Run
248
+
### Examples
147
249
148
-
Please refer to [README.md](../../examples/openvino/README.md) for instructions on running examples of various of models with openvino backend.
250
+
Please refer to [README.md](../../examples/openvino/README.md) for instructions on running examples of various models with the OpenVINO backend.
0 commit comments