nguyenvulebinh commited on
Commit
5e661f7
1 Parent(s): 10acda3

Upload model

Browse files
Files changed (3) hide show
  1. config.json +269 -0
  2. generation_config.json +9 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "SpeechEncoderDecoderModel"
5
+ ],
6
+ "decoder": {
7
+ "_name_or_path": "vinai/bartpho-syllable-base",
8
+ "activation_dropout": 0.0,
9
+ "activation_function": "gelu",
10
+ "add_cross_attention": true,
11
+ "architectures": [
12
+ "MBartModel"
13
+ ],
14
+ "attention_dropout": 0.0,
15
+ "bad_words_ids": null,
16
+ "begin_suppress_tokens": null,
17
+ "bos_token_id": 0,
18
+ "chunk_size_feed_forward": 0,
19
+ "classifier_dropout": 0.0,
20
+ "cross_attention_hidden_size": null,
21
+ "d_model": 768,
22
+ "decoder_attention_heads": 12,
23
+ "decoder_ffn_dim": 3072,
24
+ "decoder_layerdrop": 0.0,
25
+ "decoder_layers": 6,
26
+ "decoder_start_token_id": 2,
27
+ "diversity_penalty": 0.0,
28
+ "do_sample": false,
29
+ "dropout": 0.1,
30
+ "early_stopping": false,
31
+ "encoder_attention_heads": 12,
32
+ "encoder_ffn_dim": 3072,
33
+ "encoder_layerdrop": 0.0,
34
+ "encoder_layers": 6,
35
+ "encoder_no_repeat_ngram_size": 0,
36
+ "eos_token_id": 2,
37
+ "exponential_decay_length_penalty": null,
38
+ "finetuning_task": null,
39
+ "forced_bos_token_id": null,
40
+ "forced_eos_token_id": 2,
41
+ "gradient_checkpointing": false,
42
+ "id2label": {
43
+ "0": "LABEL_0",
44
+ "1": "LABEL_1"
45
+ },
46
+ "init_std": 0.02,
47
+ "is_decoder": true,
48
+ "is_encoder_decoder": true,
49
+ "label2id": {
50
+ "LABEL_0": 0,
51
+ "LABEL_1": 1
52
+ },
53
+ "length_penalty": 1.0,
54
+ "max_length": 20,
55
+ "max_position_embeddings": 1024,
56
+ "min_length": 0,
57
+ "model_type": "mbart",
58
+ "no_repeat_ngram_size": 0,
59
+ "num_beam_groups": 1,
60
+ "num_beams": 1,
61
+ "num_hidden_layers": 6,
62
+ "num_return_sequences": 1,
63
+ "output_attentions": false,
64
+ "output_hidden_states": false,
65
+ "output_scores": false,
66
+ "pad_token_id": 1,
67
+ "prefix": null,
68
+ "problem_type": null,
69
+ "pruned_heads": {},
70
+ "remove_invalid_values": false,
71
+ "repetition_penalty": 1.0,
72
+ "return_dict": true,
73
+ "return_dict_in_generate": false,
74
+ "scale_embedding": false,
75
+ "sep_token_id": null,
76
+ "suppress_tokens": null,
77
+ "task_specific_params": null,
78
+ "temperature": 1.0,
79
+ "tf_legacy_loss": false,
80
+ "tie_encoder_decoder": false,
81
+ "tie_word_embeddings": true,
82
+ "tokenizer_class": "BartphoTokenizer",
83
+ "top_k": 50,
84
+ "top_p": 1.0,
85
+ "torch_dtype": "float32",
86
+ "torchscript": false,
87
+ "transformers_version": "4.30.2",
88
+ "typical_p": 1.0,
89
+ "use_bfloat16": false,
90
+ "use_cache": true,
91
+ "vocab_size": 41031
92
+ },
93
+ "encoder": {
94
+ "_name_or_path": "nguyenvulebinh/wav2vec2-large-vi",
95
+ "activation_dropout": 0.0,
96
+ "adapter_attn_dim": null,
97
+ "adapter_kernel_size": 3,
98
+ "adapter_stride": 2,
99
+ "add_adapter": true,
100
+ "add_cross_attention": false,
101
+ "apply_spec_augment": true,
102
+ "architectures": [
103
+ "Wav2Vec2ForPreTraining"
104
+ ],
105
+ "attention_dropout": 0.1,
106
+ "bad_words_ids": null,
107
+ "begin_suppress_tokens": null,
108
+ "bos_token_id": 1,
109
+ "chunk_size_feed_forward": 0,
110
+ "classifier_proj_size": 256,
111
+ "codevector_dim": 768,
112
+ "contrastive_logits_temperature": 0.1,
113
+ "conv_bias": true,
114
+ "conv_dim": [
115
+ 512,
116
+ 512,
117
+ 512,
118
+ 512,
119
+ 512,
120
+ 512,
121
+ 512
122
+ ],
123
+ "conv_kernel": [
124
+ 10,
125
+ 3,
126
+ 3,
127
+ 3,
128
+ 3,
129
+ 2,
130
+ 2
131
+ ],
132
+ "conv_stride": [
133
+ 5,
134
+ 2,
135
+ 2,
136
+ 2,
137
+ 2,
138
+ 2,
139
+ 2
140
+ ],
141
+ "cross_attention_hidden_size": null,
142
+ "ctc_loss_reduction": "sum",
143
+ "ctc_zero_infinity": false,
144
+ "decoder_start_token_id": null,
145
+ "diversity_loss_weight": 0.1,
146
+ "diversity_penalty": 0.0,
147
+ "do_sample": false,
148
+ "do_stable_layer_norm": true,
149
+ "early_stopping": false,
150
+ "encoder_no_repeat_ngram_size": 0,
151
+ "eos_token_id": 2,
152
+ "exponential_decay_length_penalty": null,
153
+ "feat_extract_activation": "gelu",
154
+ "feat_extract_dropout": 0.0,
155
+ "feat_extract_norm": "layer",
156
+ "feat_proj_dropout": 0.1,
157
+ "feat_quantizer_dropout": 0.0,
158
+ "final_dropout": 0.0,
159
+ "finetuning_task": null,
160
+ "forced_bos_token_id": null,
161
+ "forced_eos_token_id": null,
162
+ "gradient_checkpointing": false,
163
+ "hidden_act": "gelu",
164
+ "hidden_dropout": 0.1,
165
+ "hidden_size": 1024,
166
+ "id2label": {
167
+ "0": "LABEL_0",
168
+ "1": "LABEL_1"
169
+ },
170
+ "initializer_range": 0.02,
171
+ "intermediate_size": 4096,
172
+ "is_decoder": false,
173
+ "is_encoder_decoder": false,
174
+ "label2id": {
175
+ "LABEL_0": 0,
176
+ "LABEL_1": 1
177
+ },
178
+ "layer_norm_eps": 1e-05,
179
+ "layerdrop": 0.1,
180
+ "length_penalty": 1.0,
181
+ "mask_channel_length": 10,
182
+ "mask_channel_min_space": 1,
183
+ "mask_channel_other": 0.0,
184
+ "mask_channel_prob": 0.0,
185
+ "mask_channel_selection": "static",
186
+ "mask_feature_length": 10,
187
+ "mask_feature_min_masks": 0,
188
+ "mask_feature_prob": 0.0,
189
+ "mask_time_length": 10,
190
+ "mask_time_min_masks": 2,
191
+ "mask_time_min_space": 1,
192
+ "mask_time_other": 0.0,
193
+ "mask_time_prob": 0.075,
194
+ "mask_time_selection": "static",
195
+ "max_length": 20,
196
+ "min_length": 0,
197
+ "model_type": "wav2vec2",
198
+ "no_repeat_ngram_size": 0,
199
+ "num_adapter_layers": 3,
200
+ "num_attention_heads": 16,
201
+ "num_beam_groups": 1,
202
+ "num_beams": 1,
203
+ "num_codevector_groups": 2,
204
+ "num_codevectors_per_group": 320,
205
+ "num_conv_pos_embedding_groups": 16,
206
+ "num_conv_pos_embeddings": 128,
207
+ "num_feat_extract_layers": 7,
208
+ "num_hidden_layers": 24,
209
+ "num_negatives": 100,
210
+ "num_return_sequences": 1,
211
+ "output_attentions": false,
212
+ "output_hidden_size": 1024,
213
+ "output_hidden_states": false,
214
+ "output_scores": false,
215
+ "pad_token_id": 0,
216
+ "prefix": null,
217
+ "problem_type": null,
218
+ "proj_codevector_dim": 768,
219
+ "pruned_heads": {},
220
+ "remove_invalid_values": false,
221
+ "repetition_penalty": 1.0,
222
+ "return_dict": true,
223
+ "return_dict_in_generate": false,
224
+ "sep_token_id": null,
225
+ "suppress_tokens": null,
226
+ "task_specific_params": null,
227
+ "tdnn_dilation": [
228
+ 1,
229
+ 2,
230
+ 3,
231
+ 1,
232
+ 1
233
+ ],
234
+ "tdnn_dim": [
235
+ 512,
236
+ 512,
237
+ 512,
238
+ 512,
239
+ 1500
240
+ ],
241
+ "tdnn_kernel": [
242
+ 5,
243
+ 3,
244
+ 3,
245
+ 1,
246
+ 1
247
+ ],
248
+ "temperature": 1.0,
249
+ "tf_legacy_loss": false,
250
+ "tie_encoder_decoder": false,
251
+ "tie_word_embeddings": true,
252
+ "tokenizer_class": null,
253
+ "top_k": 50,
254
+ "top_p": 1.0,
255
+ "torch_dtype": "float32",
256
+ "torchscript": false,
257
+ "transformers_version": "4.30.2",
258
+ "typical_p": 1.0,
259
+ "use_bfloat16": false,
260
+ "use_weighted_layer_sum": false,
261
+ "vocab_size": 96,
262
+ "xvector_output_dim": 512
263
+ },
264
+ "is_encoder_decoder": true,
265
+ "model_type": "speech-encoder-decoder",
266
+ "tie_word_embeddings": false,
267
+ "torch_dtype": "float32",
268
+ "transformers_version": null
269
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
5
+ "eos_token_id": 2,
6
+ "forced_eos_token_id": 2,
7
+ "pad_token_id": 1,
8
+ "transformers_version": "4.30.2"
9
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0334955d73840896579cb3aeaf0675e55086f820f107f6615795d92c307d4024
3
+ size 1822732561