Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- multilingual
|
| 6 |
+
tags:
|
| 7 |
+
- whisper
|
| 8 |
+
- coreml
|
| 9 |
+
- apple-silicon
|
| 10 |
+
- neural-engine
|
| 11 |
+
- speech-recognition
|
| 12 |
+
- asr
|
| 13 |
+
library_name: whisper.cpp
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Whisper CoreML Models
|
| 17 |
+
|
| 18 |
+
Pre-converted CoreML encoder models for [whisper.cpp](https://github.com/ggerganov/whisper.cpp), optimized for Apple Neural Engine (ANE) acceleration.
|
| 19 |
+
|
| 20 |
+
## Models
|
| 21 |
+
|
| 22 |
+
| Model | Size | Description |
|
| 23 |
+
|-------|------|-------------|
|
| 24 |
+
| `ggml-large-v3-turbo-encoder.mlmodelc` | ~1.3 GB | Whisper large-v3-turbo encoder, ANE-optimized |
|
| 25 |
+
|
| 26 |
+
## Usage
|
| 27 |
+
|
| 28 |
+
These models are used by [whisper-coreml](https://github.com/sebastian-software/whisper-coreml) for Node.js speech recognition with Neural Engine acceleration.
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
npm install whisper-coreml
|
| 32 |
+
npx whisper-coreml download
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Conversion
|
| 36 |
+
|
| 37 |
+
Models were converted using whisper.cpp's conversion tools:
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
python3 models/convert-whisper-to-coreml.py --model large-v3-turbo --encoder-only True --optimize-ane True
|
| 41 |
+
xcrun coremlc compile models/coreml-encoder-large-v3-turbo.mlpackage models/
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Performance
|
| 45 |
+
|
| 46 |
+
On Apple M1 Ultra:
|
| 47 |
+
- **14x real-time** transcription speed
|
| 48 |
+
- 1 hour of audio in ~4.5 minutes
|
| 49 |
+
|
| 50 |
+
## License
|
| 51 |
+
|
| 52 |
+
MIT - Same as whisper.cpp
|
| 53 |
+
|
| 54 |
+
## Credits
|
| 55 |
+
|
| 56 |
+
- [OpenAI Whisper](https://github.com/openai/whisper)
|
| 57 |
+
- [whisper.cpp](https://github.com/ggerganov/whisper.cpp)
|
| 58 |
+
- [Apple Neural Engine Transformers](https://github.com/apple/ml-ane-transformers)
|
| 59 |
+
|