Skip to content

Combination of Core ML and Metal #1722

Answered by ggerganov
LVCSRer asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is correct - there are 4 options as you listed them.

  • No Core ML / No Metal: build with make -j, run with -ng
  • No Core ML / Use Metal: build with make -j, run without -ng
  • Use Core ML / No Metal: build with WHISPER_COREML=1 make -j, run with -ng
  • Use Core ML / Use Metal: build with WHISPER_COREML=1 make -j, run without -ng

To control what hardware Core ML uses, you will need to edit the following source file:

https://github.com/ggerganov/whisper.cpp/blob/a3d0aa73d15fe2e076870cc7ba19cec7bbbab8fd/coreml/whisper-encoder.mm#L24-L30

Notice that Core ML can actually be configured to use the GPU instead of the ANE.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LVCSRer
Comment options

@LVCSRer
Comment options

Answer selected by LVCSRer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants