m3hrdadfi commited on
Commit
aca6cef
1 Parent(s): a29b3f2

Hello Persian SER

Browse files
README.md ADDED
File without changes
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "m3hrdadfi/wav2vec2-xlsr-fa",
3
+ "activation_dropout": 0.09216,
4
+ "apply_spec_augment": true,
5
+ "architectures": [
6
+ "Wav2Vec2ForSpeechClassification"
7
+ ],
8
+ "attention_dropout": 0.05316,
9
+ "bos_token_id": 1,
10
+ "conv_bias": true,
11
+ "conv_dim": [
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512
19
+ ],
20
+ "conv_kernel": [
21
+ 10,
22
+ 3,
23
+ 3,
24
+ 3,
25
+ 3,
26
+ 2,
27
+ 2
28
+ ],
29
+ "conv_stride": [
30
+ 5,
31
+ 2,
32
+ 2,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2
37
+ ],
38
+ "ctc_loss_reduction": "mean",
39
+ "ctc_zero_infinity": true,
40
+ "do_stable_layer_norm": true,
41
+ "eos_token_id": 2,
42
+ "feat_extract_activation": "gelu",
43
+ "feat_extract_dropout": 0.0,
44
+ "feat_extract_norm": "layer",
45
+ "feat_proj_dropout": 0.01249,
46
+ "final_dropout": 0.0,
47
+ "finetuning_task": "wav2vec2_clf",
48
+ "gradient_checkpointing": true,
49
+ "hidden_act": "gelu",
50
+ "hidden_dropout": 0.01941,
51
+ "hidden_size": 1024,
52
+ "id2label": {
53
+ "0": "Anger",
54
+ "1": "Fear",
55
+ "2": "Happiness",
56
+ "3": "Neutral",
57
+ "4": "Sadness",
58
+ "5": "Surprise"
59
+ },
60
+ "initializer_range": 0.02,
61
+ "intermediate_size": 4096,
62
+ "label2id": {
63
+ "Anger": 0,
64
+ "Fear": 1,
65
+ "Happiness": 2,
66
+ "Neutral": 3,
67
+ "Sadness": 4,
68
+ "Surprise": 5
69
+ },
70
+ "layer_norm_eps": 1e-05,
71
+ "layerdrop": 0.01377,
72
+ "mask_channel_length": 10,
73
+ "mask_channel_min_space": 1,
74
+ "mask_channel_other": 0.0,
75
+ "mask_channel_prob": 0.0,
76
+ "mask_channel_selection": "static",
77
+ "mask_feature_length": 10,
78
+ "mask_feature_prob": 0.0,
79
+ "mask_time_length": 10,
80
+ "mask_time_min_space": 1,
81
+ "mask_time_other": 0.0,
82
+ "mask_time_prob": 0.04529,
83
+ "mask_time_selection": "static",
84
+ "model_type": "wav2vec2",
85
+ "num_attention_heads": 16,
86
+ "num_conv_pos_embedding_groups": 16,
87
+ "num_conv_pos_embeddings": 128,
88
+ "num_feat_extract_layers": 7,
89
+ "num_hidden_layers": 24,
90
+ "pad_token_id": 0,
91
+ "pooling_mode": "mean",
92
+ "problem_type": "single_label_classification",
93
+ "transformers_version": "4.7.0.dev0",
94
+ "vocab_size": 40
95
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "return_attention_mask": true,
8
+ "sampling_rate": 16000
9
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69a746cbe4d4f7c4402475de537f377c560349905c69f8e503cfbb27dcdf8467
3
+ size 1266157609
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "pad_token": "<pad>", "do_lower_case": false, "word_delimiter_token": "|", "special_tokens_map_file": "/workspace/output_models/fa/xlsr-fa/special_tokens_map.json", "tokenizer_file": null, "name_or_path": "m3hrdadfi/wav2vec2-xlsr-fa"}
trainer_state.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "global_step": 1420,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.7,
12
+ "learning_rate": 8.591549295774647e-05,
13
+ "loss": 0.9777,
14
+ "step": 200
15
+ },
16
+ {
17
+ "epoch": 0.7,
18
+ "eval_accuracy": 0.8169013857841492,
19
+ "eval_loss": 0.6019795536994934,
20
+ "eval_runtime": 117.4868,
21
+ "eval_samples_per_second": 4.835,
22
+ "step": 200
23
+ },
24
+ {
25
+ "epoch": 1.41,
26
+ "learning_rate": 7.183098591549297e-05,
27
+ "loss": 0.5253,
28
+ "step": 400
29
+ },
30
+ {
31
+ "epoch": 1.41,
32
+ "eval_accuracy": 0.8573943376541138,
33
+ "eval_loss": 0.44053006172180176,
34
+ "eval_runtime": 130.6116,
35
+ "eval_samples_per_second": 4.349,
36
+ "step": 400
37
+ },
38
+ {
39
+ "epoch": 2.11,
40
+ "learning_rate": 5.774647887323944e-05,
41
+ "loss": 0.3972,
42
+ "step": 600
43
+ },
44
+ {
45
+ "epoch": 2.11,
46
+ "eval_accuracy": 0.8802816867828369,
47
+ "eval_loss": 0.3814992308616638,
48
+ "eval_runtime": 131.0373,
49
+ "eval_samples_per_second": 4.335,
50
+ "step": 600
51
+ },
52
+ {
53
+ "epoch": 2.82,
54
+ "learning_rate": 4.366197183098591e-05,
55
+ "loss": 0.2095,
56
+ "step": 800
57
+ },
58
+ {
59
+ "epoch": 2.82,
60
+ "eval_accuracy": 0.8661971688270569,
61
+ "eval_loss": 0.4881167411804199,
62
+ "eval_runtime": 116.8147,
63
+ "eval_samples_per_second": 4.862,
64
+ "step": 800
65
+ },
66
+ {
67
+ "epoch": 3.52,
68
+ "learning_rate": 2.9577464788732395e-05,
69
+ "loss": 0.126,
70
+ "step": 1000
71
+ },
72
+ {
73
+ "epoch": 3.52,
74
+ "eval_accuracy": 0.9014084339141846,
75
+ "eval_loss": 0.37247011065483093,
76
+ "eval_runtime": 130.6973,
77
+ "eval_samples_per_second": 4.346,
78
+ "step": 1000
79
+ },
80
+ {
81
+ "epoch": 4.23,
82
+ "learning_rate": 1.556338028169014e-05,
83
+ "loss": 0.0865,
84
+ "step": 1200
85
+ },
86
+ {
87
+ "epoch": 4.23,
88
+ "eval_accuracy": 0.8978873491287231,
89
+ "eval_loss": 0.40177592635154724,
90
+ "eval_runtime": 131.5193,
91
+ "eval_samples_per_second": 4.319,
92
+ "step": 1200
93
+ },
94
+ {
95
+ "epoch": 4.93,
96
+ "learning_rate": 1.4788732394366198e-06,
97
+ "loss": 0.0579,
98
+ "step": 1400
99
+ },
100
+ {
101
+ "epoch": 4.93,
102
+ "eval_accuracy": 0.9031690359115601,
103
+ "eval_loss": 0.3632720112800598,
104
+ "eval_runtime": 116.9733,
105
+ "eval_samples_per_second": 4.856,
106
+ "step": 1400
107
+ },
108
+ {
109
+ "epoch": 5.0,
110
+ "step": 1420,
111
+ "total_flos": 3.369279479928036e+16,
112
+ "train_runtime": 6152.5452,
113
+ "train_samples_per_second": 0.231
114
+ }
115
+ ],
116
+ "max_steps": 1420,
117
+ "num_train_epochs": 5,
118
+ "total_flos": 3.369279479928036e+16,
119
+ "trial_name": null,
120
+ "trial_params": null
121
+ }
vocab.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"<pad>": 0, "<s>": 1, "</s>": 2, "<unk>": 3, "|": 4, "آ": 5, "ئ": 6, "ا": 7, "ب": 8, "ت": 9, "ث": 10, "ج": 11, "ح": 12, "خ": 13, "د": 14, "ذ": 15, "ر": 16, "ز": 17, "س": 18, "ش": 19, "ص": 20, "ض": 21, "ط": 22, "ظ": 23, "ع": 24, "غ": 25, "ف": 26, "ق": 27, "ل": 28, "م": 29, "ن": 30, "ه": 31, "و": 32, "پ": 33, "چ": 34, "ژ": 35, "ک": 36, "گ": 37, "ی": 38, "‌": 39}