On Apple Silicon, whisper.cpp can run its encoder on the Apple Neural Engine (ANE) through Core ML — the README says this is more than three times faster than CPU-only execution. It takes a model conversion step and a special build flag.
Generate the Core ML model and build with the flag
Install the Python dependencies (pip install ane_transformers openai-whisper coremltools; Python 3.11 is recommended, macOS Sonoma or newer), then generate the Core ML model with ./models/generate-coreml-model.sh base.en — this creates the folder models/ggml-base.en-encoder.mlmodelc. Then build with Core ML: cmake -B build -DWHISPER_COREML=1 and cmake --build build -j --config Release.
pip install ane_transformers openai-whisper coremltools
./models/generate-coreml-model.sh base.en
cmake -B build -DWHISPER_COREML=1
cmake --build build -j --config Release
./build/bin/whisper-cli -m models/ggml-base.en.bin -f samples/jfk.wav
The first run is slow: the ANE service compiles the Core ML model to a device-specific format on first use, and later runs are faster. The log line whisper_init_state: loading Core ML model from 'models/ggml-base.en-encoder.mlmodelc' confirms the encoder is on the ANE.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Deps installed | The three pip packages install | Python 3.11, macOS Sonoma+ |
| Model generated | The .mlmodelc folder exists | Check the script output |
| Built with flag | The build uses -DWHISPER_COREML=1 | Check the cmake line |
| ANE in log | The log shows the Core ML model loading | First run is slow |
Expected result. We checked the whisper.cpp README, which documents the Core ML steps, the >3x speed-up over CPU-only, the generate-coreml-model.sh script, and the -DWHISPER_COREML=1 build flag. We did not build whisper.cpp on this machine.
Limits
This guide covers the Core ML build only. It needs Apple Silicon, Python 3.11 and macOS Sonoma or newer. We did not test any build ourselves.
