Skip to content

Preserve SDPA for CoreML#1

Closed
YifanShenSZ wants to merge 1 commit intocoreml-quantizationfrom
coreml-sdpa
Closed

Preserve SDPA for CoreML#1
YifanShenSZ wants to merge 1 commit intocoreml-quantizationfrom
coreml-sdpa

Conversation

@YifanShenSZ
Copy link
Copy Markdown
Owner

Motivation

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

Solution

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

PS

Will need to merge pytorch#5228 before this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant