thangtrungnguyen
commited on
Commit
•
1092b38
1
Parent(s):
056e52b
End of training
Browse files- README.md +86 -0
- config.json +120 -0
- model.safetensors +3 -0
- preprocessor_config.json +10 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: cc-by-nc-4.0
|
4 |
+
base_model: nguyenvulebinh/wav2vec2-base-vi
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- doof-ferb/LSVSC
|
9 |
+
metrics:
|
10 |
+
- f1
|
11 |
+
model-index:
|
12 |
+
- name: vietnamese-regional-accent-classification-model
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Audio Classification
|
16 |
+
type: audio-classification
|
17 |
+
dataset:
|
18 |
+
name: LSVSC
|
19 |
+
type: doof-ferb/LSVSC
|
20 |
+
metrics:
|
21 |
+
- name: F1
|
22 |
+
type: f1
|
23 |
+
value: 0.8217287598030195
|
24 |
+
---
|
25 |
+
|
26 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
27 |
+
should probably proofread and complete it, then remove this comment. -->
|
28 |
+
|
29 |
+
# vietnamese-regional-accent-classification-model
|
30 |
+
|
31 |
+
This model is a fine-tuned version of [nguyenvulebinh/wav2vec2-base-vi](https://huggingface.co/nguyenvulebinh/wav2vec2-base-vi) on the LSVSC dataset.
|
32 |
+
It achieves the following results on the evaluation set:
|
33 |
+
- Loss: 0.5951
|
34 |
+
- F1: 0.8217
|
35 |
+
|
36 |
+
## Model description
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Intended uses & limitations
|
41 |
+
|
42 |
+
More information needed
|
43 |
+
|
44 |
+
## Training and evaluation data
|
45 |
+
|
46 |
+
More information needed
|
47 |
+
|
48 |
+
## Training procedure
|
49 |
+
|
50 |
+
### Training hyperparameters
|
51 |
+
|
52 |
+
The following hyperparameters were used during training:
|
53 |
+
- learning_rate: 5e-05
|
54 |
+
- train_batch_size: 64
|
55 |
+
- eval_batch_size: 64
|
56 |
+
- seed: 42
|
57 |
+
- gradient_accumulation_steps: 4
|
58 |
+
- total_train_batch_size: 256
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- lr_scheduler_warmup_ratio: 0.1
|
62 |
+
- num_epochs: 11
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
| Training Loss | Epoch | Step | F1 | Validation Loss |
|
67 |
+
|:-------------:|:-----:|:----:|:------:|:---------------:|
|
68 |
+
| 1.0507 | 1.0 | 44 | 0.7563 | 0.8615 |
|
69 |
+
| 0.8157 | 2.0 | 88 | 0.7804 | 0.7120 |
|
70 |
+
| 0.7555 | 3.0 | 132 | 0.7981 | 0.6501 |
|
71 |
+
| 0.7006 | 4.0 | 176 | 0.7635 | 0.6767 |
|
72 |
+
| 0.6825 | 5.0 | 220 | 0.8005 | 0.6370 |
|
73 |
+
| 0.6595 | 6.0 | 264 | 0.7735 | 0.6832 |
|
74 |
+
| 0.6634 | 7.0 | 308 | 0.8078 | 0.6044 |
|
75 |
+
| 0.627 | 8.0 | 352 | 0.7873 | 0.6399 |
|
76 |
+
| 0.603 | 9.0 | 396 | 0.8255 | 0.5825 |
|
77 |
+
| 0.5977 | 10.0 | 440 | 0.8180 | 0.5931 |
|
78 |
+
| 0.5635 | 11.0 | 484 | 0.5951 | 0.8217 |
|
79 |
+
|
80 |
+
|
81 |
+
### Framework versions
|
82 |
+
|
83 |
+
- Transformers 4.45.1
|
84 |
+
- Pytorch 2.4.0
|
85 |
+
- Datasets 3.0.1
|
86 |
+
- Tokenizers 0.20.0
|
config.json
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nguyenvulebinh/wav2vec2-base-vi",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"adapter_attn_dim": null,
|
5 |
+
"adapter_kernel_size": 3,
|
6 |
+
"adapter_stride": 2,
|
7 |
+
"add_adapter": false,
|
8 |
+
"apply_spec_augment": true,
|
9 |
+
"architectures": [
|
10 |
+
"Wav2Vec2ForSequenceClassification"
|
11 |
+
],
|
12 |
+
"attention_dropout": 0.1,
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"classifier_proj_size": 256,
|
15 |
+
"codevector_dim": 256,
|
16 |
+
"contrastive_logits_temperature": 0.1,
|
17 |
+
"conv_bias": false,
|
18 |
+
"conv_dim": [
|
19 |
+
512,
|
20 |
+
512,
|
21 |
+
512,
|
22 |
+
512,
|
23 |
+
512,
|
24 |
+
512,
|
25 |
+
512
|
26 |
+
],
|
27 |
+
"conv_kernel": [
|
28 |
+
10,
|
29 |
+
3,
|
30 |
+
3,
|
31 |
+
3,
|
32 |
+
3,
|
33 |
+
2,
|
34 |
+
2
|
35 |
+
],
|
36 |
+
"conv_stride": [
|
37 |
+
5,
|
38 |
+
2,
|
39 |
+
2,
|
40 |
+
2,
|
41 |
+
2,
|
42 |
+
2,
|
43 |
+
2
|
44 |
+
],
|
45 |
+
"ctc_loss_reduction": "sum",
|
46 |
+
"ctc_zero_infinity": false,
|
47 |
+
"diversity_loss_weight": 0.1,
|
48 |
+
"do_stable_layer_norm": false,
|
49 |
+
"eos_token_id": 2,
|
50 |
+
"feat_extract_activation": "gelu",
|
51 |
+
"feat_extract_dropout": 0.0,
|
52 |
+
"feat_extract_norm": "group",
|
53 |
+
"feat_proj_dropout": 0.1,
|
54 |
+
"feat_quantizer_dropout": 0.0,
|
55 |
+
"final_dropout": 0.1,
|
56 |
+
"gradient_checkpointing": false,
|
57 |
+
"hidden_act": "gelu",
|
58 |
+
"hidden_dropout": 0.1,
|
59 |
+
"hidden_dropout_prob": 0.1,
|
60 |
+
"hidden_size": 768,
|
61 |
+
"id2label": {
|
62 |
+
"0": "southern dialect",
|
63 |
+
"1": "northern dialect",
|
64 |
+
"2": "central dialect"
|
65 |
+
},
|
66 |
+
"initializer_range": 0.02,
|
67 |
+
"intermediate_size": 3072,
|
68 |
+
"label2id": {
|
69 |
+
"central dialect": 2,
|
70 |
+
"northern dialect": 1,
|
71 |
+
"southern dialect": 0
|
72 |
+
},
|
73 |
+
"layer_norm_eps": 1e-05,
|
74 |
+
"layerdrop": 0.1,
|
75 |
+
"mask_feature_length": 10,
|
76 |
+
"mask_feature_min_masks": 0,
|
77 |
+
"mask_feature_prob": 0.0,
|
78 |
+
"mask_time_length": 10,
|
79 |
+
"mask_time_min_masks": 2,
|
80 |
+
"mask_time_prob": 0.05,
|
81 |
+
"model_type": "wav2vec2",
|
82 |
+
"num_adapter_layers": 3,
|
83 |
+
"num_attention_heads": 12,
|
84 |
+
"num_codevector_groups": 2,
|
85 |
+
"num_codevectors_per_group": 320,
|
86 |
+
"num_conv_pos_embedding_groups": 16,
|
87 |
+
"num_conv_pos_embeddings": 128,
|
88 |
+
"num_feat_extract_layers": 7,
|
89 |
+
"num_hidden_layers": 12,
|
90 |
+
"num_negatives": 100,
|
91 |
+
"output_hidden_size": 768,
|
92 |
+
"pad_token_id": 0,
|
93 |
+
"proj_codevector_dim": 256,
|
94 |
+
"tdnn_dilation": [
|
95 |
+
1,
|
96 |
+
2,
|
97 |
+
3,
|
98 |
+
1,
|
99 |
+
1
|
100 |
+
],
|
101 |
+
"tdnn_dim": [
|
102 |
+
512,
|
103 |
+
512,
|
104 |
+
512,
|
105 |
+
512,
|
106 |
+
1500
|
107 |
+
],
|
108 |
+
"tdnn_kernel": [
|
109 |
+
5,
|
110 |
+
3,
|
111 |
+
3,
|
112 |
+
1,
|
113 |
+
1
|
114 |
+
],
|
115 |
+
"torch_dtype": "float32",
|
116 |
+
"transformers_version": "4.45.1",
|
117 |
+
"use_weighted_layer_sum": false,
|
118 |
+
"vocab_size": 96,
|
119 |
+
"xvector_output_dim": 512
|
120 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a35dbde6f204a411fc70f2875fbca738309b9a8e040388b394b8c98a2f3324f3
|
3 |
+
size 378303396
|
preprocessor_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0.0,
|
7 |
+
"processor_class": "Wav2Vec2Processor",
|
8 |
+
"return_attention_mask": true,
|
9 |
+
"sampling_rate": 16000
|
10 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fcaf29e1b16a7ed0c7a617ae03c2dabe6ad14dd4503481cd6e142dfd6be31571
|
3 |
+
size 5176
|