Text-to-Speech
Transformers
Safetensors
parler_tts
text2text-generation
annotation
ylacombe commited on
Commit
990f309
1 Parent(s): 6fa8391

Upload ParlerTTSForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +274 -0
  2. generation_config.json +10 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/fsx/yoach/tmp/artefacts/training-multilingual-mini-indic-finetuning-on-base/",
3
+ "architectures": [
4
+ "ParlerTTSForConditionalGeneration"
5
+ ],
6
+ "audio_encoder": {
7
+ "_name_or_path": "ylacombe/dac_44khz",
8
+ "add_cross_attention": false,
9
+ "architectures": [
10
+ "DacModel"
11
+ ],
12
+ "bad_words_ids": null,
13
+ "begin_suppress_tokens": null,
14
+ "bos_token_id": null,
15
+ "chunk_size_feed_forward": 0,
16
+ "codebook_dim": 8,
17
+ "codebook_loss_weight": 1.0,
18
+ "codebook_size": 1024,
19
+ "commitment_loss_weight": 0.25,
20
+ "cross_attention_hidden_size": null,
21
+ "decoder_hidden_size": 1536,
22
+ "decoder_start_token_id": null,
23
+ "diversity_penalty": 0.0,
24
+ "do_sample": false,
25
+ "downsampling_ratios": [
26
+ 2,
27
+ 4,
28
+ 8,
29
+ 8
30
+ ],
31
+ "early_stopping": false,
32
+ "encoder_hidden_size": 64,
33
+ "encoder_no_repeat_ngram_size": 0,
34
+ "eos_token_id": null,
35
+ "exponential_decay_length_penalty": null,
36
+ "finetuning_task": null,
37
+ "forced_bos_token_id": null,
38
+ "forced_eos_token_id": null,
39
+ "hidden_size": 1024,
40
+ "hop_length": 512,
41
+ "id2label": {
42
+ "0": "LABEL_0",
43
+ "1": "LABEL_1"
44
+ },
45
+ "is_decoder": false,
46
+ "is_encoder_decoder": false,
47
+ "label2id": {
48
+ "LABEL_0": 0,
49
+ "LABEL_1": 1
50
+ },
51
+ "length_penalty": 1.0,
52
+ "max_length": 20,
53
+ "min_length": 0,
54
+ "model_type": "dac",
55
+ "n_codebooks": 9,
56
+ "no_repeat_ngram_size": 0,
57
+ "num_beam_groups": 1,
58
+ "num_beams": 1,
59
+ "num_return_sequences": 1,
60
+ "output_attentions": false,
61
+ "output_hidden_states": false,
62
+ "output_scores": false,
63
+ "pad_token_id": null,
64
+ "prefix": null,
65
+ "problem_type": null,
66
+ "pruned_heads": {},
67
+ "quantizer_dropout": 0.0,
68
+ "remove_invalid_values": false,
69
+ "repetition_penalty": 1.0,
70
+ "return_dict": true,
71
+ "return_dict_in_generate": false,
72
+ "sampling_rate": 44100,
73
+ "sep_token_id": null,
74
+ "suppress_tokens": null,
75
+ "task_specific_params": null,
76
+ "temperature": 1.0,
77
+ "tf_legacy_loss": false,
78
+ "tie_encoder_decoder": false,
79
+ "tie_word_embeddings": true,
80
+ "tokenizer_class": null,
81
+ "top_k": 50,
82
+ "top_p": 1.0,
83
+ "torch_dtype": "float32",
84
+ "torchscript": false,
85
+ "typical_p": 1.0,
86
+ "upsampling_ratios": [
87
+ 8,
88
+ 8,
89
+ 4,
90
+ 2
91
+ ],
92
+ "use_bfloat16": false
93
+ },
94
+ "decoder": {
95
+ "_name_or_path": "/fsx/yoach/tmp/artefacts/parler-tts-mini-v2-empty/decoder",
96
+ "activation_dropout": 0.0,
97
+ "activation_function": "gelu",
98
+ "add_cross_attention": true,
99
+ "architectures": [
100
+ "ParlerTTSForCausalLM"
101
+ ],
102
+ "attention_dropout": 0.0,
103
+ "bad_words_ids": null,
104
+ "begin_suppress_tokens": null,
105
+ "bos_token_id": 1025,
106
+ "chunk_size_feed_forward": 0,
107
+ "codebook_weights": null,
108
+ "cross_attention_hidden_size": null,
109
+ "cross_attention_implementation_strategy": null,
110
+ "decoder_start_token_id": null,
111
+ "delay_strategy": "delay",
112
+ "diversity_penalty": 0.0,
113
+ "do_sample": false,
114
+ "dropout": 0.1,
115
+ "early_stopping": false,
116
+ "encoder_no_repeat_ngram_size": 0,
117
+ "eos_token_id": 1024,
118
+ "exponential_decay_length_penalty": null,
119
+ "ffn_dim": 4096,
120
+ "finetuning_task": null,
121
+ "forced_bos_token_id": null,
122
+ "forced_eos_token_id": null,
123
+ "hidden_size": 1024,
124
+ "id2label": {
125
+ "0": "LABEL_0",
126
+ "1": "LABEL_1"
127
+ },
128
+ "initializer_factor": 0.02,
129
+ "is_decoder": true,
130
+ "is_encoder_decoder": false,
131
+ "label2id": {
132
+ "LABEL_0": 0,
133
+ "LABEL_1": 1
134
+ },
135
+ "layerdrop": 0.0,
136
+ "length_penalty": 1.0,
137
+ "max_length": 20,
138
+ "max_position_embeddings": 4096,
139
+ "min_length": 0,
140
+ "model_type": "parler_tts_decoder",
141
+ "no_repeat_ngram_size": 0,
142
+ "num_attention_heads": 16,
143
+ "num_beam_groups": 1,
144
+ "num_beams": 1,
145
+ "num_codebooks": 9,
146
+ "num_cross_attention_key_value_heads": 16,
147
+ "num_hidden_layers": 24,
148
+ "num_key_value_heads": 16,
149
+ "num_return_sequences": 1,
150
+ "output_attentions": false,
151
+ "output_hidden_states": false,
152
+ "output_scores": false,
153
+ "pad_token_id": 1024,
154
+ "prefix": null,
155
+ "problem_type": null,
156
+ "pruned_heads": {},
157
+ "remove_invalid_values": false,
158
+ "repetition_penalty": 1.0,
159
+ "return_dict": true,
160
+ "return_dict_in_generate": false,
161
+ "rope_embeddings": false,
162
+ "rope_theta": 10000.0,
163
+ "scale_embedding": false,
164
+ "sep_token_id": null,
165
+ "suppress_tokens": null,
166
+ "task_specific_params": null,
167
+ "temperature": 1.0,
168
+ "tf_legacy_loss": false,
169
+ "tie_encoder_decoder": false,
170
+ "tie_word_embeddings": false,
171
+ "tokenizer_class": null,
172
+ "top_k": 50,
173
+ "top_p": 1.0,
174
+ "torch_dtype": "float32",
175
+ "torchscript": false,
176
+ "typical_p": 1.0,
177
+ "use_bfloat16": false,
178
+ "use_cache": true,
179
+ "use_fused_lm_heads": true,
180
+ "vocab_size": 1088
181
+ },
182
+ "decoder_start_token_id": 1025,
183
+ "is_encoder_decoder": true,
184
+ "model_type": "parler_tts",
185
+ "pad_token_id": 1024,
186
+ "prompt_cross_attention": false,
187
+ "text_encoder": {
188
+ "_name_or_path": "google/flan-t5-large",
189
+ "add_cross_attention": false,
190
+ "architectures": [
191
+ "T5ForConditionalGeneration"
192
+ ],
193
+ "bad_words_ids": null,
194
+ "begin_suppress_tokens": null,
195
+ "bos_token_id": null,
196
+ "chunk_size_feed_forward": 0,
197
+ "classifier_dropout": 0.0,
198
+ "cross_attention_hidden_size": null,
199
+ "d_ff": 2816,
200
+ "d_kv": 64,
201
+ "d_model": 1024,
202
+ "decoder_start_token_id": 0,
203
+ "dense_act_fn": "gelu_new",
204
+ "diversity_penalty": 0.0,
205
+ "do_sample": false,
206
+ "dropout_rate": 0.1,
207
+ "early_stopping": false,
208
+ "encoder_no_repeat_ngram_size": 0,
209
+ "eos_token_id": 1,
210
+ "exponential_decay_length_penalty": null,
211
+ "feed_forward_proj": "gated-gelu",
212
+ "finetuning_task": null,
213
+ "forced_bos_token_id": null,
214
+ "forced_eos_token_id": null,
215
+ "id2label": {
216
+ "0": "LABEL_0",
217
+ "1": "LABEL_1"
218
+ },
219
+ "initializer_factor": 1.0,
220
+ "is_decoder": false,
221
+ "is_encoder_decoder": true,
222
+ "is_gated_act": true,
223
+ "label2id": {
224
+ "LABEL_0": 0,
225
+ "LABEL_1": 1
226
+ },
227
+ "layer_norm_epsilon": 1e-06,
228
+ "length_penalty": 1.0,
229
+ "max_length": 20,
230
+ "min_length": 0,
231
+ "model_type": "t5",
232
+ "n_positions": 512,
233
+ "no_repeat_ngram_size": 0,
234
+ "num_beam_groups": 1,
235
+ "num_beams": 1,
236
+ "num_decoder_layers": 24,
237
+ "num_heads": 16,
238
+ "num_layers": 24,
239
+ "num_return_sequences": 1,
240
+ "output_attentions": false,
241
+ "output_hidden_states": false,
242
+ "output_past": true,
243
+ "output_scores": false,
244
+ "pad_token_id": 0,
245
+ "prefix": null,
246
+ "problem_type": null,
247
+ "pruned_heads": {},
248
+ "relative_attention_max_distance": 128,
249
+ "relative_attention_num_buckets": 32,
250
+ "remove_invalid_values": false,
251
+ "repetition_penalty": 1.0,
252
+ "return_dict": true,
253
+ "return_dict_in_generate": false,
254
+ "sep_token_id": null,
255
+ "suppress_tokens": null,
256
+ "task_specific_params": null,
257
+ "temperature": 1.0,
258
+ "tf_legacy_loss": false,
259
+ "tie_encoder_decoder": false,
260
+ "tie_word_embeddings": false,
261
+ "tokenizer_class": null,
262
+ "top_k": 50,
263
+ "top_p": 1.0,
264
+ "torch_dtype": null,
265
+ "torchscript": false,
266
+ "typical_p": 1.0,
267
+ "use_bfloat16": false,
268
+ "use_cache": true,
269
+ "vocab_size": 32128
270
+ },
271
+ "torch_dtype": "float32",
272
+ "transformers_version": "4.46.0.dev0",
273
+ "vocab_size": 90714
274
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1025,
4
+ "decoder_start_token_id": 1025,
5
+ "do_sample": true,
6
+ "eos_token_id": 1024,
7
+ "max_length": 2610,
8
+ "pad_token_id": 1024,
9
+ "transformers_version": "4.46.0.dev0"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c68daecb60f80c8f1faf0a6d2e6ddd6de8e224fb19750f3e9a33bca43c552c90
3
+ size 3751321772