File size: 4,906 Bytes
758d297
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
818e2a7
758d297
277edaf
 
20e016a
277edaf
 
47d7d7b
277edaf
 
 
47d7d7b
277edaf
 
 
 
 
 
47d7d7b
277edaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47d7d7b
277edaf
47d7d7b
277edaf
47d7d7b
 
 
 
 
 
 
 
 
 
 
 
 
277edaf
 
 
 
 
47d7d7b
277edaf
47d7d7b
277edaf
47d7d7b
 
 
 
 
 
 
 
 
 
 
 
 
 
277edaf
47d7d7b
 
 
 
 
 
 
277edaf
 
 
47d7d7b
277edaf
 
 
47d7d7b
277edaf
 
47d7d7b
277edaf
 
 
 
 
 
47d7d7b
277edaf
47d7d7b
 
 
 
 
277edaf
 
 
47d7d7b
277edaf
47d7d7b
 
277edaf
 
47d7d7b
277edaf
 
 
47d7d7b
277edaf
 
 
 
 
 
 
47d7d7b
 
 
 
758d297
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
---
license: mit
language:
- en
- af
- am
- ar
- as
- az
- ba
- be
- bg
- bn
- bo
- br
- bs
- ca
- cs
- cy
- da
- de
- el
- eu
- fa
- fi
- fo
- fr
- gl
- gu
- ha
- he
- hi
- hr
- ht
- hu
- hy
- id
- is
- it
- ja
- jv
- ka
- kk
- km
- kn
- ko
- la
- lb
- ln
- lo
- lt
- lv
- mg
- mk
- ml
- mn
- mr
- ms
- mt
- my
- ne
- nl
- nn
- 'no'
- oc
- pa
- pl
- pt
- ro
- ru
- sa
- sd
- si
- sk
- sl
- sn
- so
- sq
- sr
- su
- sv
- sw
- ta
- te
- tg
- th
- tk
- tl
- tr
- tt
- uk
- ur
- uz
- vi
- yi
- yo
- zh
tags:
- whisper
- core-ml
- apple
- Apple-Silicon
---
# Whisper.cpp Core ML Models for Apple Silicon

This repository provides **prebuilt Core ML models for Whisper.cpp**, optimized for **Apple Silicon (M1, M2, M3, M4, M5)** devices.  
These models enable **hardware-accelerated speech-to-text** using Apple’s Neural Engine via Core ML.

The repository is designed for **easy plug-and-play usage** with Whisper.cpp using a **prebuilt CLI binary**.

---

## πŸ“¦ Repository Contents

Each model directory contains **everything required** to run Whisper.cpp with Core ML acceleration:

- **`ggml-*.bin`** – Whisper model weights used by `whisper.cpp`
- **`*-encoder.mlmodelc/`** – Compiled Core ML encoder bundle

⚠️ **Important:** The `.mlmodelc` directories must remain intact. Do **not** modify, rename, or move their contents.

---

## πŸ“ Folder Structure

```
.
β”œβ”€β”€ tiny/
β”œβ”€β”€ tiny.en/
β”œβ”€β”€ base/
β”œβ”€β”€ base.en/
β”œβ”€β”€ small/
β”œβ”€β”€ small.en/
β”œβ”€β”€ medium/
β”œβ”€β”€ medium.en/
β”œβ”€β”€ large-v1/
β”œβ”€β”€ large-v2/
└── large-v3/
```

Each folder corresponds to a Whisper model variant and contains the matching `.bin` and `.mlmodelc` files.

---

## πŸš€ Model Variants Overview

The table below summarizes the trade-offs between **speed**, **accuracy**, and **memory usage**.

| Folder       | Model Size | Speed        | Accuracy         | Notes |
|--------------|-----------|--------------|------------------|-------|
| `tiny`       | Very Small | ⚑ Fastest   | ⭐ Lowest        | Best for real-time, low-resource use |
| `tiny.en`    | Very Small | ⚑ Fastest   | ⭐ Lowest        | English-only |
| `base`       | Small      | ⚑ Fast      | ⭐⭐ Balanced     | Good default choice |
| `base.en`    | Small      | ⚑ Fast      | ⭐⭐ Balanced     | English-only |
| `small`      | Medium     | ⚑ Medium    | ⭐⭐⭐ Better      | Improved transcription quality |
| `small.en`   | Medium     | ⚑ Medium    | ⭐⭐⭐ Better      | English-only |
| `medium`     | Large      | 🐒 Slower   | ⭐⭐⭐⭐ High       | High accuracy, higher memory usage |
| `medium.en`  | Large      | 🐒 Slower   | ⭐⭐⭐⭐ High       | English-only |
| `large-v1`   | Very Large | 🐒 Slow     | ⭐⭐⭐⭐⭐ Best     | Maximum accuracy |
| `large-v2`   | Very Large | 🐒 Slow     | ⭐⭐⭐⭐⭐ Best     | Improved multilingual performance |
| `large-v3`   | Very Large | 🐒 Slow     | ⭐⭐⭐⭐⭐ Best     | Latest and most accurate |

---

## πŸ›  Usage Instructions

### 1. Download the Prebuilt `whisper-cli` Binary

Download the Core ML–enabled `whisper-cli` binary directly from GitHub Releases:

```
https://github.com/aarush67/whisper-cli-for-core-ml/releases/download/v1.0.0/whisper-cli
```

Recommended directory structure:

```
.
β”œβ”€β”€ bin/
β”‚   └── whisper-cli
β”œβ”€β”€ medium.en/
β”‚   β”œβ”€β”€ ggml-medium.en.bin
β”‚   └── medium.en-encoder.mlmodelc/
```

---

### 2. Make the Binary Executable

```bash
chmod +x bin/whisper-cli
```

---

### 3. Run Whisper with a Core ML Model

Place the `.bin` file and the matching `.mlmodelc` folder in the same directory.

#### Example (English-only transcription)

```bash
./bin/whisper-cli -m ggml-medium.en.bin -f sample.wav
```

Whisper.cpp will automatically detect and use the Core ML encoder when available.

---

## 🧠 Best Practices & Notes

- βœ… **Keep `.bin` and `.mlmodelc` files together** from the same model variant
- ❌ Do **not** rename, edit, or partially copy `.mlmodelc` directories
- 🧹 `.pt` cache files (if generated) are temporary and **safe to delete**
- πŸ’Ύ Larger models require significantly more RAM and disk space
- ⚑ Best performance is achieved on Apple Silicon devices with a Neural Engine

---

## πŸ“œ License

- **Repository structure & metadata:** MIT License
- **Model weights & Core ML artifacts:** Governed by the original  
  **Whisper.cpp / OpenAI Whisper licenses**

Please review upstream licenses before commercial or large-scale use.

---

## πŸ™ Credits

- **OpenAI Whisper** – Original speech recognition models  
- **whisper.cpp** by Georgi Gerganov – High-performance C/C++ implementation  
- **Apple Core ML** – Hardware acceleration on Apple Silicon

---

## ⭐ Support

If this repository is useful to you:
- ⭐ Star the repository
- πŸ”— Support the upstream Whisper.cpp project