CoolFace
Modelpublic

Plim/xls-r-300m-cv_8-fr

sourceHugging Faceapache-2.0updated 5y agoView on Hugging Face
0likes170downloads
Model Card

Model description

This model is a fine-tuned version of facebook/wav2vec2-xls-r-300m on the MOZILLA-FOUNDATION/COMMONVOICE8_0 - FR dataset.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 7.5e-05
  • —trainbatchsize: 16
  • —evalbatchsize: 16
  • —seed: 42
  • —gradientaccumulationsteps: 8
  • —totaltrainbatch_size: 128
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 2000
  • —num_epochs: 5.0 (extended to 7.0 with training with checkpoint)
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossWer
2.91140.291000inf0.9997
1.24360.572000inf0.4310
1.05520.863000inf0.3144
1.00441.154000inf0.2814
0.97181.435000inf0.2658
0.95021.726000inf0.2566
0.94182.017000inf0.2476
0.92152.298000inf0.2420
0.92362.589000inf0.2388
0.90142.8710000inf0.2354
0.88143.1511000inf0.2312
0.88093.4412000inf0.2285
0.87173.7313000inf0.2263
0.87874.0114000inf0.2218
0.85674.315000inf0.2193
0.84884.5916000inf0.2187
0.83594.8717000inf0.2172

Training continued with checkpoint from STEP 17000:

Training LossEpochStepValidation LossWer
/5.1618000inf0.2176
/5.4519000inf0.2181
/5.7320000inf0.2155
/6.0221000inf0.2140
/6.3122000inf0.2124
/6.5923000inf0.2117
/6.8824000inf0.2116

It achieves the best result on the validation set on Step 24000:

  • —Wer: 0.2116

Got some issue with validation loss calculation.

Framework versions

  • —Transformers 4.17.0.dev0
  • —Pytorch 1.10.2+cu102
  • —Datasets 1.18.3.dev0
  • —Tokenizers 0.11.0

Evaluation Commands

  1. 1.To evaluate on mozilla-foundation/common_voice_8 with split test
bash
python eval.py --model_id Plim/xls-r-300m-cv_8-fr --dataset mozilla-foundation/common_voice_8_0 --config fr --split test
  1. 1.To evaluate on speech-recognition-community-v2/dev_data
bash
python eval.py --model_id Plim/xls-r-300m-cv_8-fr --dataset speech-recognition-community-v2/dev_data --config fr --split validation --chunk_length_s 5.0 --stride_length_s 1.0