sanchit-gandhi commited on
Commit
13ab9b6
·
1 Parent(s): e456ff1

Saving weights and logs of epoch 0

Browse files
config.json ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./",
3
+ "architectures": [
4
+ "SpeechEncoderDecoderModel"
5
+ ],
6
+ "decoder": {
7
+ "_name_or_path": "gpt2-medium",
8
+ "activation_function": "gelu_new",
9
+ "add_cross_attention": true,
10
+ "architectures": [
11
+ "GPT2LMHeadModel"
12
+ ],
13
+ "attn_pdrop": 0.0,
14
+ "bad_words_ids": null,
15
+ "bos_token_id": 50256,
16
+ "chunk_size_feed_forward": 0,
17
+ "cross_attention_hidden_size": null,
18
+ "decoder_start_token_id": null,
19
+ "diversity_penalty": 0.0,
20
+ "do_sample": false,
21
+ "early_stopping": false,
22
+ "embd_pdrop": 0.0,
23
+ "encoder_no_repeat_ngram_size": 0,
24
+ "eos_token_id": 50256,
25
+ "finetuning_task": null,
26
+ "forced_bos_token_id": null,
27
+ "forced_eos_token_id": null,
28
+ "id2label": {
29
+ "0": "LABEL_0",
30
+ "1": "LABEL_1"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "is_decoder": true,
34
+ "is_encoder_decoder": false,
35
+ "label2id": {
36
+ "LABEL_0": 0,
37
+ "LABEL_1": 1
38
+ },
39
+ "layer_norm_epsilon": 1e-05,
40
+ "length_penalty": 1.0,
41
+ "max_length": 20,
42
+ "min_length": 0,
43
+ "model_type": "gpt2",
44
+ "n_ctx": 1024,
45
+ "n_embd": 1024,
46
+ "n_head": 16,
47
+ "n_inner": null,
48
+ "n_layer": 24,
49
+ "n_positions": 1024,
50
+ "n_special": 0,
51
+ "no_repeat_ngram_size": 0,
52
+ "num_beam_groups": 1,
53
+ "num_beams": 1,
54
+ "num_return_sequences": 1,
55
+ "output_attentions": false,
56
+ "output_hidden_states": false,
57
+ "output_scores": false,
58
+ "pad_token_id": null,
59
+ "predict_special_tokens": true,
60
+ "prefix": null,
61
+ "problem_type": null,
62
+ "pruned_heads": {},
63
+ "remove_invalid_values": false,
64
+ "reorder_and_upcast_attn": false,
65
+ "repetition_penalty": 1.0,
66
+ "resid_pdrop": 0.0,
67
+ "return_dict": true,
68
+ "return_dict_in_generate": false,
69
+ "scale_attn_by_inverse_layer_idx": false,
70
+ "scale_attn_weights": true,
71
+ "sep_token_id": null,
72
+ "summary_activation": null,
73
+ "summary_first_dropout": 0.0,
74
+ "summary_proj_to_labels": true,
75
+ "summary_type": "cls_index",
76
+ "summary_use_proj": true,
77
+ "task_specific_params": {
78
+ "text-generation": {
79
+ "do_sample": true,
80
+ "max_length": 50
81
+ }
82
+ },
83
+ "temperature": 1.0,
84
+ "tie_encoder_decoder": false,
85
+ "tie_word_embeddings": true,
86
+ "tokenizer_class": null,
87
+ "top_k": 50,
88
+ "top_p": 1.0,
89
+ "torch_dtype": null,
90
+ "torchscript": false,
91
+ "transformers_version": "4.18.0.dev0",
92
+ "typical_p": 1.0,
93
+ "use_bfloat16": false,
94
+ "use_cache": false,
95
+ "vocab_size": 50257
96
+ },
97
+ "decoder_start_token_id": 50256,
98
+ "encoder": {
99
+ "_name_or_path": "facebook/wav2vec2-large-lv60",
100
+ "activation_dropout": 0.0,
101
+ "adapter_kernel_size": 3,
102
+ "adapter_stride": 2,
103
+ "add_adapter": true,
104
+ "add_cross_attention": false,
105
+ "apply_spec_augment": false,
106
+ "architectures": [
107
+ "Wav2Vec2ForPreTraining"
108
+ ],
109
+ "attention_dropout": 0.0,
110
+ "bad_words_ids": null,
111
+ "bos_token_id": 1,
112
+ "chunk_size_feed_forward": 0,
113
+ "classifier_proj_size": 256,
114
+ "codevector_dim": 768,
115
+ "contrastive_logits_temperature": 0.1,
116
+ "conv_bias": true,
117
+ "conv_dim": [
118
+ 512,
119
+ 512,
120
+ 512,
121
+ 512,
122
+ 512,
123
+ 512,
124
+ 512
125
+ ],
126
+ "conv_kernel": [
127
+ 10,
128
+ 3,
129
+ 3,
130
+ 3,
131
+ 3,
132
+ 2,
133
+ 2
134
+ ],
135
+ "conv_stride": [
136
+ 5,
137
+ 2,
138
+ 2,
139
+ 2,
140
+ 2,
141
+ 2,
142
+ 2
143
+ ],
144
+ "cross_attention_hidden_size": null,
145
+ "ctc_loss_reduction": "sum",
146
+ "ctc_zero_infinity": false,
147
+ "decoder_start_token_id": null,
148
+ "diversity_loss_weight": 0.1,
149
+ "diversity_penalty": 0.0,
150
+ "do_sample": false,
151
+ "do_stable_layer_norm": true,
152
+ "early_stopping": false,
153
+ "encoder_no_repeat_ngram_size": 0,
154
+ "eos_token_id": 2,
155
+ "feat_extract_activation": "gelu",
156
+ "feat_extract_dropout": 0.0,
157
+ "feat_extract_norm": "layer",
158
+ "feat_proj_dropout": 0.0,
159
+ "feat_quantizer_dropout": 0.0,
160
+ "final_dropout": 0.0,
161
+ "finetuning_task": null,
162
+ "forced_bos_token_id": null,
163
+ "forced_eos_token_id": null,
164
+ "gradient_checkpointing": false,
165
+ "hidden_act": "gelu",
166
+ "hidden_dropout": 0.0,
167
+ "hidden_dropout_prob": 0.0,
168
+ "hidden_size": 1024,
169
+ "id2label": {
170
+ "0": "LABEL_0",
171
+ "1": "LABEL_1"
172
+ },
173
+ "initializer_range": 0.02,
174
+ "intermediate_size": 4096,
175
+ "is_decoder": false,
176
+ "is_encoder_decoder": false,
177
+ "label2id": {
178
+ "LABEL_0": 0,
179
+ "LABEL_1": 1
180
+ },
181
+ "layer_norm_eps": 1e-05,
182
+ "layerdrop": 0.0,
183
+ "length_penalty": 1.0,
184
+ "mask_feature_length": 10,
185
+ "mask_feature_min_masks": 0,
186
+ "mask_feature_prob": 0.0,
187
+ "mask_time_length": 10,
188
+ "mask_time_min_masks": 2,
189
+ "mask_time_prob": 0.0,
190
+ "max_length": 20,
191
+ "min_length": 0,
192
+ "model_type": "wav2vec2",
193
+ "no_repeat_ngram_size": 0,
194
+ "num_adapter_layers": 3,
195
+ "num_attention_heads": 16,
196
+ "num_beam_groups": 1,
197
+ "num_beams": 1,
198
+ "num_codevector_groups": 2,
199
+ "num_codevectors_per_group": 320,
200
+ "num_conv_pos_embedding_groups": 16,
201
+ "num_conv_pos_embeddings": 128,
202
+ "num_feat_extract_layers": 7,
203
+ "num_hidden_layers": 24,
204
+ "num_negatives": 100,
205
+ "num_return_sequences": 1,
206
+ "output_attentions": false,
207
+ "output_hidden_size": 1024,
208
+ "output_hidden_states": false,
209
+ "output_scores": false,
210
+ "pad_token_id": 0,
211
+ "prefix": null,
212
+ "problem_type": null,
213
+ "proj_codevector_dim": 768,
214
+ "pruned_heads": {},
215
+ "remove_invalid_values": false,
216
+ "repetition_penalty": 1.0,
217
+ "return_dict": true,
218
+ "return_dict_in_generate": false,
219
+ "sep_token_id": null,
220
+ "task_specific_params": null,
221
+ "tdnn_dilation": [
222
+ 1,
223
+ 2,
224
+ 3,
225
+ 1,
226
+ 1
227
+ ],
228
+ "tdnn_dim": [
229
+ 512,
230
+ 512,
231
+ 512,
232
+ 512,
233
+ 1500
234
+ ],
235
+ "tdnn_kernel": [
236
+ 5,
237
+ 3,
238
+ 3,
239
+ 1,
240
+ 1
241
+ ],
242
+ "temperature": 1.0,
243
+ "tie_encoder_decoder": false,
244
+ "tie_word_embeddings": true,
245
+ "tokenizer_class": null,
246
+ "top_k": 50,
247
+ "top_p": 1.0,
248
+ "torch_dtype": null,
249
+ "torchscript": false,
250
+ "transformers_version": "4.18.0.dev0",
251
+ "typical_p": 1.0,
252
+ "use_bfloat16": false,
253
+ "use_weighted_layer_sum": false,
254
+ "vocab_size": 32,
255
+ "xvector_output_dim": 512
256
+ },
257
+ "eos_token_id": 50256,
258
+ "is_encoder_decoder": true,
259
+ "max_length": 50,
260
+ "model_type": "speech-encoder-decoder",
261
+ "pad_token_id": 50256,
262
+ "processor_class": "Wav2Vec2Processor",
263
+ "transformers_version": null,
264
+ "use_cache": false
265
+ }
events.out.tfevents.1647862405.t1v-n-4eb331dd-w-0.149413.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef3a7ef36308f6f58bb5b10b24a273cb32c909889f8bb82e9a51f094e237f7b8
3
+ size 40
events.out.tfevents.1647864130.t1v-n-4eb331dd-w-0.151657.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa376dfd7efed9f89607e3ca81d22219d21b5013ec8e841eabad907c249a91c5
3
+ size 40
events.out.tfevents.1647864429.t1v-n-4eb331dd-w-0.153741.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1575dd0fea735fcd5a4237c008539581f12117f409eb3886c5ee2bcd86c4f522
3
+ size 283300
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ae2607e3f44b77822cd0cbc4d218def54e3c4d32885f455f82278194457ed6f
3
+ size 3159844591
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
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
+ }
run_librispeech.sh CHANGED
@@ -9,16 +9,16 @@ python run_flax_speech_recognition_seq2seq.py \
9
  --preprocessing_num_workers="16" \
10
  --length_column_name="input_length" \
11
  --overwrite_output_dir \
12
- --num_train_epochs="1" \
13
- --per_device_train_batch_size="4" \
14
- --per_device_eval_batch_size="4" \
15
  --logging_steps="25" \
16
  --max_duration_in_seconds="15" \
17
  --max_target_length="64" \
18
  --generation_max_length="40" \
19
  --generation_num_beams="1" \
20
- --learning_rate="3e-4" \
21
- --warmup_steps="100" \
22
  --text_column_name="text" \
23
  --save_total_limit="1" \
24
  --freeze_feature_encoder \
 
9
  --preprocessing_num_workers="16" \
10
  --length_column_name="input_length" \
11
  --overwrite_output_dir \
12
+ --num_train_epochs="20" \
13
+ --per_device_train_batch_size="2" \
14
+ --per_device_eval_batch_size="2" \
15
  --logging_steps="25" \
16
  --max_duration_in_seconds="15" \
17
  --max_target_length="64" \
18
  --generation_max_length="40" \
19
  --generation_num_beams="1" \
20
+ --learning_rate="1e-4" \
21
+ --warmup_steps="1000" \
22
  --text_column_name="text" \
23
  --save_total_limit="1" \
24
  --freeze_feature_encoder \
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": "<|endoftext|>"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "errors": "replace", "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "./", "tokenizer_class": "GPT2Tokenizer"}
vocab.json ADDED
The diff for this file is too large to render. See raw diff