Oleksii Maryshchenko commited on
Commit
bfeec66
·
1 Parent(s): 85c7e4c

Init configs

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ onnx/model.onnx_data filter=lfs diff=lfs merge=lfs -text
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "</s>": 47,
3
+ "[PAD]": 46
4
+ }
config.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "omaryshchenko/w2v-bert-2.0-polish-CV16.0-v3",
3
+ "activation_dropout": 0.05,
4
+ "adapter_act": "relu",
5
+ "adapter_kernel_size": 3,
6
+ "adapter_stride": 2,
7
+ "add_adapter": true,
8
+ "apply_spec_augment": false,
9
+ "architectures": [
10
+ "Wav2Vec2BertForCTC"
11
+ ],
12
+ "attention_dropout": 0.0,
13
+ "bos_token_id": 1,
14
+ "classifier_proj_size": 768,
15
+ "codevector_dim": 768,
16
+ "conformer_conv_dropout": 0.1,
17
+ "contrastive_logits_temperature": 0.1,
18
+ "conv_depthwise_kernel_size": 31,
19
+ "ctc_loss_reduction": "mean",
20
+ "ctc_zero_infinity": true,
21
+ "diversity_loss_weight": 0.1,
22
+ "eos_token_id": 2,
23
+ "feat_proj_dropout": 0.05,
24
+ "feat_quantizer_dropout": 0.0,
25
+ "feature_projection_input_dim": 160,
26
+ "final_dropout": 0.0,
27
+ "hidden_act": "swish",
28
+ "hidden_dropout": 0.05,
29
+ "hidden_size": 1024,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 4096,
32
+ "layer_norm_eps": 1e-05,
33
+ "layerdrop": 0.0,
34
+ "left_max_position_embeddings": 64,
35
+ "mask_feature_length": 10,
36
+ "mask_feature_min_masks": 0,
37
+ "mask_feature_prob": 0.0,
38
+ "mask_time_length": 10,
39
+ "mask_time_min_masks": 2,
40
+ "mask_time_prob": 0.0,
41
+ "max_source_positions": 5000,
42
+ "model_type": "wav2vec2-bert",
43
+ "num_adapter_layers": 1,
44
+ "num_attention_heads": 16,
45
+ "num_codevector_groups": 2,
46
+ "num_codevectors_per_group": 320,
47
+ "num_hidden_layers": 24,
48
+ "num_negatives": 100,
49
+ "output_hidden_size": 1024,
50
+ "pad_token_id": 46,
51
+ "position_embeddings_type": "relative_key",
52
+ "proj_codevector_dim": 768,
53
+ "right_max_position_embeddings": 8,
54
+ "rotary_embedding_base": 10000,
55
+ "tdnn_dilation": [
56
+ 1,
57
+ 2,
58
+ 3,
59
+ 1,
60
+ 1
61
+ ],
62
+ "tdnn_dim": [
63
+ 512,
64
+ 512,
65
+ 512,
66
+ 512,
67
+ 1500
68
+ ],
69
+ "tdnn_kernel": [
70
+ 5,
71
+ 3,
72
+ 3,
73
+ 1,
74
+ 1
75
+ ],
76
+ "transformers_version": "4.37.2",
77
+ "use_intermediate_ffn_before_adapter": false,
78
+ "use_weighted_layer_sum": false,
79
+ "vocab_size": 47,
80
+ "xvector_output_dim": 512
81
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "feature_extractor_type": "SeamlessM4TFeatureExtractor",
3
+ "feature_size": 80,
4
+ "num_mel_bins": 80,
5
+ "padding_side": "right",
6
+ "padding_value": 1,
7
+ "processor_class": "Wav2Vec2BertProcessor",
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 16000,
10
+ "stride": 2
11
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": {
4
+ "content": "</s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "pad_token": {
11
+ "content": "[PAD]",
12
+ "lstrip": true,
13
+ "normalized": false,
14
+ "rstrip": true,
15
+ "single_word": false
16
+ },
17
+ "unk_token": {
18
+ "content": "[UNK]",
19
+ "lstrip": true,
20
+ "normalized": false,
21
+ "rstrip": true,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 46,
8
+ "content": "[PAD]",
9
+ "single_word": false,
10
+ "lstrip": true,
11
+ "rstrip": true,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 45,
17
+ "content": "[UNK]",
18
+ "single_word": false,
19
+ "lstrip": true,
20
+ "rstrip": true,
21
+ "normalized": false,
22
+ "special": true
23
+ }
24
+ ],
25
+ "normalizer": {
26
+ "type": "Replace",
27
+ "pattern": {
28
+ "String": " "
29
+ },
30
+ "content": "|"
31
+ },
32
+ "pre_tokenizer": {
33
+ "type": "Split",
34
+ "pattern": {
35
+ "Regex": ""
36
+ },
37
+ "behavior": "Isolated",
38
+ "invert": false
39
+ },
40
+ "post_processor": null,
41
+ "decoder": {
42
+ "type": "CTC",
43
+ "pad_token": "[PAD]",
44
+ "word_delimiter_token": "|",
45
+ "cleanup": true
46
+ },
47
+ "model": {
48
+ "vocab": {
49
+ "[PAD]": 46,
50
+ "[UNK]": 45,
51
+ "a": 1,
52
+ "b": 2,
53
+ "c": 3,
54
+ "ch": 40,
55
+ "cz": 39,
56
+ "d": 4,
57
+ "dz": 41,
58
+ "dzi": 44,
59
+ "d\u017a": 43,
60
+ "d\u017c": 42,
61
+ "e": 5,
62
+ "f": 6,
63
+ "g": 7,
64
+ "h": 8,
65
+ "i": 9,
66
+ "j": 10,
67
+ "k": 11,
68
+ "l": 12,
69
+ "m": 13,
70
+ "n": 14,
71
+ "o": 15,
72
+ "p": 16,
73
+ "q": 17,
74
+ "r": 18,
75
+ "rz": 34,
76
+ "s": 19,
77
+ "sz": 36,
78
+ "t": 20,
79
+ "u": 21,
80
+ "v": 22,
81
+ "w": 23,
82
+ "x": 24,
83
+ "y": 25,
84
+ "z": 26,
85
+ "|": 0,
86
+ "\u00f3": 28,
87
+ "\u0105": 29,
88
+ "\u0107": 30,
89
+ "\u0119": 31,
90
+ "\u0142": 32,
91
+ "\u0144": 33,
92
+ "\u015b": 35,
93
+ "\u017a": 37,
94
+ "\u017c": 38
95
+ }
96
+ }
97
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "34": {
4
+ "content": "rz",
5
+ "lstrip": true,
6
+ "normalized": false,
7
+ "rstrip": true,
8
+ "single_word": false,
9
+ "special": false
10
+ },
11
+ "36": {
12
+ "content": "sz",
13
+ "lstrip": true,
14
+ "normalized": false,
15
+ "rstrip": true,
16
+ "single_word": false,
17
+ "special": false
18
+ },
19
+ "39": {
20
+ "content": "cz",
21
+ "lstrip": true,
22
+ "normalized": false,
23
+ "rstrip": true,
24
+ "single_word": false,
25
+ "special": false
26
+ },
27
+ "40": {
28
+ "content": "ch",
29
+ "lstrip": true,
30
+ "normalized": false,
31
+ "rstrip": true,
32
+ "single_word": false,
33
+ "special": false
34
+ },
35
+ "41": {
36
+ "content": "dz",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": true,
40
+ "single_word": false,
41
+ "special": false
42
+ },
43
+ "42": {
44
+ "content": "dż",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": true,
48
+ "single_word": false,
49
+ "special": false
50
+ },
51
+ "43": {
52
+ "content": "dź",
53
+ "lstrip": true,
54
+ "normalized": false,
55
+ "rstrip": true,
56
+ "single_word": false,
57
+ "special": false
58
+ },
59
+ "44": {
60
+ "content": "dzi",
61
+ "lstrip": true,
62
+ "normalized": false,
63
+ "rstrip": true,
64
+ "single_word": false,
65
+ "special": false
66
+ },
67
+ "45": {
68
+ "content": "[UNK]",
69
+ "lstrip": true,
70
+ "normalized": false,
71
+ "rstrip": true,
72
+ "single_word": false,
73
+ "special": false
74
+ },
75
+ "46": {
76
+ "content": "[PAD]",
77
+ "lstrip": true,
78
+ "normalized": false,
79
+ "rstrip": true,
80
+ "single_word": false,
81
+ "special": false
82
+ },
83
+ "47": {
84
+ "content": "</s>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": true
90
+ }
91
+ },
92
+ "bos_token": "<s>",
93
+ "clean_up_tokenization_spaces": true,
94
+ "do_lower_case": false,
95
+ "eos_token": "</s>",
96
+ "model_max_length": 1000000000000000019884624838656,
97
+ "pad_token": "[PAD]",
98
+ "processor_class": "Wav2Vec2BertProcessor",
99
+ "replace_word_delimiter_char": " ",
100
+ "target_lang": null,
101
+ "tokenizer_class": "Wav2Vec2CTCTokenizer",
102
+ "unk_token": "[UNK]",
103
+ "word_delimiter_token": "|"
104
+ }
vocab.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "[PAD]": 46,
3
+ "[UNK]": 45,
4
+ "a": 1,
5
+ "b": 2,
6
+ "c": 3,
7
+ "ch": 40,
8
+ "cz": 39,
9
+ "d": 4,
10
+ "dz": 41,
11
+ "dzi": 44,
12
+ "dź": 43,
13
+ "dż": 42,
14
+ "e": 5,
15
+ "f": 6,
16
+ "g": 7,
17
+ "h": 8,
18
+ "i": 9,
19
+ "j": 10,
20
+ "k": 11,
21
+ "l": 12,
22
+ "m": 13,
23
+ "n": 14,
24
+ "o": 15,
25
+ "p": 16,
26
+ "q": 17,
27
+ "r": 18,
28
+ "rz": 34,
29
+ "s": 19,
30
+ "sz": 36,
31
+ "t": 20,
32
+ "u": 21,
33
+ "v": 22,
34
+ "w": 23,
35
+ "x": 24,
36
+ "y": 25,
37
+ "z": 26,
38
+ "|": 0,
39
+ "ó": 28,
40
+ "ą": 29,
41
+ "ć": 30,
42
+ "ę": 31,
43
+ "ł": 32,
44
+ "ń": 33,
45
+ "ś": 35,
46
+ "ź": 37,
47
+ "ż": 38
48
+ }