Skip to content

Integrate sdk #2314

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

Closed
wants to merge 1 commit into from
Closed

Conversation

cymbalrush
Copy link
Contributor

@cymbalrush cymbalrush commented Mar 8, 2024

The PR adds support for logging profiling information and intermediate outputs. The required files are only included if CoreML delegate is built withEXECUTORCH_BUILD_SDK option.

  • Profiling: ETCoreMLModelProfiler adds profiling support, it uses the MLComputePlan API that's currently in beta but unlikely to change. The caveat is that it only works for macOS >= 14.4, iOS >= 17.4.
  • Debugging: ETCoreMLModelDebugger adds support for getting intermediate tensors. The model spec is updated to include additional intermediate outputs, compiled, and then executed. It has a dependency on protobuf as it modifies the specification of the model. The logging part doesn't work yet, it would require ExecuTorch API (log_tensor_delegate).
  • CLI: Added cli file for parsing CoreML delegate metadata.
  • AOT: AOT integration is remaining but most likely it would be done in coremltools. coremltools will add a json file to mlpackage that would contain the operation path to debug handle mapping.

Screenshot 2024-03-07 at 11 04 00 PM

Copy link

pytorch-bot bot commented Mar 8, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2314

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5ed3e73 with merge base 71ea7cb (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 8, 2024
@cymbalrush cymbalrush force-pushed the coreml_sdk_integration branch 3 times, most recently from 6cbb79f to 8baea7f Compare March 8, 2024 15:07
@facebook-github-bot
Copy link
Contributor

@tarun292 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cymbalrush cymbalrush force-pushed the coreml_sdk_integration branch from 8baea7f to ff96112 Compare March 14, 2024 18:47
@facebook-github-bot
Copy link
Contributor

@tarun292 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cymbalrush
Copy link
Contributor Author

cymbalrush commented Mar 15, 2024

@shoumikhin @tarun292 seeing an internal build failure. I am guessing we have to update the internal buck file that builds the CoreML delegate. Some new files are added to the project that are included in the cmake file but are probably missing from the internal buck?

@cymbalrush cymbalrush force-pushed the coreml_sdk_integration branch from ff96112 to 5ed3e73 Compare March 15, 2024 15:55
@facebook-github-bot
Copy link
Contributor

@tarun292 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@shoumikhin merged this pull request in ae84721.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants