CoolFace
Modelpublic

samitizerxu/wav2vec2-xls-r-300m-zh-CN

sourceHugging Faceapache-2.0updated 5y agoView on Hugging Face
2likes10downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

wav2vec2-xls-r-300m-zh-CN

This model is a fine-tuned version of facebook/wav2vec2-xls-r-300m on the COMMON_VOICE - ZH-CN dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.8828
  • —Wer: 2.0604

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: 7.5e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 8
  • —seed: 42
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 32
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 2000
  • —num_epochs: 50.0
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossWer
60.21120.7450064.81891.0
8.11281.4810006.89971.0
6.04922.2215005.96771.9495
5.93262.9520005.88451.4092
5.87633.6925005.84601.6126
5.78884.4330005.75452.2034
5.7355.1735005.67772.3350
5.68615.9140005.51792.2232
5.3816.6545005.14202.1816
4.6257.3950003.90202.0722
4.2148.1255003.33942.1430
3.89928.8660002.90852.1534
3.64819.665002.62082.3538
3.465810.3470002.31722.2271
3.25711.0875002.09162.1351
3.129411.8280001.89542.2133
3.026612.5685001.76732.0896
2.945113.2990001.66592.1381
2.880214.0395001.56372.1969
2.7814.77100001.49212.2335
2.704915.51105001.41322.2217
2.676816.25110001.36672.2232
2.635816.99115001.31112.1286
2.580217.72120001.26792.1430
2.501218.46125001.23652.1153
2.45819.2130001.21182.1573
2.443319.94135001.19922.1336
2.43820.68140001.18032.1509
2.41821.42145001.16012.1232
2.332222.16150001.14182.1930
2.338722.89155001.11722.2464
2.334923.63160001.11442.1856
2.29124.37165001.10182.1930
2.276625.11170001.08832.1762
2.253425.85175001.07442.1875
2.239326.59180001.05612.1846
2.208527.33185001.04662.1445
2.196628.06190001.03822.1089
2.179428.8195001.02641.9861
2.142329.54200001.02461.9678
2.164930.28205000.99822.0005
2.14331.02210000.99852.0450
2.133831.76215000.99322.0025
2.107632.5220000.99032.0505
2.051933.23225000.98342.0737
2.053433.97230000.97562.0247
2.012134.71235000.96882.1440
2.016135.45240000.95822.1232
2.017836.19245000.94802.0896
2.015436.93250000.94832.0787
1.996637.67255000.94062.0297
1.975338.4260000.94192.0346
1.952439.14265000.92742.0698
1.942739.88270000.92332.0787
1.925840.62275000.91822.0529
1.903141.36280000.91502.0787
1.929742.1285000.90402.0505
1.904142.84290000.90092.0579
1.892943.57295000.89682.0327
1.907744.31300000.89542.0619
1.850445.05305000.89222.0737
1.873245.79310000.88982.0683
1.87746.53315000.88492.0589
1.858747.27320000.88432.0450
1.823648.01325000.88102.0554
1.839248.74330000.88202.0574
1.842849.48335000.88162.0668

Framework versions

  • —Transformers 4.17.0.dev0
  • —Pytorch 1.10.2+cu102
  • —Datasets 1.18.2.dev0
  • —Tokenizers 0.11.0
Evaluation Commands
  1. 1.To evaluate on mozilla-foundation/common_voice_7_0 with split test
bash
python eval.py --model_id samitizerxu/wav2vec2-xls-r-300m-zh-CN --dataset mozilla-foundation/common_voice_7_0 --config zh-CN --split test
  1. 1.To evaluate on speech-recognition-community-v2/dev_data
bash
python eval.py --model_id samitizerxu/wav2vec2-xls-r-300m-zh-CN --dataset speech-recognition-community-v2/dev_data --config zh-CN --split validation --chunk_length_s 5.0 --stride_length_s 1.0