whisper.cpp v1.9.5 runs the encoder on Apple's Neural Engine, twice as fast as Core ML
1 month ago
whisper.cpp v1.9.5 can run the Whisper encoder on the Apple Neural Engine through ANEForge, about twice as fast as Core ML. whisper-cli now exits with an error code when a file fails, and long recordings split across processors keep correct timestamps.
Links
Ask about this presentation
Chapters
Show transcriptHide transcript
On an Apple Silicon Mac, whisper.cpp can now run the Whisper encoder directly on the Apple Neural Engine through ANEForge. It is opt-in, and with it switched off, whisper.cpp behaves exactly as before.
On the medium model, one encoder pass drops from about 240 milliseconds with Core ML to under 120. The gap holds from the tiny model up to medium, and the transcripts come out the same.
whisper-cli used to exit with success even when an input file was missing, its audio couldn't be decoded, or the output couldn't be written. Now it finishes the batch and exits with code 11.
With the processors option on a long file, every timestamp past about 22 minutes could come out negative, mostly on Windows builds. An integer overflow caused it, and those timestamps are now correct.
Apps can now cancel a transcription while it is still detecting the language. The Vulkan Docker image drops from almost two gigabytes to under 700 megabytes, and a malformed model file now fails to load instead of crashing.
The decoder is unchanged. You compile the encoder bundle on your own Mac, tied to its macOS build, and it relies on undocumented Apple interfaces that an update can change. The README's ANEForge section has the setup.







