-
Notifications
You must be signed in to change notification settings - Fork 126
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
Initialize Objective-C bindings #709
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please document public APIs and add unit tests
|
||
s.vendored_frameworks = "@ORTGENAI_C_FRAMEWORK@" | ||
s.static_framework = true | ||
s.framework = ['ImageIO', 'CoreGraphics'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why link to these frameworks? does anything in ort-genai depend on them? if not, should the decision to depend on them be left to the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes ort-genai requires ImageIO and CoreGraphics for image decoding.
snapshot_download( | ||
repo_id="microsoft/Phi-3-mini-4k-instruct-onnx", | ||
allow_patterns="cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/*", | ||
local_dir=model_dir | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this model used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't check in the actual testing code, because it's quite large. I copied the apple_pacakge_test in ORT and started from there. The actual testing code requires this model. I'll create another PR after this one.
This PR contains Objective-C wrapper code, podspec generation infras and the accompanying test code.
Internal workitem: https://task.ms/aii/35199