BriereAssia/wav2vec2_finetuned_model
Browse files- README.md +91 -0
- config.json +82 -0
- model.safetensors +3 -0
- preprocessor_config.json +11 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
base_model: facebook/w2v-bert-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- common_voice_11_0
|
| 9 |
+
metrics:
|
| 10 |
+
- wer
|
| 11 |
+
model-index:
|
| 12 |
+
- name: w2v-V3
|
| 13 |
+
results:
|
| 14 |
+
- task:
|
| 15 |
+
name: Automatic Speech Recognition
|
| 16 |
+
type: automatic-speech-recognition
|
| 17 |
+
dataset:
|
| 18 |
+
name: common_voice_11_0
|
| 19 |
+
type: common_voice_11_0
|
| 20 |
+
config: ar
|
| 21 |
+
split: test
|
| 22 |
+
args: ar
|
| 23 |
+
metrics:
|
| 24 |
+
- name: Wer
|
| 25 |
+
type: wer
|
| 26 |
+
value: 0.16133249852681203
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 30 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 31 |
+
|
| 32 |
+
# w2v-V3
|
| 33 |
+
|
| 34 |
+
This model is a fine-tuned version of [facebook/w2v-bert-2.0](https://huggingface.co/facebook/w2v-bert-2.0) on the common_voice_11_0 dataset.
|
| 35 |
+
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 0.1847
|
| 37 |
+
- Wer: 0.1613
|
| 38 |
+
|
| 39 |
+
## Model description
|
| 40 |
+
|
| 41 |
+
More information needed
|
| 42 |
+
|
| 43 |
+
## Intended uses & limitations
|
| 44 |
+
|
| 45 |
+
More information needed
|
| 46 |
+
|
| 47 |
+
## Training and evaluation data
|
| 48 |
+
|
| 49 |
+
More information needed
|
| 50 |
+
|
| 51 |
+
## Training procedure
|
| 52 |
+
|
| 53 |
+
### Training hyperparameters
|
| 54 |
+
|
| 55 |
+
The following hyperparameters were used during training:
|
| 56 |
+
- learning_rate: 5e-05
|
| 57 |
+
- train_batch_size: 4
|
| 58 |
+
- eval_batch_size: 8
|
| 59 |
+
- seed: 42
|
| 60 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 61 |
+
- lr_scheduler_type: linear
|
| 62 |
+
- training_steps: 5000
|
| 63 |
+
|
| 64 |
+
### Training results
|
| 65 |
+
|
| 66 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer |
|
| 67 |
+
|:-------------:|:------:|:----:|:---------------:|:------:|
|
| 68 |
+
| 1.566 | 0.0428 | 300 | 0.6246 | 0.5686 |
|
| 69 |
+
| 0.462 | 0.0856 | 600 | 0.5791 | 0.3623 |
|
| 70 |
+
| 0.4407 | 0.1284 | 900 | 0.4428 | 0.3232 |
|
| 71 |
+
| 0.4036 | 0.1712 | 1200 | 0.4119 | 0.3066 |
|
| 72 |
+
| 0.328 | 0.2139 | 1500 | 0.3693 | 0.2684 |
|
| 73 |
+
| 0.3151 | 0.2567 | 1800 | 0.3102 | 0.2462 |
|
| 74 |
+
| 0.2907 | 0.2995 | 2100 | 0.3221 | 0.2411 |
|
| 75 |
+
| 0.2553 | 0.3423 | 2400 | 0.3061 | 0.2430 |
|
| 76 |
+
| 0.2156 | 0.3851 | 2700 | 0.2857 | 0.2104 |
|
| 77 |
+
| 0.2034 | 0.4279 | 3000 | 0.2516 | 0.2025 |
|
| 78 |
+
| 0.2038 | 0.4707 | 3300 | 0.2395 | 0.1995 |
|
| 79 |
+
| 0.1751 | 0.5135 | 3600 | 0.2372 | 0.1875 |
|
| 80 |
+
| 0.1697 | 0.5563 | 3900 | 0.2063 | 0.1809 |
|
| 81 |
+
| 0.1501 | 0.5991 | 4200 | 0.2005 | 0.1775 |
|
| 82 |
+
| 0.1428 | 0.6418 | 4500 | 0.2024 | 0.1701 |
|
| 83 |
+
| 0.1211 | 0.6846 | 4800 | 0.1883 | 0.1642 |
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
### Framework versions
|
| 87 |
+
|
| 88 |
+
- Transformers 4.49.0
|
| 89 |
+
- Pytorch 2.5.1+cu121
|
| 90 |
+
- Datasets 3.3.1
|
| 91 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "facebook/w2v-bert-2.0",
|
| 3 |
+
"activation_dropout": 0.0,
|
| 4 |
+
"adapter_act": "relu",
|
| 5 |
+
"adapter_kernel_size": 3,
|
| 6 |
+
"adapter_stride": 2,
|
| 7 |
+
"add_adapter": true,
|
| 8 |
+
"apply_spec_augment": false,
|
| 9 |
+
"architectures": [
|
| 10 |
+
"Wav2Vec2BertForCTC"
|
| 11 |
+
],
|
| 12 |
+
"attention_dropout": 0.0,
|
| 13 |
+
"bos_token_id": 1,
|
| 14 |
+
"classifier_proj_size": 768,
|
| 15 |
+
"codevector_dim": 768,
|
| 16 |
+
"conformer_conv_dropout": 0.1,
|
| 17 |
+
"contrastive_logits_temperature": 0.1,
|
| 18 |
+
"conv_depthwise_kernel_size": 31,
|
| 19 |
+
"ctc_loss_reduction": "mean",
|
| 20 |
+
"ctc_zero_infinity": false,
|
| 21 |
+
"diversity_loss_weight": 0.1,
|
| 22 |
+
"eos_token_id": 2,
|
| 23 |
+
"feat_proj_dropout": 0.0,
|
| 24 |
+
"feat_quantizer_dropout": 0.0,
|
| 25 |
+
"feature_projection_input_dim": 160,
|
| 26 |
+
"final_dropout": 0.1,
|
| 27 |
+
"hidden_act": "swish",
|
| 28 |
+
"hidden_dropout": 0.0,
|
| 29 |
+
"hidden_size": 1024,
|
| 30 |
+
"initializer_range": 0.02,
|
| 31 |
+
"intermediate_size": 4096,
|
| 32 |
+
"layer_norm_eps": 1e-05,
|
| 33 |
+
"layerdrop": 0.0,
|
| 34 |
+
"left_max_position_embeddings": 64,
|
| 35 |
+
"mask_feature_length": 10,
|
| 36 |
+
"mask_feature_min_masks": 0,
|
| 37 |
+
"mask_feature_prob": 0.0,
|
| 38 |
+
"mask_time_length": 10,
|
| 39 |
+
"mask_time_min_masks": 2,
|
| 40 |
+
"mask_time_prob": 0.0,
|
| 41 |
+
"max_source_positions": 5000,
|
| 42 |
+
"model_type": "wav2vec2-bert",
|
| 43 |
+
"num_adapter_layers": 1,
|
| 44 |
+
"num_attention_heads": 16,
|
| 45 |
+
"num_codevector_groups": 2,
|
| 46 |
+
"num_codevectors_per_group": 320,
|
| 47 |
+
"num_hidden_layers": 24,
|
| 48 |
+
"num_negatives": 100,
|
| 49 |
+
"output_hidden_size": 1024,
|
| 50 |
+
"pad_token_id": 74,
|
| 51 |
+
"position_embeddings_type": "relative_key",
|
| 52 |
+
"proj_codevector_dim": 768,
|
| 53 |
+
"right_max_position_embeddings": 8,
|
| 54 |
+
"rotary_embedding_base": 10000,
|
| 55 |
+
"tdnn_dilation": [
|
| 56 |
+
1,
|
| 57 |
+
2,
|
| 58 |
+
3,
|
| 59 |
+
1,
|
| 60 |
+
1
|
| 61 |
+
],
|
| 62 |
+
"tdnn_dim": [
|
| 63 |
+
512,
|
| 64 |
+
512,
|
| 65 |
+
512,
|
| 66 |
+
512,
|
| 67 |
+
1500
|
| 68 |
+
],
|
| 69 |
+
"tdnn_kernel": [
|
| 70 |
+
5,
|
| 71 |
+
3,
|
| 72 |
+
3,
|
| 73 |
+
1,
|
| 74 |
+
1
|
| 75 |
+
],
|
| 76 |
+
"torch_dtype": "float32",
|
| 77 |
+
"transformers_version": "4.49.0",
|
| 78 |
+
"use_intermediate_ffn_before_adapter": false,
|
| 79 |
+
"use_weighted_layer_sum": false,
|
| 80 |
+
"vocab_size": 77,
|
| 81 |
+
"xvector_output_dim": 512
|
| 82 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd465918ef2dbc33f95acc30c37b1bdc1102e8954b6c0ba83d2940de56157b82
|
| 3 |
+
size 2423130260
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"feature_extractor_type": "SeamlessM4TFeatureExtractor",
|
| 3 |
+
"feature_size": 80,
|
| 4 |
+
"num_mel_bins": 80,
|
| 5 |
+
"padding_side": "right",
|
| 6 |
+
"padding_value": 1,
|
| 7 |
+
"processor_class": "Wav2Vec2BertProcessor",
|
| 8 |
+
"return_attention_mask": true,
|
| 9 |
+
"sampling_rate": 16000,
|
| 10 |
+
"stride": 2
|
| 11 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce528dea8b5bf0e151afa7e137aa6a502cda237185baa550004044fcd28256bd
|
| 3 |
+
size 5240
|