hans00 commited on
Commit
25c797f
·
verified ·
1 Parent(s): e423dbc

Upload folder using huggingface_hub

Browse files
bert_zh/special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
bert_zh/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
bert_zh/tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "10": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "11": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "12": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "13": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": null,
51
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "DistilBertTokenizer",
61
+ "unk_token": "[UNK]"
62
+ }
bert_zh/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "../../ellie-BertVITS2-mini",
4
+ "activation_dropout": 0.1,
5
+ "architectures": [
6
+ "BertVits2Model"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "auto_map": {
10
+ "AutoConfig": "BricksDisplay/ellie-Bert-VITS2--configuration_bert_vits2.BertVits2Config",
11
+ "AutoModel": "BricksDisplay/ellie-Bert-VITS2--modeling_bert_vits2.BertVits2Model"
12
+ },
13
+ "bert_configs": [
14
+ {
15
+ "_attn_implementation_autoset": true,
16
+ "_name_or_path": "distilbert-base-multilingual-cased",
17
+ "activation": "gelu",
18
+ "add_cross_attention": false,
19
+ "architectures": [
20
+ "DistilBertForMaskedLM"
21
+ ],
22
+ "attention_dropout": 0.1,
23
+ "attention_probs_dropout_prob": 0.1,
24
+ "bad_words_ids": null,
25
+ "begin_suppress_tokens": null,
26
+ "bos_token_id": null,
27
+ "chunk_size_feed_forward": 0,
28
+ "classifier_dropout": null,
29
+ "cross_attention_hidden_size": null,
30
+ "decoder_start_token_id": null,
31
+ "dim": 768,
32
+ "diversity_penalty": 0.0,
33
+ "do_sample": false,
34
+ "dropout": 0.1,
35
+ "early_stopping": false,
36
+ "encoder_no_repeat_ngram_size": 0,
37
+ "eos_token_id": null,
38
+ "exponential_decay_length_penalty": null,
39
+ "finetuning_task": null,
40
+ "forced_bos_token_id": null,
41
+ "forced_eos_token_id": null,
42
+ "hidden_act": "gelu",
43
+ "hidden_dim": 3072,
44
+ "hidden_dropout_prob": 0.1,
45
+ "hidden_size": 768,
46
+ "id2label": {
47
+ "0": "LABEL_0",
48
+ "1": "LABEL_1"
49
+ },
50
+ "initializer_range": 0.02,
51
+ "intermediate_size": 3072,
52
+ "is_decoder": false,
53
+ "is_encoder_decoder": false,
54
+ "label2id": {
55
+ "LABEL_0": 0,
56
+ "LABEL_1": 1
57
+ },
58
+ "layer_norm_eps": 1e-12,
59
+ "length_penalty": 1.0,
60
+ "max_length": 20,
61
+ "max_position_embeddings": 512,
62
+ "min_length": 0,
63
+ "model_type": "bert",
64
+ "n_heads": 12,
65
+ "n_layers": 6,
66
+ "no_repeat_ngram_size": 0,
67
+ "num_attention_heads": 12,
68
+ "num_beam_groups": 1,
69
+ "num_beams": 1,
70
+ "num_hidden_layers": 12,
71
+ "num_return_sequences": 1,
72
+ "output_attentions": false,
73
+ "output_hidden_states": false,
74
+ "output_past": true,
75
+ "output_scores": false,
76
+ "pad_token_id": 0,
77
+ "position_embedding_type": "absolute",
78
+ "prefix": null,
79
+ "problem_type": null,
80
+ "pruned_heads": {},
81
+ "qa_dropout": 0.1,
82
+ "remove_invalid_values": false,
83
+ "repetition_penalty": 1.0,
84
+ "return_dict": true,
85
+ "return_dict_in_generate": false,
86
+ "sep_token_id": null,
87
+ "seq_classif_dropout": 0.2,
88
+ "sinusoidal_pos_embds": false,
89
+ "suppress_tokens": null,
90
+ "task_specific_params": null,
91
+ "temperature": 1.0,
92
+ "tf_legacy_loss": false,
93
+ "tie_encoder_decoder": false,
94
+ "tie_weights_": true,
95
+ "tie_word_embeddings": true,
96
+ "tokenizer_class": null,
97
+ "top_k": 50,
98
+ "top_p": 1.0,
99
+ "torch_dtype": null,
100
+ "torchscript": false,
101
+ "transformers_version": "4.49.0",
102
+ "type_vocab_size": 2,
103
+ "typical_p": 1.0,
104
+ "use_bfloat16": false,
105
+ "use_cache": true,
106
+ "vocab_size": 41986
107
+ }
108
+ ],
109
+ "cond_layer_index": 2,
110
+ "conditioning_layer_index": 2,
111
+ "depth_separable_channels": 2,
112
+ "depth_separable_num_layers": 3,
113
+ "duration_predictor_dropout": 0.1,
114
+ "duration_predictor_filter_channels": 256,
115
+ "duration_predictor_flow_bins": 10,
116
+ "duration_predictor_kernel_size": 3,
117
+ "duration_predictor_num_flows": 4,
118
+ "duration_predictor_tail_bound": 5.0,
119
+ "ffn_dim": 768,
120
+ "ffn_kernel_size": 3,
121
+ "flow_size": 192,
122
+ "hidden_act": "relu",
123
+ "hidden_dropout": 0.1,
124
+ "hidden_size": 192,
125
+ "initializer_range": 0.02,
126
+ "layer_norm_eps": 1e-05,
127
+ "layerdrop": 0.1,
128
+ "leaky_relu_slope": 0.1,
129
+ "model_type": "bert_vits2",
130
+ "noise_scale": 0.667,
131
+ "noise_scale_duration": 0.8,
132
+ "num_attention_heads": 2,
133
+ "num_hidden_layers": 6,
134
+ "num_languages": 3,
135
+ "num_speakers": 256,
136
+ "num_tones": 11,
137
+ "posterior_encoder_num_wavenet_layers": 16,
138
+ "prior_encoder_num_flows": 4,
139
+ "prior_encoder_num_flows_layers": 6,
140
+ "prior_encoder_num_wavenet_layers": 4,
141
+ "resblock_dilation_sizes": [
142
+ [
143
+ 1,
144
+ 3,
145
+ 5
146
+ ],
147
+ [
148
+ 1,
149
+ 3,
150
+ 5
151
+ ],
152
+ [
153
+ 1,
154
+ 3,
155
+ 5
156
+ ]
157
+ ],
158
+ "resblock_kernel_sizes": [
159
+ 3,
160
+ 7,
161
+ 11
162
+ ],
163
+ "sampling_rate": 44100,
164
+ "speaker_embedding_size": 256,
165
+ "speaking_rate": 1.0,
166
+ "spectrogram_bins": 1025,
167
+ "stochastic_duration_prediction_ratio": 0.0,
168
+ "torch_dtype": "float32",
169
+ "transformers_version": "4.49.0",
170
+ "upsample_initial_channel": 512,
171
+ "upsample_kernel_sizes": [
172
+ 16,
173
+ 16,
174
+ 8,
175
+ 2,
176
+ 2
177
+ ],
178
+ "upsample_rates": [
179
+ 8,
180
+ 8,
181
+ 2,
182
+ 2,
183
+ 2
184
+ ],
185
+ "use_bias": true,
186
+ "use_transformer_flow": true,
187
+ "vocab_size": 112,
188
+ "wavenet_dilation_rate": 1,
189
+ "wavenet_dropout": 0.0,
190
+ "wavenet_kernel_size": 5,
191
+ "window_size": 4
192
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d74aa783e97a646c19c60c32e125fb994f3578b78715a71ccc258b566b3dd19a
3
+ size 662923164
preprocessor_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bert_tokenizers": {
3
+ "zh": "bert_zh"
4
+ },
5
+ "processor_class": "BertVits2Processor"
6
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "pad_token": {
3
+ "content": "_",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "unk_token": {
10
+ "content": "UNK",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ }
16
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_blank": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "_",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "111": {
13
+ "content": "UNK",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ }
20
+ },
21
+ "auto_map": {
22
+ "AutoTokenizer": [
23
+ "BricksDisplay/ellie-Bert-VITS2--tokenization_bert_vits2.BertVits2Tokenizer",
24
+ null
25
+ ]
26
+ },
27
+ "clean_up_tokenization_spaces": true,
28
+ "extra_special_tokens": {},
29
+ "languages": [
30
+ "zh"
31
+ ],
32
+ "model_max_length": 1000000000000000019884624838656,
33
+ "pad_token": "_",
34
+ "processor_class": "BertVits2Processor",
35
+ "space_token": "SP",
36
+ "tokenizer_class": "BertVits2Tokenizer",
37
+ "unk_token": "UNK"
38
+ }
vocab.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "!": 103,
3
+ "'": 108,
4
+ ",": 106,
5
+ "-": 109,
6
+ ".": 107,
7
+ "?": 104,
8
+ "AA": 1,
9
+ "E": 2,
10
+ "EE": 3,
11
+ "En": 4,
12
+ "N": 5,
13
+ "OO": 6,
14
+ "SP": 110,
15
+ "UNK": 111,
16
+ "V": 7,
17
+ "_": 0,
18
+ "a": 8,
19
+ "a:": 9,
20
+ "aa": 10,
21
+ "ae": 11,
22
+ "ah": 12,
23
+ "ai": 13,
24
+ "an": 14,
25
+ "ang": 15,
26
+ "ao": 16,
27
+ "aw": 17,
28
+ "ay": 18,
29
+ "b": 19,
30
+ "by": 20,
31
+ "c": 21,
32
+ "ch": 22,
33
+ "d": 23,
34
+ "dh": 24,
35
+ "dy": 25,
36
+ "e": 26,
37
+ "e:": 27,
38
+ "eh": 28,
39
+ "ei": 29,
40
+ "en": 30,
41
+ "eng": 31,
42
+ "er": 32,
43
+ "ey": 33,
44
+ "f": 34,
45
+ "g": 35,
46
+ "gy": 36,
47
+ "h": 37,
48
+ "hh": 38,
49
+ "hy": 39,
50
+ "i": 40,
51
+ "i0": 41,
52
+ "i:": 42,
53
+ "ia": 43,
54
+ "ian": 44,
55
+ "iang": 45,
56
+ "iao": 46,
57
+ "ie": 47,
58
+ "ih": 48,
59
+ "in": 49,
60
+ "ing": 50,
61
+ "iong": 51,
62
+ "ir": 52,
63
+ "iu": 53,
64
+ "iy": 54,
65
+ "j": 55,
66
+ "jh": 56,
67
+ "k": 57,
68
+ "ky": 58,
69
+ "l": 59,
70
+ "m": 60,
71
+ "my": 61,
72
+ "n": 62,
73
+ "ng": 63,
74
+ "ny": 64,
75
+ "o": 65,
76
+ "o:": 66,
77
+ "ong": 67,
78
+ "ou": 68,
79
+ "ow": 69,
80
+ "oy": 70,
81
+ "p": 71,
82
+ "py": 72,
83
+ "q": 73,
84
+ "r": 74,
85
+ "ry": 75,
86
+ "s": 76,
87
+ "sh": 77,
88
+ "t": 78,
89
+ "th": 79,
90
+ "ts": 80,
91
+ "ty": 81,
92
+ "u": 82,
93
+ "u:": 83,
94
+ "ua": 84,
95
+ "uai": 85,
96
+ "uan": 86,
97
+ "uang": 87,
98
+ "uh": 88,
99
+ "ui": 89,
100
+ "un": 90,
101
+ "uo": 91,
102
+ "uw": 92,
103
+ "v": 93,
104
+ "van": 94,
105
+ "ve": 95,
106
+ "vn": 96,
107
+ "w": 97,
108
+ "x": 98,
109
+ "y": 99,
110
+ "z": 100,
111
+ "zh": 101,
112
+ "zy": 102,
113
+ "…": 105
114
+ }