模型:
此模型是在google/fleurs的am_et数据集上进行微调的版本。在评估集上取得了以下结果:
训练时使用了以下超参数:
| Training Loss | Epoch | Step | Validation Loss | Wer |
|---|---|---|---|---|
| 0.0194 | 100.0 | 100 | 3.8540 | 147.9947 |
| 0.0001 | 200.0 | 200 | 4.1479 | 148.1283 |
| 0.0001 | 300.0 | 300 | 4.1840 | 150.5348 |
| 0.0001 | 400.0 | 400 | 4.3339 | 177.9412 |
| 0.0 | 500.0 | 500 | 4.5831 | 151.0695 |
| 0.0 | 600.0 | 600 | 4.9317 | 164.0374 |
| 0.0 | 700.0 | 700 | 5.3031 | 141.0428 |
| 0.0 | 800.0 | 800 | 5.6584 | 122.3262 |
| 0.0 | 900.0 | 900 | 5.9711 | 157.4866 |
| 0.0 | 1000.0 | 1000 | 6.2465 | 141.1765 |
| 0.0 | 1100.0 | 1100 | 6.4832 | 169.6524 |
| 0.0 | 1200.0 | 1200 | 6.6890 | 155.0802 |
| 0.0 | 1300.0 | 1300 | 6.8679 | 159.7594 |
| 0.0 | 1400.0 | 1400 | 7.0250 | 155.0802 |
| 0.0 | 1500.0 | 1500 | 7.1615 | 146.2567 |
| 0.0 | 1600.0 | 1600 | 7.2877 | 143.0481 |
| 0.0 | 1700.0 | 1700 | 7.3987 | 148.5294 |
| 0.0 | 1800.0 | 1800 | 7.5010 | 142.5134 |
| 0.0 | 1900.0 | 1900 | 7.5849 | 136.7647 |
| 0.0 | 2000.0 | 2000 | 7.6689 | 148.2620 |
| 0.0 | 2100.0 | 2100 | 7.6955 | 165.3743 |
| 0.0 | 2200.0 | 2200 | 7.7247 | 162.9679 |
| 0.0 | 2300.0 | 2300 | 7.7557 | 161.6310 |
| 0.0 | 2400.0 | 2400 | 7.7842 | 162.2995 |
| 0.0 | 2500.0 | 2500 | 7.8074 | 150.9358 |
| 0.0 | 2600.0 | 2600 | 7.8287 | 154.8128 |
| 0.0 | 2700.0 | 2700 | 7.8434 | 155.4813 |
| 0.0 | 2800.0 | 2800 | 7.8567 | 154.4118 |
| 0.0 | 2900.0 | 2900 | 7.8635 | 154.4118 |
| 0.0 | 3000.0 | 3000 | 7.8670 | 154.4118 |
对于较小的数据集,限制训练时长在2000到3000步,以避免过拟合。使用 HuggingFace - Whisper Small 进行5000步的训练在A100 GPU上花费约5小时(每1000步耗时1小时)。遇到了此错误:RuntimeError: The size of tensor a (504) 必须与张量 b (448) 在非单例维度1上匹配,与 Trainer RuntimeError 相关,因为某些语言数据集的输入长度具有非标准长度。链接未解决我的问题,并在其他地方也有出现。为了避免此问题,调整了 run.sh 参数。然后运行 python run_eval_whisper_streaming.py --model_id="openai/whisper-small" --dataset="google/fleurs" --config="am_et" --batch_size=32 --max_eval_samples=64 --device=0 --language="am" 手动计算 WER 分数。否则,在评估过程中出错会导致训练的模型无法加载到HugginFace。根据 AXRIV 和 Benchmarking OpenAI Whisper for non-English ASR - Dan Shafer 的论文,该模型对某些语言和策划数据集存在性能偏差。OpenAI fintuning 社区活动提供了充足的免费GPU时间,以帮助进一步开发模型并提高WER分数。
使用 Machine Learning Impact calculator 中介绍的方法估算了碳排放量,总共使用了大约100小时,主要在美国东部/亚太地区(80%/20%),以AWS为参考。其他资源可在 Our World in Data - CO2 Emissions 上获得
@misc{https://doi.org/10.48550/arxiv.2212.04356,
doi = {10.48550/ARXIV.2212.04356},
url = {https://arxiv.org/abs/2212.04356},
author = {Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
keywords = {Audio and Speech Processing (eess.AS), Computation and Language (cs.CL), Machine Learning (cs.LG), Sound (cs.SD), FOS: Electrical engineering, electronic engineering, information engineering, FOS: Electrical engineering, electronic engineering, information engineering, FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Robust Speech Recognition via Large-Scale Weak Supervision},
publisher = {arXiv},
year = {2022},
copyright = {arXiv.org perpetual, non-exclusive license}
}
@article{owidco2andothergreenhousegasemissions,
author = {Hannah Ritchie and Max Roser and Pablo Rosado},
title = {CO₂ and Greenhouse Gas Emissions},
journal = {Our World in Data},
year = {2020},
note = {https://ourworldindata.org/co2-and-other-greenhouse-gas-emissions}
}