ylacombe commited on
Commit
917e230
1 Parent(s): ad7612e

Upload ParlerTTSForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +273 -0
  2. generation_config.json +10 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/fsx/yoach/tmp/artefacts/training-multilingual-mini-v2/",
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
+ "diversity_penalty": 0.0,
112
+ "do_sample": false,
113
+ "dropout": 0.1,
114
+ "early_stopping": false,
115
+ "encoder_no_repeat_ngram_size": 0,
116
+ "eos_token_id": 1024,
117
+ "exponential_decay_length_penalty": null,
118
+ "ffn_dim": 4096,
119
+ "finetuning_task": null,
120
+ "forced_bos_token_id": null,
121
+ "forced_eos_token_id": null,
122
+ "hidden_size": 1024,
123
+ "id2label": {
124
+ "0": "LABEL_0",
125
+ "1": "LABEL_1"
126
+ },
127
+ "initializer_factor": 0.02,
128
+ "is_decoder": true,
129
+ "is_encoder_decoder": false,
130
+ "label2id": {
131
+ "LABEL_0": 0,
132
+ "LABEL_1": 1
133
+ },
134
+ "layerdrop": 0.0,
135
+ "length_penalty": 1.0,
136
+ "max_length": 20,
137
+ "max_position_embeddings": 4096,
138
+ "min_length": 0,
139
+ "model_type": "parler_tts_decoder",
140
+ "no_repeat_ngram_size": 0,
141
+ "num_attention_heads": 16,
142
+ "num_beam_groups": 1,
143
+ "num_beams": 1,
144
+ "num_codebooks": 9,
145
+ "num_cross_attention_key_value_heads": 16,
146
+ "num_hidden_layers": 24,
147
+ "num_key_value_heads": 16,
148
+ "num_return_sequences": 1,
149
+ "output_attentions": false,
150
+ "output_hidden_states": false,
151
+ "output_scores": false,
152
+ "pad_token_id": 1024,
153
+ "prefix": null,
154
+ "problem_type": null,
155
+ "pruned_heads": {},
156
+ "remove_invalid_values": false,
157
+ "repetition_penalty": 1.0,
158
+ "return_dict": true,
159
+ "return_dict_in_generate": false,
160
+ "rope_embeddings": false,
161
+ "rope_theta": 10000.0,
162
+ "scale_embedding": false,
163
+ "sep_token_id": null,
164
+ "suppress_tokens": null,
165
+ "task_specific_params": null,
166
+ "temperature": 1.0,
167
+ "tf_legacy_loss": false,
168
+ "tie_encoder_decoder": false,
169
+ "tie_word_embeddings": false,
170
+ "tokenizer_class": null,
171
+ "top_k": 50,
172
+ "top_p": 1.0,
173
+ "torch_dtype": "float32",
174
+ "torchscript": false,
175
+ "typical_p": 1.0,
176
+ "use_bfloat16": false,
177
+ "use_cache": true,
178
+ "use_fused_lm_heads": true,
179
+ "vocab_size": 1088
180
+ },
181
+ "decoder_start_token_id": 1025,
182
+ "is_encoder_decoder": true,
183
+ "model_type": "parler_tts",
184
+ "pad_token_id": 1024,
185
+ "prompt_cross_attention": false,
186
+ "text_encoder": {
187
+ "_name_or_path": "google/flan-t5-large",
188
+ "add_cross_attention": false,
189
+ "architectures": [
190
+ "T5ForConditionalGeneration"
191
+ ],
192
+ "bad_words_ids": null,
193
+ "begin_suppress_tokens": null,
194
+ "bos_token_id": null,
195
+ "chunk_size_feed_forward": 0,
196
+ "classifier_dropout": 0.0,
197
+ "cross_attention_hidden_size": null,
198
+ "d_ff": 2816,
199
+ "d_kv": 64,
200
+ "d_model": 1024,
201
+ "decoder_start_token_id": 0,
202
+ "dense_act_fn": "gelu_new",
203
+ "diversity_penalty": 0.0,
204
+ "do_sample": false,
205
+ "dropout_rate": 0.1,
206
+ "early_stopping": false,
207
+ "encoder_no_repeat_ngram_size": 0,
208
+ "eos_token_id": 1,
209
+ "exponential_decay_length_penalty": null,
210
+ "feed_forward_proj": "gated-gelu",
211
+ "finetuning_task": null,
212
+ "forced_bos_token_id": null,
213
+ "forced_eos_token_id": null,
214
+ "id2label": {
215
+ "0": "LABEL_0",
216
+ "1": "LABEL_1"
217
+ },
218
+ "initializer_factor": 1.0,
219
+ "is_decoder": false,
220
+ "is_encoder_decoder": true,
221
+ "is_gated_act": true,
222
+ "label2id": {
223
+ "LABEL_0": 0,
224
+ "LABEL_1": 1
225
+ },
226
+ "layer_norm_epsilon": 1e-06,
227
+ "length_penalty": 1.0,
228
+ "max_length": 20,
229
+ "min_length": 0,
230
+ "model_type": "t5",
231
+ "n_positions": 512,
232
+ "no_repeat_ngram_size": 0,
233
+ "num_beam_groups": 1,
234
+ "num_beams": 1,
235
+ "num_decoder_layers": 24,
236
+ "num_heads": 16,
237
+ "num_layers": 24,
238
+ "num_return_sequences": 1,
239
+ "output_attentions": false,
240
+ "output_hidden_states": false,
241
+ "output_past": true,
242
+ "output_scores": false,
243
+ "pad_token_id": 0,
244
+ "prefix": null,
245
+ "problem_type": null,
246
+ "pruned_heads": {},
247
+ "relative_attention_max_distance": 128,
248
+ "relative_attention_num_buckets": 32,
249
+ "remove_invalid_values": false,
250
+ "repetition_penalty": 1.0,
251
+ "return_dict": true,
252
+ "return_dict_in_generate": false,
253
+ "sep_token_id": null,
254
+ "suppress_tokens": null,
255
+ "task_specific_params": null,
256
+ "temperature": 1.0,
257
+ "tf_legacy_loss": false,
258
+ "tie_encoder_decoder": false,
259
+ "tie_word_embeddings": false,
260
+ "tokenizer_class": null,
261
+ "top_k": 50,
262
+ "top_p": 1.0,
263
+ "torch_dtype": null,
264
+ "torchscript": false,
265
+ "typical_p": 1.0,
266
+ "use_bfloat16": false,
267
+ "use_cache": true,
268
+ "vocab_size": 32128
269
+ },
270
+ "torch_dtype": "float32",
271
+ "transformers_version": "4.46.0.dev0",
272
+ "vocab_size": 90714
273
+ }
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:4269500ac2c4754ec1ffd320f5b33cf0ebba61be33db524ea1b18a63ec551ff9
3
+ size 3751321772