amitpant7/nepali-speech-to-text
Viewer • Updated • 2.65k • 39
How to use aamoshdahal/whisper-small-nepali with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="aamoshdahal/whisper-small-nepali") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("aamoshdahal/whisper-small-nepali")
model = AutoModelForSpeechSeq2Seq.from_pretrained("aamoshdahal/whisper-small-nepali", device_map="auto")# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("aamoshdahal/whisper-small-nepali")
model = AutoModelForSpeechSeq2Seq.from_pretrained("aamoshdahal/whisper-small-nepali", device_map="auto")This model is a fine-tuned version of openai/whisper-small on the Nepali Speech-to-Text Dataset 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.0121 | 9.6154 | 1000 | 0.3463 | 44.6216 |
| 0.0014 | 19.2308 | 2000 | 0.4206 | 42.2300 |
| 0.0001 | 28.8462 | 3000 | 0.4535 | 41.8706 |
| 0.0 | 38.4615 | 4000 | 0.4684 | 41.8482 |
| 0.0 | 48.0769 | 5000 | 0.4741 | 41.8257 |
Base model
openai/whisper-small
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="aamoshdahal/whisper-small-nepali")