CoolFace
Modelpublic

visalkao/whisper-small-french-finetuning

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes4downloads
Model Card

Model Card for Model ID

<!-- Provide a quick summary of what the model is/does. -->

Model Details

Model Description

<!-- Provide a longer summary of what this model is. -->

  • —Developed by: Visal KAO
  • —Model type: Speech Recognition
  • —Language(s) (NLP): French
  • —License: MIT
  • —Finetuned from model : Whisper-small

Model Sources [optional]

<!-- Provide the basic links for the model. -->

  • —Repository: openai/whisper-small

Dataset

This model is finetuned on 50% of French Single Speaker Speech Dataset on kaggle (Only lesmis).

  • —Link to dataset : (https://www.kaggle.com/datasets/bryanpark/french-single-speaker-speech-dataset)

Uses

<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> The goal of this project is to finetune whisper-small model to improve its accuracy for french transcription.

The reason why I chose Whisper-small is due to its size and versatility. My primary objective is to build/finetune a small model to get acceptable results.

Direct Use

Live Demo : https://huggingface.co/spaces/visalkao/whisper-small-french-finetuned

Bias, Risks, and Limitations

As this model has less than 250 millions parameters, which is quite small considering its objective is to transcribe speech, it also has its own limitation.

The Word Error Rate (WER) of this finetuned model is approximately 0.17 (17%).

For reference, the original Whisper-small's WER is around 0.27 (27%) on the same dataset.

Training Hyperparameters

This model is trained using LoRa with these hyperparamters:

  • —perdevicetrainbatchsize=3,
  • —gradientaccumulationsteps=1,
  • —learning_rate=1e-3,
  • —numtrainepochs=7,
  • —evaluation_strategy="epoch",
  • —fp16=True,
  • —perdeviceevalbatchsize=1,
  • —generationmaxlength=225,
  • —logging_steps=10,
  • —removeunusedcolumns=False,
  • —label_names=["labels"],
  • —predictwithgenerate=True,

Results

Before finetuning, The Word Error Rate on this dataset is approximately 0.27.

After finetuning, it drops down 0.1 to 0.17 or 17% wer (On testing data).

Here is the training log:

EpochTraining LossValidation LossWER
10.3696000.40441426.665379
20.2732000.36176222.793976
30.3088000.34428924.454528
40.1316000.31802321.847847
50.1174000.31102319.134968
60.0357000.30141018.922572
70.0139000.31515116.972388