Error Loading model when adding CoreMLExecutionProvider on native macOS and iOS app #1922
migcinsoft
started this conversation in
Support for Targets (OS / EPs / Hardware)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm getting the following error when trying to load the Phi-4-mini-instruct-onnx model (or any other ONNX GenAI model) in a native Swift macOS/iOS app. I'm using the latest 0.11.4 dylib. This ONLY happens when I try to use the CoreMLExecutionProvider. The model is loaded correctly if I do not specify the CoreMLExecutionProvider EP. Any ideas on how I can get around this?
Error: Error Domain=ORTGenAIErrorDomain Code=1 "open file "/Users/miguel/Library/Developer/Xcode/DerivedData/LocalLLM-dteympnxdmthmvcjlitezfcjvruy/Build/Products/Debug/LocalLLM.app/Contents/Resources//model.onnx/model.onnx.data" failed: Not a directory" UserInfo={NSLocalizedDescription=open file "/Users/miguel/Library/Developer/Xcode/DerivedData/LocalLLM-dteympnxdmthmvcjlitezfcjvruy/Build/Products/Debug/LocalLLM.app/Contents/Resources//model.onnx/model.onnx.data" failed: Not a directory}
Beta Was this translation helpful? Give feedback.
All reactions