Whisper Small Gujarati OpenSLR
This model is a fine-tuned version of vasista22/whisper-gujarati-small on the Gujarati OpenSLR dataset. It achieves the following results on the evaluation set:
- Loss: 0.0472
- Wer: 35.3258
- Cer: 22.3685
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 500
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
Training Loss | Epoch | Step | Validation Loss | Wer | Cer |
---|---|---|---|---|---|
0.0018 | 4.9505 | 1000 | 0.0472 | 35.3258 | 22.3685 |
Framework versions
- Transformers 4.41.2
- Pytorch 2.3.0+cu121
- Datasets 2.20.0
- Tokenizers 0.19.1
Usage
In order to infer a single audio file using this model, the following code snippet can be used:
>>> import torch
>>> from transformers import pipeline
>>> # path to the audio file to be transcribed
>>> audio = "/path/to/audio.format"
>>> device = "cuda:0" if torch.cuda.is_available() else "cpu"
>>> transcribe = pipeline(task="automatic-speech-recognition", model="1rsh/whisper-small-gu", chunk_length_s=30, device=device)
>>> transcribe.model.config.forced_decoder_ids = transcribe.tokenizer.get_decoder_prompt_ids(language="gu", task="transcribe")
>>> print('Transcription: ', transcribe(audio)["text"])
- Downloads last month
- 7
Inference Providers
NEW
This model is not currently available via any of the supported third-party Inference Providers, and
the model is not deployed on the HF Inference API.
Model tree for 1rsh/whisper-small-gu
Base model
vasista22/whisper-gujarati-smallDataset used to train 1rsh/whisper-small-gu
Evaluation results
- WER on Gujarati OpenSLRself-reported35.326
- CER on Gujarati OpenSLRself-reported22.369
- WER on Google FLEURSself-reported46.597
- CER on Google FLEURSself-reported22.690
- Normalized WER on Google FLEURSself-reported44.013
- Normalized CER on Google FLEURSself-reported18.702