Views
No views yet
Oriserve/Whisper-Hindi2Hinglish-Prime packaged for WhisperKit on Apple Silicon (macOS 14+ / iOS 17+)..mlmodelc bundles, ready for on-device inference through WhisperKit's Swift API. For Python inference, use the upstream repo linked above.1import WhisperKit
2
3let pipe = try await WhisperKit(
4 WhisperKitConfig(
5 model: "Oriserve_Whisper-Hindi2Hinglish-Prime_fp16",
6 modelRepo: "vbhar/whisperkit-hindi2hinglish-prime-coreml"
7 )
8)
9let result = try await pipe.transcribe(audioPath: "meeting.wav")1hf download vbhar/whisperkit-hindi2hinglish-prime-coreml \
2 --include "Oriserve_Whisper-Hindi2Hinglish-Prime_fp16/*" \
3 --local-dir ./modelsOriserve_Whisper-Hindi2Hinglish-Prime_fp16/
├── MelSpectrogram.mlmodelc/
├── AudioEncoder.mlmodelc/ # ~1.2 GB weights
├── TextDecoder.mlmodelc/ # ~1.7 GB weights
├── config.json
└── generation_config.json| This repo | vbhar/whisperkit-hindi2hinglish-prime-coreml — Core ML float16 conversion |
| Direct source | Oriserve/Whisper-Hindi2Hinglish-Prime — Hinglish fine-tune, Apache-2.0 |
| Upstream architecture | openai/whisper-large-v3 |
alignment_heads metadata that the source repo ships as null (see Conversion gotcha below); those heads are the standard whisper-large-v3 values and affect word-timestamp attention selection only, not transcription weights.argmaxinc/whisperkittools under Python 3.11 (3.14 has no working coremltools/torch wheels as of this writing):1python3.11 -m venv .venv && source .venv/bin/activate
2pip install git+https://github.com/argmaxinc/whisperkittools.git
3
4whisperkit-generate-model \
5 --model-version Oriserve/Whisper-Hindi2Hinglish-Prime \
6 --output-dir out \
7 --repo-path-suffix fp16alignment_heads is nullOriserve/Whisper-Hindi2Hinglish-Prime ships generation_config.json with:"alignment_heads": nullwhisperkittools decoder trace uses alignment_heads to build the alignment_heads_weights output. With null, the traced decoder emits 3 outputs while the conversion declares 4, and the run dies with:ValueError: Number of outputs provided, 4, do not match the number of outputs
produced by the model, 3whisper-large-v3 alignment heads — 10 [layer, head] pairs — before tracing:1generation_config.alignment_heads = [
2 [7, 0], [10, 17], [12, 18], [13, 12], [16, 1],
3 [17, 14], [19, 11], [21, 4], [24, 1], [25, 6],
4]whisper-large-v3 fine-tune, and these pairs are byte-identical to the ones the sibling vbhar/whisperkit-hinglish-large-v3-coreml build carries from its own source. The values are baked into the generation_config.json in this repo, so a consumer of this repo never sees the failure — only someone re-converting from the Oriserve source does.nan on real
code-switched Hindi/English speech, while passing cleanly on short English
clips such as WhisperKit's bundled jfk.wav.vbhar/whisperkit-hinglish-large-v3-coreml instead. Picking the wrong one of the two is the most likely mistake with this pair.