-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performance drop on macos 14 #12
Comments
@siyuzou I'm building the 1.16.3 on my M1 promax right now and the plan is to do some tests to see the differences if any. edit: Ok i built it and it's... much faster.
edit 2: try with my compiled version? i uploaded it https://github.com/Oil3/onnxruntime-silicon-1.16.2/releases/download/onnxruntime-silicon/onnxruntime_silicon-1.16.3-cp311-cp311-macosx_14_0_arm64.whl |
@Oil3 Hi ! So on your M1 Pro Max system, the speed increases hugely after upgrading the OS from 13 to 14, right ? That's impressive, for I only experienced performance drop instead. I would like to try your pre-built wheel when I have time. I'm on mac os Sonoma 14.1.1, here's my system info:
and package info related to onnx:
|
@siyuzou As already mentioned in various other issues, performance depends a lot on your model. If your model uses unsupported layers, the runtime has to move the data from the GPU back to the CPU and can result in slower inference than just on the CPU. |
@cansik Hi ! I'm pretty sure that the models I'm using don't have unsupported layers. The problem is that they perform pretty well on macos 13, but the speed drops significantly after I upgraded my system to macos 14. E.g., one of the model takes 5 ms for one inference, but takes 10 ~ 15 ms after system upgrade (both using CoreML EP). The speed will be much slower if using CPU EP, like, 40 ms. |
I've just added a release for v1.16.3 built on MacOS 14. Maybe it fixes the issues you currently have? |
Hi @siyuzou , actually I meant from the 1.14 onnxruntime-sillicon to the 1.16.3. and @cansik thanks/danke/merci for your work. |
Thanks for the great work. I`ve been using this since ort-1.13, on a MBP with M1 Pro chip.
The problem is, after I updated my system from macos 13 to 14, all the models using coreml EP become slower than before the updating (still faster than using cpu EP though). The performance drop ~50-75% in average. I didn't make a time machine backup before updating, so it's not a good idea to downgrade the system back to 13.
I've made it to manually build a wheel instead of
pip install onnxruntime-silicon
, but the performance remains the same.Would you support macos 14 recently?
The text was updated successfully, but these errors were encountered: