Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- multilingual
|
| 6 |
+
tags:
|
| 7 |
+
- whisper
|
| 8 |
+
- speech-to-text
|
| 9 |
+
- mlx
|
| 10 |
+
- quantized
|
| 11 |
+
- q8
|
| 12 |
+
- apple-silicon
|
| 13 |
+
library_name: transformers
|
| 14 |
+
pipeline_tag: automatic-speech-recognition
|
| 15 |
+
base_model: openai/whisper-small
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Whisper Small - MLX Q8 Quantized
|
| 19 |
+
|
| 20 |
+
8-bit quantized version of OpenAI's Whisper Small, optimized for Apple Silicon with MLX.
|
| 21 |
+
|
| 22 |
+
## Model Details
|
| 23 |
+
|
| 24 |
+
| Property | Value |
|
| 25 |
+
|----------|-------|
|
| 26 |
+
| Original Model | [openai/whisper-small](https://huggingface.co/openai/whisper-small) |
|
| 27 |
+
| Parameters | ~244M |
|
| 28 |
+
| Quantization | INT8 (Q8) |
|
| 29 |
+
| Size | ~300MB |
|
| 30 |
+
|
| 31 |
+
## Other Whisper Models
|
| 32 |
+
|
| 33 |
+
| Model | Size | Link |
|
| 34 |
+
|-------|------|------|
|
| 35 |
+
| **small** (this) | ~300MB | - |
|
| 36 |
+
| medium | ~800MB | [LibraxisAI/whisper-medium-mlx-q8](https://huggingface.co/LibraxisAI/whisper-medium-mlx-q8) |
|
| 37 |
+
| large-v3 | ~1.6GB | [LibraxisAI/whisper-large-v3-mlx-q8](https://huggingface.co/LibraxisAI/whisper-large-v3-mlx-q8) |
|
| 38 |
+
| large-v3-turbo | ~900MB | [LibraxisAI/whisper-large-v3-turbo-mlx-q8](https://huggingface.co/LibraxisAI/whisper-large-v3-turbo-mlx-q8) |
|
| 39 |
+
|
| 40 |
+
## Usage
|
| 41 |
+
|
| 42 |
+
```python
|
| 43 |
+
import mlx_whisper
|
| 44 |
+
|
| 45 |
+
result = mlx_whisper.transcribe(
|
| 46 |
+
"audio.wav",
|
| 47 |
+
path_or_hf_repo="LibraxisAI/whisper-small-mlx-q8"
|
| 48 |
+
)
|
| 49 |
+
print(result["text"])
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Hardware Requirements
|
| 53 |
+
|
| 54 |
+
- Apple Silicon Mac (M1/M2/M3/M4)
|
| 55 |
+
- Minimum 8GB RAM
|
| 56 |
+
|
| 57 |
+
## License
|
| 58 |
+
|
| 59 |
+
MIT - inherited from OpenAI Whisper.
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
*Converted by [LibraxisAI](https://huggingface.co/LibraxisAI) using mlx-whisper*
|