Setup
Platform support
ONNX Runtime, and by extension ort
, supports a wide variety of platforms. For most desktop users, pre-built binaries are available, so setting up ort
is as simple as adding it to your Cargo.toml
!
Here are the supported platforms and binary availability status, as of v2.0.0-rc.2.
- π’ - Supported. Dynamic & static binaries provided by pyke.
- π· - Supported. Static binaries provided by pyke.
- β - Supported. Precompiled binaries not available.
- β - Not supported.
Platform | x86 | x86-64 | ARMv7 | ARM64 | WASM32 |
---|---|---|---|---|---|
Windows | β | π’* | β | π·* | β |
Linux | β | π’β | β | π·β‘ | β |
macOS | β | π·Β§ | β | π· | β |
iOS | β | β | β | β | β |
Android | β | β | β | β | β |
Web | β | β | β | β | π·ΒΆ |
β glibc β₯ 2.31 (Ubuntu β₯ 20.04) required for pyke binaries.
β‘ glibc β₯ 2.35 (Ubuntu β₯ 22.04) required for pyke binaries.
Β§ macOS β₯ 10.15 required.
ΒΆ WASM supports a limited subset of ONNX Runtime features. For more info, see the docs on WebAssembly support.
If your platform is marked as π’ or π·, youβre in luck! Almost no setup will be required to get ort
up and running.
For platforms marked as β, youβll need to compile ONNX Runtime from source and then link ort
to your custom binaries (but donβt worry, we made this setup as simple as possible!)
Certain execution providers may not have binaries available. You can check EP binary support in the Execution providers documentation.