cansik / onnxruntime-silicon

ONNX Runtime prebuilt wheels for Apple Silicon (M1 / M2 / M3 / ARM64)
MIT License
191 stars 18 forks source link

linux package? #11

Closed domsj closed 11 months ago

domsj commented 11 months ago

Hi,

I'm trying to use ONNX inside a linux container running on an Mac M1. Would it make sense to use this package for that? Or should I be able to use another onnxruntime? Sadly pip refuses to install onnxruntime-silicon because it is not compatible (different OS).

(as a side note: specifying --platform=linux/amd64 for my docker container and using onnxruntime-gpu package instead works, but that requires emulation from qemu for the architecture mismatch and makes things a lot slower)

cansik commented 11 months ago

This package is for MacOS only. I do not have any experience with containers on M1 and can not really support you. But isn't it possible to use the original package onnxruntime and install the aarch64 version into your linux container?

domsj commented 11 months ago

@cansik thanks, you made me realize that indeed onnxruntime is all I need 🙈