Lakoc commited on
Commit
13c7676
1 Parent(s): 8f403d6

Upload JointCTCAttentionEncoderDecoder

Browse files
Files changed (3) hide show
  1. config.json +282 -0
  2. generation_config.json +10 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "_name_or_path": "/mnt/proj1/open-28-58/lakoc/LoCo-ASR/experiments/TED_tedlium_ebranchformer_tiny_esp_aug_uni500_fixed_pos_proper_scoring_regularization_averaging_v8/checkpoint-126808",
4
+ "architectures": [
5
+ "JointCTCAttentionEncoderDecoder"
6
+ ],
7
+ "bos_token_id": 0,
8
+ "ctc_weight": 0.3,
9
+ "decoder": {
10
+ "_name_or_path": "Lakoc/gpt2_tiny_decoder_6_layers",
11
+ "activation_function": "gelu_new",
12
+ "add_cross_attention": true,
13
+ "architectures": null,
14
+ "attn_pdrop": 0.1,
15
+ "bad_words_ids": null,
16
+ "begin_suppress_tokens": null,
17
+ "bos_token_id": 0,
18
+ "chunk_size_feed_forward": 0,
19
+ "cross_attention_hidden_size": null,
20
+ "decoder_start_token_id": null,
21
+ "diversity_penalty": 0.0,
22
+ "do_sample": false,
23
+ "early_stopping": false,
24
+ "embd_pdrop": 0.1,
25
+ "encoder_no_repeat_ngram_size": 0,
26
+ "eos_token_id": 1,
27
+ "exponential_decay_length_penalty": null,
28
+ "finetuning_task": null,
29
+ "forced_bos_token_id": null,
30
+ "forced_eos_token_id": null,
31
+ "id2label": {
32
+ "0": "LABEL_0",
33
+ "1": "LABEL_1"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "is_decoder": true,
37
+ "is_encoder_decoder": false,
38
+ "label2id": {
39
+ "LABEL_0": 0,
40
+ "LABEL_1": 1
41
+ },
42
+ "layer_norm_epsilon": 1e-05,
43
+ "length_penalty": 1.0,
44
+ "max_length": 20,
45
+ "min_length": 0,
46
+ "model_type": "gpt2",
47
+ "n_embd": 256,
48
+ "n_head": 4,
49
+ "n_inner": 2048,
50
+ "n_layer": 6,
51
+ "n_positions": 1024,
52
+ "no_repeat_ngram_size": 0,
53
+ "num_beam_groups": 1,
54
+ "num_beams": 1,
55
+ "num_return_sequences": 1,
56
+ "output_attentions": false,
57
+ "output_hidden_size": 256,
58
+ "output_hidden_states": false,
59
+ "output_scores": false,
60
+ "pad_token_id": null,
61
+ "pos_emb_fixed": true,
62
+ "prefix": null,
63
+ "problem_type": null,
64
+ "pruned_heads": {},
65
+ "remove_invalid_values": false,
66
+ "reorder_and_upcast_attn": false,
67
+ "repetition_penalty": 1.0,
68
+ "resid_pdrop": 0.1,
69
+ "return_dict": true,
70
+ "return_dict_in_generate": false,
71
+ "scale_attn_by_inverse_layer_idx": false,
72
+ "scale_attn_weights": true,
73
+ "sep_token_id": null,
74
+ "summary_activation": null,
75
+ "summary_first_dropout": 0.1,
76
+ "summary_proj_to_labels": true,
77
+ "summary_type": "cls_index",
78
+ "summary_use_proj": true,
79
+ "suppress_tokens": null,
80
+ "task_specific_params": null,
81
+ "temperature": 1.0,
82
+ "tf_legacy_loss": false,
83
+ "tie_encoder_decoder": false,
84
+ "tie_word_embeddings": false,
85
+ "tokenizer_class": null,
86
+ "top_k": 50,
87
+ "top_p": 1.0,
88
+ "torch_dtype": null,
89
+ "torchscript": false,
90
+ "transformers_version": "4.31.0.dev0",
91
+ "typical_p": 1.0,
92
+ "use_bfloat16": false,
93
+ "use_cache": true,
94
+ "vocab_size": 500
95
+ },
96
+ "decoder_bos_token_id": 0,
97
+ "decoder_eos_token_id": 1,
98
+ "decoder_pos_emb_fixed": true,
99
+ "decoder_start_token_id": 0,
100
+ "decoder_vocab_size": 500,
101
+ "encoder": {
102
+ "_name_or_path": "Lakoc/fisher_ebranchformer_enc_12_layers_fixed",
103
+ "activation_dropout": 0.1,
104
+ "adapter_kernel_size": 3,
105
+ "adapter_stride": 2,
106
+ "add_adapter": false,
107
+ "add_cross_attention": false,
108
+ "apply_spec_augment": true,
109
+ "apply_time_warp": false,
110
+ "architectures": null,
111
+ "attention_dropout": 0.1,
112
+ "bad_words_ids": null,
113
+ "begin_suppress_tokens": null,
114
+ "bos_token_id": 0,
115
+ "chunk_size_feed_forward": 0,
116
+ "classifier_proj_size": 256,
117
+ "codevector_dim": 256,
118
+ "contrastive_logits_temperature": 0.1,
119
+ "conv_bias": false,
120
+ "conv_dim": [
121
+ 256,
122
+ 256
123
+ ],
124
+ "conv_kernel": [
125
+ 3,
126
+ 3
127
+ ],
128
+ "conv_stride": [
129
+ 2,
130
+ 2
131
+ ],
132
+ "cross_attention_hidden_size": null,
133
+ "csgu_activation": "identity",
134
+ "csgu_conv_dropout": 0.1,
135
+ "csgu_kernel_size": 31,
136
+ "csgu_use_linear_after_conv": false,
137
+ "ctc_loss_reduction": "mean",
138
+ "ctc_zero_infinity": true,
139
+ "decoder_start_token_id": null,
140
+ "diversity_loss_weight": 0.1,
141
+ "diversity_penalty": 0.0,
142
+ "do_sample": false,
143
+ "early_stopping": false,
144
+ "encoder_no_repeat_ngram_size": 0,
145
+ "eos_token_id": 1,
146
+ "exponential_decay_length_penalty": null,
147
+ "fe_position_embeddings": false,
148
+ "feat_extract_activation": "gelu",
149
+ "feat_extract_norm": "group",
150
+ "feat_proj_dropout": 0.0,
151
+ "feat_quantizer_dropout": 0.0,
152
+ "final_dropout": 0.1,
153
+ "finetuning_task": null,
154
+ "forced_bos_token_id": null,
155
+ "forced_eos_token_id": null,
156
+ "hidden_act": "gelu",
157
+ "hidden_dropout": 0.1,
158
+ "hidden_size": 256,
159
+ "id2label": {
160
+ "0": "LABEL_0",
161
+ "1": "LABEL_1"
162
+ },
163
+ "initializer_range": 0.02,
164
+ "intermediate_size": 1024,
165
+ "is_decoder": false,
166
+ "is_encoder_decoder": false,
167
+ "label2id": {
168
+ "LABEL_0": 0,
169
+ "LABEL_1": 1
170
+ },
171
+ "layer_norm_eps": 1e-05,
172
+ "layerdrop": 0.0,
173
+ "length_penalty": 1.0,
174
+ "mask_feature_length": 10,
175
+ "mask_feature_min_masks": 0,
176
+ "mask_feature_prob": 0.0,
177
+ "mask_time_length": 10,
178
+ "mask_time_min_masks": 2,
179
+ "mask_time_prob": 0.05,
180
+ "max_length": 20,
181
+ "max_source_positions": 1024,
182
+ "merge_conv_kernel": 31,
183
+ "min_length": 0,
184
+ "model_type": "wav2vec2-ebranchformer",
185
+ "no_repeat_ngram_size": 0,
186
+ "num_adapter_layers": 3,
187
+ "num_attention_heads": 4,
188
+ "num_beam_groups": 1,
189
+ "num_beams": 1,
190
+ "num_codevector_groups": 2,
191
+ "num_codevectors_per_group": 320,
192
+ "num_conv_pos_embedding_groups": 16,
193
+ "num_conv_pos_embeddings": 128,
194
+ "num_feat_extract_layers": 2,
195
+ "num_hidden_layers": 12,
196
+ "num_mel_bins": 80,
197
+ "num_negatives": 100,
198
+ "num_return_sequences": 1,
199
+ "output_attentions": false,
200
+ "output_hidden_size": 256,
201
+ "output_hidden_states": false,
202
+ "output_scores": false,
203
+ "pad_token_id": 3,
204
+ "position_embeddings_type": "relative",
205
+ "prefix": null,
206
+ "problem_type": null,
207
+ "proj_codevector_dim": 256,
208
+ "pruned_heads": {},
209
+ "remove_invalid_values": false,
210
+ "repetition_penalty": 1.0,
211
+ "return_dict": true,
212
+ "return_dict_in_generate": false,
213
+ "rotary_embedding_base": 10000,
214
+ "sep_token_id": null,
215
+ "suppress_tokens": null,
216
+ "task_specific_params": null,
217
+ "tdnn_dilation": [
218
+ 1,
219
+ 2,
220
+ 3,
221
+ 1,
222
+ 1
223
+ ],
224
+ "tdnn_dim": [
225
+ 512,
226
+ 512,
227
+ 512,
228
+ 512,
229
+ 1500
230
+ ],
231
+ "tdnn_kernel": [
232
+ 5,
233
+ 3,
234
+ 3,
235
+ 1,
236
+ 1
237
+ ],
238
+ "temperature": 1.0,
239
+ "tf_legacy_loss": false,
240
+ "tie_encoder_decoder": false,
241
+ "tie_word_embeddings": true,
242
+ "time_warp_mode": "bicubic",
243
+ "time_warp_window": 5,
244
+ "tokenizer_class": null,
245
+ "top_k": 50,
246
+ "top_p": 1.0,
247
+ "torch_dtype": null,
248
+ "torchscript": false,
249
+ "transformers_version": "4.31.0.dev0",
250
+ "typical_p": 1.0,
251
+ "use_bfloat16": false,
252
+ "use_fbanks": true,
253
+ "use_macaron_ff": true,
254
+ "use_weighted_layer_sum": false,
255
+ "vocab_size": 500,
256
+ "xvector_output_dim": 512
257
+ },
258
+ "encoder_add_adapter": false,
259
+ "encoder_apply_spec_augment": true,
260
+ "encoder_bos_token_id": 0,
261
+ "encoder_ctc_loss_reduction": "mean",
262
+ "encoder_eos_token_id": 1,
263
+ "encoder_feat_proj_dropout": 0.0,
264
+ "encoder_layerdrop": 0.0,
265
+ "encoder_pad_token_id": 3,
266
+ "encoder_vocab_size": 500,
267
+ "eos_token_id": 1,
268
+ "is_encoder_decoder": true,
269
+ "lsm_factor": 0.1,
270
+ "mask_token_id": 4,
271
+ "max_length": 512,
272
+ "model_type": "joint_aed_ctc_speech-encoder-decoder",
273
+ "num_beams": 40,
274
+ "num_mel_bins": 80,
275
+ "output_hidden_states": true,
276
+ "pad_token_id": 3,
277
+ "shared_lm_head": false,
278
+ "tie_word_embeddings": false,
279
+ "torch_dtype": "float32",
280
+ "transformers_version": null,
281
+ "use_fbanks": true
282
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "max_length": 512,
6
+ "num_beams": 4,
7
+ "output_hidden_states": true,
8
+ "pad_token_id": 3,
9
+ "transformers_version": "4.31.0.dev0"
10
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97cc186656f36cc57a6ca69fbe4cdf4d101042e2e0029a9d1cb98816c877ccad
3
+ size 140511658