Skip to content

Conversation

YifanShenSZ
Copy link
Collaborator

@YifanShenSZ YifanShenSZ commented Sep 11, 2024

Motivation

Starting from iOS18, CoreML has added SDPA op, so there is no longer need to decompose torch SDPA

Solution

Following #3483, add ops_not_to_decompose in CoreML partitioner, then use to_edge_transform_and_lower API in llama export

Copy link

pytorch-bot bot commented Sep 11, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit b552716 with merge base de30572 (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 Sep 11, 2024
@YifanShenSZ YifanShenSZ marked this pull request as ready for review September 11, 2024 03:03
@YifanShenSZ YifanShenSZ force-pushed the coreml-sdpa branch 5 times, most recently from d464b45 to e017e99 Compare September 11, 2024 22:59
Copy link
Contributor

@cccclai cccclai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It’s a a lot cleaner to use custom op. Eventually we can use the new api

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@cccclai merged this pull request in 1793c4a.

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