
<!-- 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-cls-r-300m-es

This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the COMMON_VOICE - ES dataset.
It achieves the following results on the evaluation set:
- Loss: 0.5160
- Wer: 0.4016

## 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
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 8.0
- mixed_precision_training: Native AMP

### Training results

| Training Loss | Epoch | Step | Validation Loss | Wer    |
|:-------------:|:-----:|:----:|:---------------:|:------:|
| 3.1277        | 1.14  | 500  | 2.0259          | 0.9999 |
| 1.4111        | 2.28  | 1000 | 1.1251          | 0.8894 |
| 0.8461        | 3.42  | 1500 | 0.8205          | 0.7244 |
| 0.5042        | 4.57  | 2000 | 0.6116          | 0.5463 |
| 0.3072        | 5.71  | 2500 | 0.5507          | 0.4506 |
| 0.2181        | 6.85  | 3000 | 0.5213          | 0.4177 |
| 0.1608        | 7.99  | 3500 | 0.5161          | 0.4019 |


### Framework versions

- Transformers 4.17.0.dev0
- Pytorch 1.10.2+cu102
- Datasets 1.18.2.dev0
- Tokenizers 0.11.0

#### Evaluation Commands
1. To evaluate on `mozilla-foundation/common_voice_7_0` with split `test`

```bash
python eval.py --model_id samitizerxu/wav2vec2-xls-r-300m-es --dataset mozilla-foundation/common_voice_7_0 --config es --split test
```

2. To evaluate on `speech-recognition-community-v2/dev_data`

```bash
python eval.py --model_id samitizerxu/wav2vec2-xls-r-300m-es --dataset speech-recognition-community-v2/dev_data --config es --split validation --chunk_length_s 5.0 --stride_length_s 1.0
```
{"language": ["es"], "license": "apache-2.0", "tags": ["automatic-speech-recognition", "common_voice", "generated_from_trainer", "es", "robust-speech-event", "hf-asr-leaderboard"], "datasets": ["common_voice"], "model-index": [{"name": "wav2vec2-cls-r-300m-es", "results": [{"task": {"type": "automatic-speech-recognition", "name": "Automatic Speech Recognition"}, "dataset": {"name": "Common Voice 7", "type": "mozilla-foundation/common_voice_7_0", "args": "es"}, "metrics": [{"type": "wer", "value": 37.37, "name": "Test WER"}, {"type": "cer", "value": 7.11, "name": "Test CER"}]}, {"task": {"type": "automatic-speech-recognition", "name": "Automatic Speech Recognition"}, "dataset": {"name": "Robust Speech Event - Dev Data", "type": "speech-recognition-community-v2/dev_data", "args": "es"}, "metrics": [{"type": "wer", "value": 55.69, "name": "Test WER"}]}, {"task": {"type": "automatic-speech-recognition", "name": "Automatic Speech Recognition"}, "dataset": {"name": "Robust Speech Event - Test Data", "type": "speech-recognition-community-v2/eval_data", "args": "es"}, "metrics": [{"type": "wer", "value": 57.28, "name": "Test WER"}]}]}]}
transformers pytorch wav2vec2 automatic-speech-recognition common_voice generated_from_trainer es robust-speech-event hf-asr-leaderboard dataset:common_voice license:apache-2.0 model-index endpoints_compatible region:us
TAGS
#transformers #pytorch #wav2vec2 #automatic-speech-recognition #common_voice #generated_from_trainer #es #robust-speech-event #hf-asr-leaderboard #dataset-common_voice #license-apache-2.0 #model-index #endpoints_compatible #region-us 

wav2vec2-cls-r-300m-es
======================


This model is a fine-tuned version of facebook/wav2vec2-xls-r-300m on the COMMON\_VOICE - ES dataset.
It achieves the following results on the evaluation set:


* Loss: 0.5160
* Wer: 0.4016


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
* train\_batch\_size: 16
* eval\_batch\_size: 8
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* num\_epochs: 8.0
* mixed\_precision\_training: Native AMP


### Training results



### Framework versions


* Transformers 4.17.0.dev0
* Pytorch 1.10.2+cu102
* Datasets 1.18.2.dev0
* Tokenizers 0.11.0


#### Evaluation Commands


1. To evaluate on 'mozilla-foundation/common\_voice\_7\_0' with split 'test'
2. To evaluate on 'speech-recognition-community-v2/dev\_data'



### Training hyperparameters


The following hyperparameters were used during training:


* learning\_rate: 0.0003
* train\_batch\_size: 16
* eval\_batch\_size: 8
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* num\_epochs: 8.0
* mixed\_precision\_training: Native AMP ### Training results ### Framework versions


* Transformers 4.17.0.dev0
* Pytorch 1.10.2+cu102
* Datasets 1.18.2.dev0
* Tokenizers 0.11.0 #### Evaluation Commands


1. To evaluate on 'mozilla-foundation/common\_voice\_7\_0' with split 'test'
2. To evaluate on 'speech-recognition-community-v2/dev\_data'
TAGS
#transformers #pytorch #wav2vec2 #automatic-speech-recognition #common_voice #generated_from_trainer #es #robust-speech-event #hf-asr-leaderboard #dataset-common_voice #license-apache-2.0 #model-index #endpoints_compatible #region-us 
 ### Training hyperparameters


The following hyperparameters were used during training:


* learning\_rate: 0.0003
* train\_batch\_size: 16
* eval\_batch\_size: 8
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* num\_epochs: 8.0
* mixed\_precision\_training: Native AMP ### Training results ### Framework versions


* Transformers 4.17.0.dev0
* Pytorch 1.10.2+cu102
* Datasets 1.18.2.dev0
* Tokenizers 0.11.0 #### Evaluation Commands


1. To evaluate on 'mozilla-foundation/common\_voice\_7\_0' with split 'test'
2. To evaluate on 'speech-recognition-community-v2/dev\_data'
passage: TAGS
#transformers #pytorch #wav2vec2 #automatic-speech-recognition #common_voice #generated_from_trainer #es #robust-speech-event #hf-asr-leaderboard #dataset-common_voice #license-apache-2.0 #model-index #endpoints_compatible #region-us 
### Training hyperparameters


The following hyperparameters were used during training:


* learning\_rate: 0.0003
* train\_batch\_size: 16
* eval\_batch\_size: 8
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* num\_epochs: 8.0
* mixed\_precision\_training: Native AMP### Training results### Framework versions


* Transformers 4.17.0.dev0
* Pytorch 1.10.2+cu102
* Datasets 1.18.2.dev0
* Tokenizers 0.11.0#### Evaluation Commands


1. To evaluate on 'mozilla-foundation/common\_voice\_7\_0' with split 'test'
2. To evaluate on 'speech-recognition-community-v2/dev\_data'