ylacombe commited on
Commit
455e0ea
·
verified ·
1 Parent(s): 0699841

Upload ParlerTTSForConditionalGeneration

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