Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- fa
|
| 5 |
+
base_model:
|
| 6 |
+
- SadeghK/whisper-large-v3-turbo
|
| 7 |
+
tags:
|
| 8 |
+
- ASR
|
| 9 |
+
- Persian
|
| 10 |
+
- Farsi
|
| 11 |
+
---
|
| 12 |
+
# Whisper Large V3 Turbo (CTranslate2) β Optimized for Faster-Whisper & WhisperX
|
| 13 |
+
|
| 14 |
+
This repository contains a **CTranslate2 (CT2) optimized version** of the `whisper-large-v3-turbo` model finetuned by **SadeghK**.
|
| 15 |
+
It is designed for **high-speed inference**, **low-latency ASR**, and **full WhisperX compatibility** (ASR + alignment + diarization).
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## π Model Overview
|
| 20 |
+
|
| 21 |
+
This is a converted version of the original `SadeghK/whisper-large-v3-turbo` model into **CTranslate2 format**, which enables:
|
| 22 |
+
|
| 23 |
+
- β Faster inference (up to 4Γ vs PyTorch)
|
| 24 |
+
- β Lower memory usage (supports float16 / int8 / int8_float16)
|
| 25 |
+
- β Full compatibility with **faster-whisper**
|
| 26 |
+
- β Full compatibility with **WhisperX** for:
|
| 27 |
+
- ASR transcription
|
| 28 |
+
- Word-level alignment
|
| 29 |
+
- (optional) speaker diarization
|
| 30 |
+
|
| 31 |
+
All weights in this repository are **ready-to-use**, no additional conversion required.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
## π¬ Usage with WhisperX (ASR + alignment)
|
| 37 |
+
```python
|
| 38 |
+
import whisperx
|
| 39 |
+
|
| 40 |
+
device = "cuda"
|
| 41 |
+
|
| 42 |
+
# ASR
|
| 43 |
+
asr_model = whisperx.load_model(
|
| 44 |
+
"SadeghK/whisper-large-v3-turbo-ct2",
|
| 45 |
+
device=device,
|
| 46 |
+
compute_type="float16"
|
| 47 |
+
)
|
| 48 |
+
|
| 49 |
+
result = asr_model.transcribe("audio.wav")
|
| 50 |
+
|
| 51 |
+
# Alignment (example for Persian)
|
| 52 |
+
align_model, metadata = whisperx.load_align_model("fa", device)
|
| 53 |
+
aligned = whisperx.align(result["segments"], align_model, metadata, "audio.wav", device)
|
| 54 |
+
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## π Repository Structure
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
whisper-large-v3-turbo-ct2/
|
| 63 |
+
β
|
| 64 |
+
βββ config.json
|
| 65 |
+
βββ model.bin
|
| 66 |
+
βββ preprocessor_config.json
|
| 67 |
+
βββ tokenizer.json
|
| 68 |
+
βββ vocabulary.json
|
| 69 |
+
```
|