Enable CoreML by default on macOS wheel builds#9483
Merged
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9483
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 PendingAs of commit 6488b44 with merge base 265b9b7 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
b69b9de to
40f1586
Compare
899aaa9 to
4e1392f
Compare
a2189cd to
8401ea6
Compare
4ca7508 to
1ec9fe8
Compare
8401ea6 to
3d18509
Compare
1ec9fe8 to
c953ad3
Compare
eaddcd2 to
dc338bd
Compare
c5b2718 to
a43c12c
Compare
5bc0bdc to
7e51d3a
Compare
962c878 to
ab60961
Compare
1287a85 to
2f299ac
Compare
52ce71d to
e7adb4c
Compare
9f1119a to
840151e
Compare
ce38301 to
6c747a7
Compare
Contributor
Author
|
I will update the docs on usage of the install script in another PR. |
6c747a7 to
6488b44
Compare
Contributor
|
This is awesome! |
| "tabulate", | ||
| "typing-extensions", | ||
| # Keep this version in sync with: ./backends/apple/coreml/scripts/install_requirements.sh | ||
| "coremltools==8.1; platform_system == 'Darwin'", |
| echo "${red}ExecuTorch: Failed to install coremltools." | ||
| exit 1 | ||
| fi | ||
| cmake --build "$COREMLTOOLS_DIR_PATH/build" --parallel --target mlmodel |
Contributor
There was a problem hiding this comment.
@YifanShenSZ @cymbalrush -- any reason why we still need to build mlmodel target from source, instead of using directly from pip install coremltools?
Contributor
There was a problem hiding this comment.
It shouldn't be required any more but let me confirm
Contributor
There was a problem hiding this comment.
Okay, let's not block it, but create an GH issue to track this...
mergennachin
approved these changes
Mar 26, 2025
jathu
added a commit
that referenced
this pull request
Mar 26, 2025
### Summary * After #9483, we should have CoreML support out of the box for macOS * Unfortunately, we still need `backends/apple/coreml/scripts/install_requirements.sh` to use the [coreml_executorch_runner](https://github.com/pytorch/executorch/tree/main/examples/apple/coreml/executor_runner) (used for testing) * I should have caught all the usage ### Test plan Read
kirklandsign
pushed a commit
that referenced
this pull request
Apr 11, 2025
### Summary Context: #9481 * Include the `executorchcoreml` pybinding in the builds * Remove separate installation option * Turn on CoreML by default for macOS builds * Add a dependency on coremltools for macOS ### Test plan CI ``` $ rm -rf cmake-out pip-out dist && ./install_executorch.sh $ ./examples/models/llama/install_requirements.sh $ .ci/scripts/test_llama.sh -model stories110M -build_tool cmake -dtype fp32 -mode coreml $ .ci/scripts/test_llama.sh -model stories110M -build_tool cmake -dtype fp32 -mode xnnpack+custom+quantize_kv ``` cc @larryliu0820 @lucylq
kirklandsign
pushed a commit
that referenced
this pull request
Apr 11, 2025
### Summary * After #9483, we should have CoreML support out of the box for macOS * Unfortunately, we still need `backends/apple/coreml/scripts/install_requirements.sh` to use the [coreml_executorch_runner](https://github.com/pytorch/executorch/tree/main/examples/apple/coreml/executor_runner) (used for testing) * I should have caught all the usage ### Test plan Read
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context: #9481
executorchcoremlpybinding in the buildsTest plan
CI
cc @larryliu0820 @lucylq