Patrick von Platen commited on
Commit
d02232c
·
1 Parent(s): fb56364
config.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "apply_spec_augment": true,
4
+ "architectures": [
5
+ "Wav2Vec2ForPreTraining"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "codevector_dim": 256,
10
+ "contrastive_logits_temperature": 0.1,
11
+ "conv_bias": false,
12
+ "conv_dim": [
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512
20
+ ],
21
+ "conv_kernel": [
22
+ 10,
23
+ 3,
24
+ 3,
25
+ 3,
26
+ 3,
27
+ 2,
28
+ 2
29
+ ],
30
+ "conv_stride": [
31
+ 5,
32
+ 2,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2,
37
+ 2
38
+ ],
39
+ "ctc_loss_reduction": "sum",
40
+ "ctc_zero_infinity": false,
41
+ "diversity_loss_weight": 0.1,
42
+ "do_stable_layer_norm": true,
43
+ "eos_token_id": 2,
44
+ "feat_extract_activation": "gelu",
45
+ "feat_extract_norm": "layer",
46
+ "feat_proj_dropout": 0.0,
47
+ "feat_quantizer_dropout": 0.0,
48
+ "final_dropout": 0.0,
49
+ "gradient_checkpointing": false,
50
+ "hidden_act": "gelu",
51
+ "hidden_dropout": 0.0,
52
+ "hidden_size": 768,
53
+ "initializer_range": 0.02,
54
+ "intermediate_size": 3072,
55
+ "layer_norm_eps": 1e-05,
56
+ "layerdrop": 0.1,
57
+ "mask_feature_length": 10,
58
+ "mask_feature_prob": 0.1,
59
+ "mask_time_length": 10,
60
+ "mask_time_min_space": 1,
61
+ "mask_time_other": 0.0,
62
+ "mask_time_prob": 0.65,
63
+ "mask_time_selection": "static",
64
+ "model_type": "wav2vec2",
65
+ "no_mask_channel_overlap": false,
66
+ "no_mask_time_overlap": false,
67
+ "num_attention_heads": 12,
68
+ "num_codevector_groups": 2,
69
+ "num_codevectors_per_group": 320,
70
+ "num_conv_pos_embedding_groups": 16,
71
+ "num_conv_pos_embeddings": 128,
72
+ "num_feat_extract_layers": 7,
73
+ "num_hidden_layers": 12,
74
+ "num_negatives": 100,
75
+ "pad_token_id": 0,
76
+ "proj_codevector_dim": 256,
77
+ "transformers_version": "4.10.0.dev0",
78
+ "vocab_size": 32
79
+ }
events.out.tfevents.1628809491.t1v-n-71556209-w-0.50858.3.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89c8f5cb3344090b39401a0808b6833df99ac31cc79ef21d479d80f9d8c6d548
3
+ size 2322
events.out.tfevents.1628809788.t1v-n-71556209-w-0.52715.3.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55c10b47708f77daa1c0728421a9028decbea2da6cddf382a850083b1a4e389e
3
+ size 6453
preprocessor_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_size": 1,
4
+ "padding_side": "right",
5
+ "padding_value": 0.0,
6
+ "return_attention_mask": true,
7
+ "sampling_rate": 16000
8
+ }
run_main.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ ./run_wav2vec2_pretrain_flax.py \
3
+ --output_dir="./" \
4
+ --num_train_epochs="2" \
5
+ --dataset_name="patrickvonplaten/librispeech_local" \
6
+ --dataset_config_name="clean" \
7
+ --train_split_name="train" \
8
+ --per_device_train_batch_size="16" \
9
+ --per_device_eval_batch_size="16" \
10
+ --learning_rate="5e-3" \
11
+ --weight_decay="0.01" \
12
+ --warmup_steps="1000" \
13
+ --model_name_or_path="./" \
14
+ --pad_to_multiple_of="16384" \
15
+ --logging_steps="2" \
run_wav2vec2_pretrain_flax.py ADDED
@@ -0,0 +1 @@
 
 
1
+ /home/patrick/transformers/examples/research_projects/jax-projects/wav2vec2/run_wav2vec2_pretrain_flax.py