CoolFace
Modelpublic

ivanlau/wav2vec2-large-xls-r-300m-cantonese

sourceHugging Faceapache-2.0updated 4y agoView on Hugging Face
1likes40downloads
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. -->

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

  • —Loss: 1.4848
  • —Wer: 0.8004

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: 0.0003
  • —trainbatchsize: 32
  • —evalbatchsize: 16
  • —seed: 42
  • —gradientaccumulationsteps: 2
  • —totaltrainbatch_size: 64
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 500
  • —num_epochs: 100.0
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossWer
No log1.018347.84421.0
No log2.03666.31091.0
41.89023.05496.23921.0
41.89024.07325.97391.1123
41.89025.09154.90141.9474
5.58176.010983.98921.0188
5.58177.012813.50801.0104
5.58178.014643.07970.9905
3.55799.016472.81110.9836
3.557910.018302.67260.9815
2.777111.020132.71770.9809
2.777112.021962.35820.9692
2.777113.023792.17080.9757
2.348814.025622.04910.9526
2.348815.027451.85180.9378
2.348816.029281.68450.9286
1.785917.031111.64120.9280
1.785918.032941.54880.9035
1.785919.034771.45460.9010
1.389820.036601.51470.9201
1.389821.038431.44670.8959
1.129122.040261.47430.9035
1.129123.042091.38270.8762
1.129124.043921.34370.8792
0.899325.045751.28950.8577
0.899326.047581.29280.8558
0.899327.049411.29470.9163
0.629828.051241.31510.8738
0.629829.053071.29720.8514
0.629830.054901.30300.8432
0.475731.056731.32640.8364
0.475732.058561.31310.8421
0.373533.060391.34570.8588
0.373534.062221.34500.8473
0.373535.064051.34520.9218
0.325336.065881.37540.8397
0.325337.067711.35540.8353
0.325338.069541.35320.8312
0.281639.071371.36940.8345
0.281640.073201.39530.8296
0.239741.075031.38580.8293
0.239742.076861.39590.8402
0.239743.078691.43500.9318
0.208444.080521.40040.8806
0.208445.082351.38710.8255
0.208446.084181.40600.8252
0.185347.086011.39920.8501
0.185348.087841.41860.8252
0.185349.089671.41200.8165
0.167150.091501.41660.8214
0.167151.093331.44110.8501
0.151352.095161.46920.8394
0.151353.096991.46400.8391
0.151354.098821.45010.8419
0.13355.0100651.41340.8351
0.13356.0102481.45930.8405
0.13357.0104311.45600.8389
0.119858.0106141.47340.8334
0.119859.0107971.46490.8318
0.119860.0109801.46590.8100
0.110961.0111631.47840.8119
0.110962.0113461.49380.8149
0.106363.0115291.50500.8152
0.106364.0117121.47730.8176
0.106365.0118951.48360.8261
0.096666.0120781.49790.8157
0.096667.0122611.46030.8048
0.096668.0124441.48030.8127
0.086769.0126271.49740.8130
0.086770.0128101.47210.8078
0.086771.0129931.46440.8192
0.082772.0131761.48350.8138
0.082773.0133591.49340.8122
0.073474.0135421.49510.8062
0.073475.0137251.49080.8070
0.073476.0139081.48760.8124
0.066477.0140911.49340.8053
0.066478.0142741.46030.8048
0.066479.0144571.47320.8073
0.060280.0146401.49250.8078
0.060281.0148231.48120.8064
0.05782.0150061.49500.8013
0.05783.0151891.47850.8056
0.05784.0153721.48560.7993
0.051785.0155551.47550.8034
0.051786.0157381.48130.8034
0.051787.0159211.49660.8048
0.046888.0161041.48830.8002
0.046889.0162871.47460.8023
0.046890.0164701.46970.7974
0.042691.0166531.47750.8004
0.042692.0168361.48520.8023
0.038793.0170191.48680.8004
0.038794.0172021.47850.8021
0.038795.0173851.48920.8015
0.035996.0175681.48620.8018
0.035997.0177511.48510.8007
0.035998.0179341.48460.7999
0.034799.0181171.48520.7993
0.0347100.0183001.48480.8004
Evaluation Commands
  1. 1.To evaluate on mozilla-foundation/common_voice_8_0 with split test
bash
python eval.py --model_id ivanlau/wav2vec2-large-xls-r-300m-cantonese --dataset mozilla-foundation/common_voice_8_0 --config zh-HK --split test --log_outputs
  1. 1.To evaluate on speech-recognition-community-v2/dev_data
bash
python eval.py --model_id ivanlau/wav2vec2-large-xls-r-300m-cantonese --dataset speech-recognition-community-v2/dev_data --config zh-HK --split validation --chunk_length_s 5.0 --stride_length_s 1.0 --log_outputs

Framework versions

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