Add EmformerProcessor, clean up the config
Browse files- config.json +2 -59
- preprocessor_config.json +1 -0
- tokenizer_config.json +1 -1
config.json
CHANGED
@@ -1,92 +1,35 @@
|
|
1 |
{
|
2 |
"activation_dropout": 0.1,
|
3 |
-
"apply_spec_augment": true,
|
4 |
"architectures": [
|
5 |
"EmformerForRNNT"
|
6 |
],
|
7 |
"attention_dropout": 0.1,
|
8 |
-
"
|
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": false,
|
43 |
-
"eos_token_id": 2,
|
44 |
-
"feat_extract_activation": "gelu",
|
45 |
-
"feat_extract_norm": "group",
|
46 |
-
"feat_proj_dropout": 0.0,
|
47 |
-
"feat_quantizer_dropout": 0.0,
|
48 |
-
"ffn_dim": 2048,
|
49 |
"final_dropout": 0.1,
|
50 |
"hidden_act": "gelu",
|
51 |
"hidden_dropout": 0.1,
|
52 |
"hidden_size": 768,
|
53 |
"initializer_range": 0.02,
|
54 |
"input_dim": 80,
|
55 |
-
"intermediate_size":
|
56 |
"joiner_activation": "relu",
|
57 |
"layer_norm_eps": 1e-05,
|
58 |
-
"layerdrop": 0.1,
|
59 |
"left_context_length": 30,
|
60 |
"lstm_dropout": 0.3,
|
61 |
"lstm_hidden_dim": 512,
|
62 |
"lstm_layer_norm": 0.001,
|
63 |
"lstm_layer_norm_epsilon": 0.001,
|
64 |
-
"mask_feature_length": 10,
|
65 |
-
"mask_feature_min_masks": 0,
|
66 |
-
"mask_feature_prob": 0.0,
|
67 |
-
"mask_time_length": 10,
|
68 |
-
"mask_time_min_masks": 2,
|
69 |
-
"mask_time_prob": 0.05,
|
70 |
"model_type": "emformer",
|
71 |
"num_attention_heads": 8,
|
72 |
-
"num_codevector_groups": 2,
|
73 |
-
"num_codevectors_per_group": 320,
|
74 |
-
"num_conv_pos_embedding_groups": 16,
|
75 |
-
"num_conv_pos_embeddings": 128,
|
76 |
-
"num_feat_extract_layers": 7,
|
77 |
"num_hidden_layers": 20,
|
78 |
"num_lstm_layers": 3,
|
79 |
-
"num_negatives": 100,
|
80 |
"output_dim": 1024,
|
81 |
-
"pad_token_id": 0,
|
82 |
-
"proj_codevector_dim": 256,
|
83 |
"right_context_length": 4,
|
84 |
"segment_length": 16,
|
85 |
"symbol_embedding_dim": 512,
|
86 |
"time_reduction_input_dim": 128,
|
87 |
"time_reduction_stride": 4,
|
88 |
"torch_dtype": "float32",
|
89 |
-
"transformer_ffn_dim": 2048,
|
90 |
"transformers_version": "4.20.0.dev0",
|
91 |
"vocab_size": 4097
|
92 |
}
|
|
|
1 |
{
|
2 |
"activation_dropout": 0.1,
|
|
|
3 |
"architectures": [
|
4 |
"EmformerForRNNT"
|
5 |
],
|
6 |
"attention_dropout": 0.1,
|
7 |
+
"blank_token_id": 4096,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
"final_dropout": 0.1,
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout": 0.1,
|
11 |
"hidden_size": 768,
|
12 |
"initializer_range": 0.02,
|
13 |
"input_dim": 80,
|
14 |
+
"intermediate_size": 2048,
|
15 |
"joiner_activation": "relu",
|
16 |
"layer_norm_eps": 1e-05,
|
|
|
17 |
"left_context_length": 30,
|
18 |
"lstm_dropout": 0.3,
|
19 |
"lstm_hidden_dim": 512,
|
20 |
"lstm_layer_norm": 0.001,
|
21 |
"lstm_layer_norm_epsilon": 0.001,
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
"model_type": "emformer",
|
23 |
"num_attention_heads": 8,
|
|
|
|
|
|
|
|
|
|
|
24 |
"num_hidden_layers": 20,
|
25 |
"num_lstm_layers": 3,
|
|
|
26 |
"output_dim": 1024,
|
|
|
|
|
27 |
"right_context_length": 4,
|
28 |
"segment_length": 16,
|
29 |
"symbol_embedding_dim": 512,
|
30 |
"time_reduction_input_dim": 128,
|
31 |
"time_reduction_stride": 4,
|
32 |
"torch_dtype": "float32",
|
|
|
33 |
"transformers_version": "4.20.0.dev0",
|
34 |
"vocab_size": 4097
|
35 |
}
|
preprocessor_config.json
CHANGED
@@ -170,6 +170,7 @@
|
|
170 |
"n_mels": 80,
|
171 |
"padding_side": "right",
|
172 |
"padding_value": 0.0,
|
|
|
173 |
"return_attention_mask": true,
|
174 |
"sampling_rate": 16000
|
175 |
}
|
|
|
170 |
"n_mels": 80,
|
171 |
"padding_side": "right",
|
172 |
"padding_value": 0.0,
|
173 |
+
"processor_class": "EmformerProcessor",
|
174 |
"return_attention_mask": true,
|
175 |
"sampling_rate": 16000
|
176 |
}
|
tokenizer_config.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "sp_model_kwargs": {}, "tokenizer_class": "EmformerTokenizer"}
|
|
|
1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "sp_model_kwargs": {}, "tokenizer_class": "EmformerTokenizer", "processor_class": "EmformerProcessor"}
|