shruti-coreml / source /docs /iphone-benchmark.md
bingokingooo's picture
Publish Koash iPhone Shruti benchmark and runtime decision
f1bb67e verified
|
Raw History Blame Contribute Delete
1.88 kB
# Hindi Shruti on iPhone
[Koash](https://koash.app) TestFlight build 38 compared the published mixed-precision Core ML Hindi pack with Koash’s pinned Sherpa-ONNX Hindi pack. One iPhone17,3 run covered four Hindi and Hinglish clips totaling 39.74 seconds, with nominal thermal state and Low Power Mode off. The two history entries contain the same run.
Both engines used CPU inference and received identical unpadded 16 kHz mono PCM. The Core ML arm used the published five-beam decoder. Sherpa used its shipping runtime configuration. Each clip loaded a separate model instance, then ran a first and warm repeat transcription. Model initialization may benefit from operating system caches. The timers exclude audio preparation and note generation.
| Total over four clips | Sherpa-ONNX | Published Core ML |
| --- | ---: | ---: |
| Model load | 2.484 s | 0.097 s |
| First transcription after load | 2.100 s | 4.289 s |
| Load and first transcription | 4.585 s | 4.385 s |
| Warm repeat | 2.057 s | 4.071 s |
Core ML’s shorter load offset its slower decoding for a single recording. Sherpa decoded warm clips in about half the time. Both engines produced identical text on the two Hindi clips, with shared recognition errors. Sherpa rendered “bulleted” and “do not save” more cleanly in the two Hinglish clips.
On the longer Core ML-only check, the pack processed 39.80 seconds in 3.87 seconds with three contiguous segments. It retained both references to the sun and misheard the player’s surname. This run produced no paired longer-recording timings or peak memory measurements. Koash uses Sherpa for Shruti transcription. The Core ML packs are available for developers and researchers evaluating on-device speech recognition.
[Per-clip timings and aggregates](https://huggingface.co/bingokingooo/shruti-coreml/blob/main/benchmarks/compressed/iphone.json)