]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
xcframework : add support for CoreML to ios/macOS (#2912)
authorDaniel Bevenius <redacted>
Thu, 20 Mar 2025 17:39:08 +0000 (18:39 +0100)
committerGitHub <redacted>
Thu, 20 Mar 2025 17:39:08 +0000 (18:39 +0100)
commitca75449a920872e9181e507b8a57da28920598ce
tree561f6c9c62a1453d1084357a0c8e6a7e39d60fcc
parent80dad86b2c946d36121a7ebe1dfb93c50578c7b9
xcframework : add support for CoreML to ios/macOS (#2912)

* xcframework : add support for CoreML to ios/macOS

This commit add support for compiling whisper with CoreML support for
iOS and macOS.

The motivation for this change is it will allow users to use a Core ML
model or fall back to a ggml model if Core ML is not available.

With the updated xcframework, I was able to run the whisper.objc example
and successfully load a Core ML model:
```console
whisper_init_state: loading Core ML model from '/Users/danbev/Library/Developer/CoreSimulator/Devices/25E8C27D-0253-4281-AF17-C3F2A4D1D8F4/data/Containers/Bundle/Application/B81F6FF0-BF1A-40DF-AC2A-3908EC4BCC9A/whisper.objc.app/ggml-base.en-encoder.mlmodelc'
whisper_init_state: first run on a device may take a while ...
whisper_init_state: Core ML model loaded
```

* squash! xcframework : add support for CoreML to ios/macOS

Fix grammar in output message.
build-xcframework.sh