Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds new scripts and a nuget nuspec for Whisper CoreML support. No additional APIs are required for this to work, just the runtime files and the
mlmodelc
files for your whisper models. You can read about that support here: https://github.com/ggerganov/whisper.cpp#core-ml-supportThe biggest difference from a user perspective is that if you wish to use CoreML support, you need to build the mlmodelc files yourself, and you have to load your whisper model from a file rather than a buffer.
The
mlmodelc
files are, at the moment, not shared by the whisper.cpp project (they did at one point, but the repo hosting them is either removed or hidden). There are some hosted elsewhere on hugging face, but IMO, unless we built and hosted them ourselves, I feel bad linking to random builds by others.The file usage is a limitation of whisper.cpp, which searches for the mlmodelc file based on the model path. Using the buffer would mean no file path, so it would always fail to load. Until that changes, there's not much we can do here.