MohamedRashad/arabic-english-code-switching
Viewer • Updated • 12.5k • 168 • 35
How to use MostafaKhidr/whisper-Large-ArabicEnglish with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="MostafaKhidr/whisper-Large-ArabicEnglish") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("MostafaKhidr/whisper-Large-ArabicEnglish")
model = AutoModelForSpeechSeq2Seq.from_pretrained("MostafaKhidr/whisper-Large-ArabicEnglish", device_map="auto")This model is a fine-tuned version of openai/whisper-large-v2 on the arabic-english-code-switching dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Wer |
|---|---|---|---|---|
| 0.558 | 0.6748 | 1000 | 0.5802 | 46.1378 |
| 0.3725 | 1.3495 | 2000 | 0.5258 | 43.1008 |
| 0.2131 | 2.0243 | 3000 | 0.5152 | 34.4890 |
| 0.204 | 2.6991 | 4000 | 0.5111 | 37.8727 |
| 0.1012 | 3.3738 | 5000 | 0.5475 | 34.1839 |
| 0.0593 | 4.0486 | 6000 | 0.5693 | 33.2686 |
| 0.0436 | 4.7233 | 7000 | 0.5895 | 33.0190 |
| 0.0189 | 5.3981 | 8000 | 0.6472 | 31.9235 |
| 0.0063 | 6.0729 | 9000 | 0.6850 | 32.2701 |
| 0.0046 | 6.7476 | 10000 | 0.7108 | 31.6184 |
Base model
openai/whisper-large-v2