Skip to content

Conversation

@metascroy
Copy link
Contributor

@metascroy metascroy commented Dec 11, 2024

This PR adds the option to specify the compute unit when exporting LLMs to CoreML. It also changes the default compute unit to CPU because we observe an 8x speedup on using CPU over GPU for stories110M model on iPhone15, bringing tokens/sec from 14 to 119.

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 11, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit fe7f397 with merge base 8460d42 (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 Dec 11, 2024
@metascroy metascroy changed the title init Add compute unit to coreml llama export Dec 11, 2024
@metascroy metascroy added the enhancement Not as big of a feature, but technically not a bug. Should be easy to fix label Dec 11, 2024
@metascroy
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

@metascroy metascroy marked this pull request as ready for review December 11, 2024 18:11
@metascroy metascroy force-pushed the improve-coreml-llm-export-defaults branch from ddac2c7 to a5eeef0 Compare December 11, 2024 18:28
@metascroy metascroy force-pushed the improve-coreml-llm-export-defaults branch from a5eeef0 to 6592182 Compare December 12, 2024 22:24
@metascroy metascroy force-pushed the improve-coreml-llm-export-defaults branch from 6592182 to fe7f397 Compare December 13, 2024 20:24
@metascroy metascroy merged commit 4d2acf2 into pytorch:main Dec 16, 2024
44 checks passed
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. enhancement Not as big of a feature, but technically not a bug. Should be easy to fix topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants