ONNX Runtime for Apple Silicon
ONNX Runtime prebuilt wheels for Apple Silicon (M1 / arm64)
The official ONNX Runtime now contains arm64
binaries for MacOS as well, but they do only support the CPU backend. This version adds the CoreML backend with version v1.13.0
.
To install the prebuilt packages, use the following command to install. The package is called onnxruntime-silicon but is a drop-in-replacement for the onnxruntime package.
pip install onnxruntime-silicon
To build the libraries yourself, please first install the following dependencies and run the build script.
brew install wget cmake protobuf git git-lfs
./build-macos.sh
The pre-built wheel packages should be in the dist
directory.
MIT License - Copyright (c) 2023 Florian Bruggisser