Team Ai
Modelpublic

cahya/whisper-medium-id

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
26likes1.4kdownloads
Model Card

Whisper Medium Indonesian

This model is a fine-tuned version of openai/whisper-medium on the Indonesian mozilla-foundation/commonvoice110, magicdata, titml and google/fleurs dataset. It achieves the following results:

CV11 test split:

  • —Loss: 0.0698
  • —Wer: 3.8274

Google/fleurs test split:

  • —Wer: 9.74

Usage

python
from transformers import pipeline
transcriber = pipeline(
  "automatic-speech-recognition", 
  model="cahya/whisper-medium-id"
)
transcriber.model.config.forced_decoder_ids = (
  transcriber.tokenizer.get_decoder_prompt_ids(
    language="id" 
    task="transcribe"
  )
)
transcription = transcriber("my_audio_file.mp3")

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-06
  • —trainbatchsize: 16
  • —evalbatchsize: 16
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 500
  • —training_steps: 10000
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossWer
0.04270.3310000.06644.3807
0.0420.6620000.06583.9426
0.02650.9930000.06573.8274
0.02111.3240000.06793.8366
0.02121.6650000.06823.8412
0.02061.9960000.06833.8689
0.01662.3270000.07113.9657
0.00952.6580000.07173.9980
0.01222.9890000.07143.9795
0.00493.31100000.07203.9887

Evaluation

We evaluated the model using the test split of two datasets, the Common Voice 11 and the Google Fleurs. As Whisper can transcribe casing and punctuation, we also evaluate its performance using raw and normalized text. (lowercase + removal of punctuations). The results are as follows:

Common Voice 11

Google/Fleurs

WER
cahya/whisper-medium-id9.74
cahya/whisper-medium-id + text normalizationtbc
openai/whisper-medium10.2
openai/whisper-medium + text normalizationtbc

Framework versions

  • —Transformers 4.26.0.dev0
  • —Pytorch 1.13.0+cu117
  • —Datasets 2.7.1.dev0
  • —Tokenizers 0.13.2