Skip to content
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

Idea: Add CoreML / Apple Neural Engine backend #1169

Open
janekb04 opened this issue Apr 17, 2023 · 4 comments
Open

Idea: Add CoreML / Apple Neural Engine backend #1169

janekb04 opened this issue Apr 17, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@janekb04
Copy link

I don't know anything about CoreML other than the fact that the Neural Engine is very well optimized on Apple's devices. I'm writing this as an idea. Would it be possible to introduce this backend?

I know that Apple has its own CoreML Transformer implementations, and that similar support has been recently added to whisper.cpp, where it brought a significant performance improvement.

@guillaumekln
Copy link
Collaborator

The issue is that CoreML is not really a backend. It is a high-level framework to execute models so it does fit nicely in our current design.

Regarding the Apple Neural Engine, AFAIK there is currently no API to use it directly. It can only be used via CoreML.

https://github.com/hollance/neural-engine

@janekb04
Copy link
Author

It is unfortunate that the Neural Engine cannot be programmed directly. I mentioned CoreML, as this could potentially significantly improve performance of CTranslate2, at least on the newer Apple hardware.

@guillaumekln guillaumekln added the enhancement New feature or request label Jun 22, 2023
@vanch007
Copy link

Looking forward to supporting mps

@kcmvp
Copy link

kcmvp commented Feb 11, 2025

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants