copy
Browse files- config.json +114 -0
- riksdag_transcripts_lm.yaml +59 -0
config.json
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"activation_dropout": 0.05,
|
3 |
+
"adapter_kernel_size": 3,
|
4 |
+
"adapter_stride": 2,
|
5 |
+
"add_adapter": false,
|
6 |
+
"apply_spec_augment": true,
|
7 |
+
"architectures": [
|
8 |
+
"Wav2Vec2ForCTC"
|
9 |
+
],
|
10 |
+
"attention_dropout": 0.1,
|
11 |
+
"bos_token_id": 1,
|
12 |
+
"classifier_proj_size": 256,
|
13 |
+
"codevector_dim": 256,
|
14 |
+
"contrastive_logits_temperature": 0.1,
|
15 |
+
"conv_bias": true,
|
16 |
+
"conv_dim": [
|
17 |
+
512,
|
18 |
+
512,
|
19 |
+
512,
|
20 |
+
512,
|
21 |
+
512,
|
22 |
+
512,
|
23 |
+
512
|
24 |
+
],
|
25 |
+
"conv_kernel": [
|
26 |
+
10,
|
27 |
+
3,
|
28 |
+
3,
|
29 |
+
3,
|
30 |
+
3,
|
31 |
+
2,
|
32 |
+
2
|
33 |
+
],
|
34 |
+
"conv_stride": [
|
35 |
+
5,
|
36 |
+
2,
|
37 |
+
2,
|
38 |
+
2,
|
39 |
+
2,
|
40 |
+
2,
|
41 |
+
2
|
42 |
+
],
|
43 |
+
"ctc_loss_reduction": "mean",
|
44 |
+
"ctc_zero_infinity": true,
|
45 |
+
"diversity_loss_weight": 0.1,
|
46 |
+
"do_stable_layer_norm": true,
|
47 |
+
"eos_token_id": 2,
|
48 |
+
"feat_extract_activation": "gelu",
|
49 |
+
"feat_extract_dropout": 0.0,
|
50 |
+
"feat_extract_norm": "layer",
|
51 |
+
"feat_proj_dropout": 0.05,
|
52 |
+
"feat_quantizer_dropout": 0.0,
|
53 |
+
"final_dropout": 0.0,
|
54 |
+
"hidden_act": "gelu",
|
55 |
+
"hidden_dropout": 0.05,
|
56 |
+
"hidden_size": 1024,
|
57 |
+
"initializer_range": 0.02,
|
58 |
+
"intermediate_size": 4096,
|
59 |
+
"layer_norm_eps": 1e-05,
|
60 |
+
"layerdrop": 0.05,
|
61 |
+
"mask_channel_length": 10,
|
62 |
+
"mask_channel_min_space": 1,
|
63 |
+
"mask_channel_other": 0.0,
|
64 |
+
"mask_channel_prob": 0.0,
|
65 |
+
"mask_channel_selection": "static",
|
66 |
+
"mask_feature_length": 10,
|
67 |
+
"mask_feature_min_masks": 0,
|
68 |
+
"mask_feature_prob": 0.0,
|
69 |
+
"mask_time_length": 10,
|
70 |
+
"mask_time_min_masks": 2,
|
71 |
+
"mask_time_min_space": 1,
|
72 |
+
"mask_time_other": 0.0,
|
73 |
+
"mask_time_prob": 0.05,
|
74 |
+
"mask_time_selection": "static",
|
75 |
+
"model_type": "wav2vec2",
|
76 |
+
"num_adapter_layers": 3,
|
77 |
+
"num_attention_heads": 16,
|
78 |
+
"num_codevector_groups": 2,
|
79 |
+
"num_codevectors_per_group": 320,
|
80 |
+
"num_conv_pos_embedding_groups": 16,
|
81 |
+
"num_conv_pos_embeddings": 128,
|
82 |
+
"num_feat_extract_layers": 7,
|
83 |
+
"num_hidden_layers": 24,
|
84 |
+
"num_negatives": 100,
|
85 |
+
"output_hidden_size": 1024,
|
86 |
+
"pad_token_id": 0,
|
87 |
+
"proj_codevector_dim": 256,
|
88 |
+
"tdnn_dilation": [
|
89 |
+
1,
|
90 |
+
2,
|
91 |
+
3,
|
92 |
+
1,
|
93 |
+
1
|
94 |
+
],
|
95 |
+
"tdnn_dim": [
|
96 |
+
512,
|
97 |
+
512,
|
98 |
+
512,
|
99 |
+
512,
|
100 |
+
1500
|
101 |
+
],
|
102 |
+
"tdnn_kernel": [
|
103 |
+
5,
|
104 |
+
3,
|
105 |
+
3,
|
106 |
+
1,
|
107 |
+
1
|
108 |
+
],
|
109 |
+
"torch_dtype": "float32",
|
110 |
+
"transformers_version": "4.26.1",
|
111 |
+
"use_weighted_layer_sum": false,
|
112 |
+
"vocab_size": 36,
|
113 |
+
"xvector_output_dim": 512
|
114 |
+
}
|
riksdag_transcripts_lm.yaml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# @package _group_
|
2 |
+
|
3 |
+
common:
|
4 |
+
fp16: true
|
5 |
+
log_format: json
|
6 |
+
log_interval: 200
|
7 |
+
tensorboard_logdir: /home/joregan/wav2vec2-swedish-riksdag-100h-transcripts-nolm/runs
|
8 |
+
|
9 |
+
checkpoint:
|
10 |
+
no_epoch_checkpoints: true
|
11 |
+
best_checkpoint_metric: wer
|
12 |
+
|
13 |
+
task:
|
14 |
+
_name: audio_finetuning
|
15 |
+
data: /home/joregan/fairseq-data3/
|
16 |
+
normalize: true
|
17 |
+
labels: ltr
|
18 |
+
|
19 |
+
dataset:
|
20 |
+
num_workers: 6
|
21 |
+
max_tokens: 128000
|
22 |
+
skip_invalid_size_inputs_valid_test: true
|
23 |
+
valid_subset: valid
|
24 |
+
|
25 |
+
distributed_training:
|
26 |
+
ddp_backend: legacy_ddp
|
27 |
+
distributed_world_size: 8
|
28 |
+
|
29 |
+
criterion:
|
30 |
+
_name: ctc
|
31 |
+
zero_infinity: true
|
32 |
+
|
33 |
+
optimization:
|
34 |
+
max_update: 80000
|
35 |
+
lr: [0.00003]
|
36 |
+
sentence_avg: true
|
37 |
+
update_freq: [5]
|
38 |
+
|
39 |
+
optimizer:
|
40 |
+
_name: adam
|
41 |
+
adam_betas: (0.9,0.98)
|
42 |
+
adam_eps: 1e-08
|
43 |
+
|
44 |
+
lr_scheduler:
|
45 |
+
_name: tri_stage
|
46 |
+
phase_ratio: [0.1, 0.4, 0.5]
|
47 |
+
final_lr_scale: 0.05
|
48 |
+
|
49 |
+
model:
|
50 |
+
_name: wav2vec_ctc
|
51 |
+
w2v_path: /home/joregan/kb_wav2vec2_checkpoint/checkpoint_last.pt
|
52 |
+
apply_mask: true
|
53 |
+
mask_prob: 0.5
|
54 |
+
mask_channel_prob: 0.5
|
55 |
+
mask_channel_length: 64
|
56 |
+
layerdrop: 0.1
|
57 |
+
activation_dropout: 0.1
|
58 |
+
feature_grad_mult: 0.0
|
59 |
+
freeze_finetune_updates: 10000
|