ylacombe HF staff commited on
Commit
ffeecb7
1 Parent(s): 082f302

Upload config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +65 -242
config.json CHANGED
@@ -1,343 +1,166 @@
1
  {
2
- "_commit_hash": null,
3
- "architectures": [
4
- "BarkModel"
5
- ],
6
  "coarse_acoustics_config": {
7
- "_name_or_path": "",
8
- "add_cross_attention": false,
9
- "architectures": [
10
- "BarkCoarseModel"
11
- ],
12
  "bad_words_ids": null,
13
  "begin_suppress_tokens": null,
14
- "bias": false,
15
- "block_size": 1024,
16
  "bos_token_id": null,
17
- "chunk_size_feed_forward": 0,
18
- "cross_attention_hidden_size": null,
 
 
19
  "decoder_start_token_id": null,
20
  "diversity_penalty": 0.0,
21
- "do_sample": false,
22
- "dropout": 0.0,
23
  "early_stopping": false,
24
  "encoder_no_repeat_ngram_size": 0,
 
25
  "eos_token_id": null,
 
 
26
  "exponential_decay_length_penalty": null,
27
- "finetuning_task": null,
28
  "forced_bos_token_id": null,
 
29
  "forced_eos_token_id": null,
30
- "hidden_size": 768,
31
- "id2label": {
32
- "0": "LABEL_0",
33
- "1": "LABEL_1"
34
- },
35
- "initializer_range": 0.02,
36
- "input_vocab_size": 12096,
37
- "is_decoder": false,
38
- "is_encoder_decoder": false,
39
- "label2id": {
40
- "LABEL_0": 0,
41
- "LABEL_1": 1
42
- },
43
  "length_penalty": 1.0,
 
 
44
  "max_length": 20,
 
 
45
  "min_length": 0,
46
- "model_type": "coarse_acoustics",
47
- "n_codes_given": 1,
48
- "n_codes_total": 8,
49
  "no_repeat_ngram_size": 0,
50
  "num_beam_groups": 1,
51
  "num_beams": 1,
52
- "num_heads": 12,
53
- "num_layers": 12,
54
  "num_return_sequences": 1,
55
  "output_attentions": false,
56
  "output_hidden_states": false,
57
  "output_scores": false,
58
- "output_vocab_size": 12096,
59
  "pad_token_id": null,
60
- "prefix": null,
61
- "problem_type": null,
62
- "pruned_heads": {},
63
  "remove_invalid_values": false,
 
64
  "repetition_penalty": 1.0,
65
- "return_dict": true,
66
  "return_dict_in_generate": false,
67
- "sep_token_id": null,
68
  "suppress_tokens": null,
69
- "task_specific_params": null,
70
- "temperature": 1.0,
71
- "tf_legacy_loss": false,
72
- "tie_encoder_decoder": false,
73
- "tie_word_embeddings": true,
74
- "tokenizer_class": null,
75
  "top_k": 50,
76
  "top_p": 1.0,
77
- "torch_dtype": "float32",
78
- "torchscript": false,
79
  "transformers_version": "4.31.0.dev0",
80
  "typical_p": 1.0,
81
- "use_bfloat16": false,
82
  "use_cache": true
83
  },
84
- "codec_config": {
85
- "_name_or_path": "ArthurZ/encodec_24khz",
86
- "add_cross_attention": false,
87
- "architectures": [
88
- "EncodecModel"
89
- ],
90
- "audio_channels": 1,
91
- "bad_words_ids": null,
92
- "begin_suppress_tokens": null,
93
- "bos_token_id": null,
94
- "chunk_length_s": null,
95
- "chunk_size_feed_forward": 0,
96
- "codebook_dim": 128,
97
- "codebook_size": 1024,
98
- "compress": 2,
99
- "cross_attention_hidden_size": null,
100
- "decoder_start_token_id": null,
101
- "dilation_growth_rate": 2,
102
- "diversity_penalty": 0.0,
103
- "do_sample": false,
104
- "early_stopping": false,
105
- "encoder_no_repeat_ngram_size": 0,
106
- "eos_token_id": null,
107
- "exponential_decay_length_penalty": null,
108
- "finetuning_task": null,
109
- "forced_bos_token_id": null,
110
- "forced_eos_token_id": null,
111
- "hidden_size": 128,
112
- "id2label": {
113
- "0": "LABEL_0",
114
- "1": "LABEL_1"
115
- },
116
- "is_decoder": false,
117
- "is_encoder_decoder": false,
118
- "kernel_size": 7,
119
- "label2id": {
120
- "LABEL_0": 0,
121
- "LABEL_1": 1
122
- },
123
- "last_kernel_size": 7,
124
- "length_penalty": 1.0,
125
- "max_length": 20,
126
- "min_length": 0,
127
- "model_type": "encodec",
128
- "no_repeat_ngram_size": 0,
129
- "norm_type": "weight_norm",
130
- "normalize": false,
131
- "num_beam_groups": 1,
132
- "num_beams": 1,
133
- "num_filters": 32,
134
- "num_lstm_layers": 2,
135
- "num_residual_layers": 1,
136
- "num_return_sequences": 1,
137
- "output_attentions": false,
138
- "output_hidden_states": false,
139
- "output_scores": false,
140
- "overlap": null,
141
- "pad_mode": "reflect",
142
- "pad_token_id": null,
143
- "prefix": null,
144
- "problem_type": null,
145
- "pruned_heads": {},
146
- "remove_invalid_values": false,
147
- "repetition_penalty": 1.0,
148
- "residual_kernel_size": 3,
149
- "return_dict": true,
150
- "return_dict_in_generate": false,
151
- "sampling_rate": 24000,
152
- "sep_token_id": null,
153
- "suppress_tokens": null,
154
- "target_bandwidths": [
155
- 1.5,
156
- 3.0,
157
- 6.0,
158
- 12.0,
159
- 24.0
160
- ],
161
- "task_specific_params": null,
162
- "temperature": 1.0,
163
- "tf_legacy_loss": false,
164
- "tie_encoder_decoder": false,
165
- "tie_word_embeddings": true,
166
- "tokenizer_class": null,
167
- "top_k": 50,
168
- "top_p": 1.0,
169
- "torch_dtype": "float32",
170
- "torchscript": false,
171
- "transformers_version": "4.31.0.dev0",
172
- "trim_right_ratio": 1.0,
173
- "typical_p": 1.0,
174
- "upsampling_ratios": [
175
- 8,
176
- 5,
177
- 4,
178
- 2
179
- ],
180
- "use_bfloat16": false,
181
- "use_causal_conv": true
182
- },
183
  "fine_acoustics_config": {
184
- "_name_or_path": "",
185
- "add_cross_attention": false,
186
- "architectures": [
187
- "BarkFineModel"
188
- ],
189
  "bad_words_ids": null,
190
  "begin_suppress_tokens": null,
191
- "bias": false,
192
- "block_size": 1024,
193
  "bos_token_id": null,
194
- "chunk_size_feed_forward": 0,
195
- "cross_attention_hidden_size": null,
196
  "decoder_start_token_id": null,
197
  "diversity_penalty": 0.0,
198
  "do_sample": false,
199
- "dropout": 0.0,
200
  "early_stopping": false,
201
  "encoder_no_repeat_ngram_size": 0,
 
202
  "eos_token_id": null,
 
 
203
  "exponential_decay_length_penalty": null,
204
- "finetuning_task": null,
205
  "forced_bos_token_id": null,
 
206
  "forced_eos_token_id": null,
207
- "hidden_size": 768,
208
- "id2label": {
209
- "0": "LABEL_0",
210
- "1": "LABEL_1"
211
- },
212
- "initializer_range": 0.02,
213
- "input_vocab_size": 1056,
214
- "is_decoder": false,
215
- "is_encoder_decoder": false,
216
- "label2id": {
217
- "LABEL_0": 0,
218
- "LABEL_1": 1
219
- },
220
  "length_penalty": 1.0,
 
 
221
  "max_length": 20,
 
 
222
  "min_length": 0,
223
- "model_type": "fine_acoustics",
224
- "n_codes_given": 1,
225
- "n_codes_total": 8,
226
  "no_repeat_ngram_size": 0,
227
  "num_beam_groups": 1,
228
  "num_beams": 1,
229
- "num_heads": 12,
230
- "num_layers": 12,
231
  "num_return_sequences": 1,
232
  "output_attentions": false,
233
  "output_hidden_states": false,
234
  "output_scores": false,
235
- "output_vocab_size": 1056,
236
  "pad_token_id": null,
237
- "prefix": null,
238
- "problem_type": null,
239
- "pruned_heads": {},
240
  "remove_invalid_values": false,
 
241
  "repetition_penalty": 1.0,
242
- "return_dict": true,
243
  "return_dict_in_generate": false,
244
- "sep_token_id": null,
245
  "suppress_tokens": null,
246
- "task_specific_params": null,
247
- "temperature": 1.0,
248
- "tf_legacy_loss": false,
249
- "tie_encoder_decoder": false,
250
- "tie_word_embeddings": true,
251
- "tokenizer_class": null,
252
  "top_k": 50,
253
  "top_p": 1.0,
254
- "torch_dtype": "float32",
255
- "torchscript": false,
256
  "transformers_version": "4.31.0.dev0",
257
  "typical_p": 1.0,
258
- "use_bfloat16": false,
259
  "use_cache": true
260
  },
261
- "initializer_range": 0.02,
262
  "model_type": "bark",
 
263
  "semantic_config": {
264
- "_name_or_path": "",
265
- "add_cross_attention": false,
266
- "architectures": [
267
- "BarkSemanticModel"
268
- ],
269
  "bad_words_ids": null,
270
  "begin_suppress_tokens": null,
271
- "bias": false,
272
- "block_size": 1024,
273
  "bos_token_id": null,
274
- "chunk_size_feed_forward": 0,
275
- "cross_attention_hidden_size": null,
276
  "decoder_start_token_id": null,
277
  "diversity_penalty": 0.0,
278
- "do_sample": false,
279
- "dropout": 0.0,
280
  "early_stopping": false,
281
  "encoder_no_repeat_ngram_size": 0,
282
- "eos_token_id": null,
 
 
 
283
  "exponential_decay_length_penalty": null,
284
- "finetuning_task": null,
285
  "forced_bos_token_id": null,
 
286
  "forced_eos_token_id": null,
287
- "hidden_size": 768,
288
- "id2label": {
289
- "0": "LABEL_0",
290
- "1": "LABEL_1"
291
- },
292
- "initializer_range": 0.02,
293
- "input_vocab_size": 129600,
294
- "is_decoder": false,
295
- "is_encoder_decoder": false,
296
- "label2id": {
297
- "LABEL_0": 0,
298
- "LABEL_1": 1
299
- },
300
  "length_penalty": 1.0,
 
301
  "max_length": 20,
 
 
302
  "min_length": 0,
303
- "model_type": "semantic",
304
- "n_codes_given": 1,
305
- "n_codes_total": 8,
306
  "no_repeat_ngram_size": 0,
307
  "num_beam_groups": 1,
308
  "num_beams": 1,
309
- "num_heads": 12,
310
- "num_layers": 12,
311
  "num_return_sequences": 1,
312
  "output_attentions": false,
313
  "output_hidden_states": false,
314
  "output_scores": false,
315
- "output_vocab_size": 10048,
316
  "pad_token_id": null,
317
- "prefix": null,
318
- "problem_type": null,
319
- "pruned_heads": {},
320
  "remove_invalid_values": false,
 
321
  "repetition_penalty": 1.0,
322
- "return_dict": true,
323
  "return_dict_in_generate": false,
324
- "sep_token_id": null,
 
 
 
325
  "suppress_tokens": null,
326
- "task_specific_params": null,
327
- "temperature": 1.0,
328
- "tf_legacy_loss": false,
329
- "tie_encoder_decoder": false,
330
- "tie_word_embeddings": true,
331
- "tokenizer_class": null,
332
  "top_k": 50,
333
  "top_p": 1.0,
334
- "torch_dtype": "float32",
335
- "torchscript": false,
336
  "transformers_version": "4.31.0.dev0",
337
  "typical_p": 1.0,
338
- "use_bfloat16": false,
339
  "use_cache": true
340
- },
341
- "torch_dtype": "float32",
342
- "transformers_version": null
343
  }
 
1
  {
 
 
 
 
2
  "coarse_acoustics_config": {
3
+ "_from_model_config": false,
 
 
 
 
4
  "bad_words_ids": null,
5
  "begin_suppress_tokens": null,
 
 
6
  "bos_token_id": null,
7
+ "coarse_infer_token": 12050,
8
+ "coarse_rate_hz": 75,
9
+ "coarse_semantic_pad_token": 12048,
10
+ "constraints": null,
11
  "decoder_start_token_id": null,
12
  "diversity_penalty": 0.0,
13
+ "do_sample": true,
 
14
  "early_stopping": false,
15
  "encoder_no_repeat_ngram_size": 0,
16
+ "encoder_repetition_penalty": 1.0,
17
  "eos_token_id": null,
18
+ "epsilon_cutoff": 0.0,
19
+ "eta_cutoff": 0.0,
20
  "exponential_decay_length_penalty": null,
21
+ "force_words_ids": null,
22
  "forced_bos_token_id": null,
23
+ "forced_decoder_ids": null,
24
  "forced_eos_token_id": null,
25
+ "generation_kwargs": {},
 
 
 
 
 
 
 
 
 
 
 
 
26
  "length_penalty": 1.0,
27
+ "max_coarse_history": 630,
28
+ "max_coarse_input_length": 256,
29
  "max_length": 20,
30
+ "max_new_tokens": null,
31
+ "max_time": null,
32
  "min_length": 0,
33
+ "min_new_tokens": null,
34
+ "n_coarse_codebooks": 2,
 
35
  "no_repeat_ngram_size": 0,
36
  "num_beam_groups": 1,
37
  "num_beams": 1,
 
 
38
  "num_return_sequences": 1,
39
  "output_attentions": false,
40
  "output_hidden_states": false,
41
  "output_scores": false,
 
42
  "pad_token_id": null,
43
+ "penalty_alpha": null,
 
 
44
  "remove_invalid_values": false,
45
+ "renormalize_logits": true,
46
  "repetition_penalty": 1.0,
 
47
  "return_dict_in_generate": false,
48
+ "sliding_window_len": 60,
49
  "suppress_tokens": null,
50
+ "temperature": 0.7,
 
 
 
 
 
51
  "top_k": 50,
52
  "top_p": 1.0,
 
 
53
  "transformers_version": "4.31.0.dev0",
54
  "typical_p": 1.0,
 
55
  "use_cache": true
56
  },
57
+ "codebook_size": 1024,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  "fine_acoustics_config": {
59
+ "_from_model_config": false,
 
 
 
 
60
  "bad_words_ids": null,
61
  "begin_suppress_tokens": null,
 
 
62
  "bos_token_id": null,
63
+ "constraints": null,
 
64
  "decoder_start_token_id": null,
65
  "diversity_penalty": 0.0,
66
  "do_sample": false,
 
67
  "early_stopping": false,
68
  "encoder_no_repeat_ngram_size": 0,
69
+ "encoder_repetition_penalty": 1.0,
70
  "eos_token_id": null,
71
+ "epsilon_cutoff": 0.0,
72
+ "eta_cutoff": 0.0,
73
  "exponential_decay_length_penalty": null,
74
+ "force_words_ids": null,
75
  "forced_bos_token_id": null,
76
+ "forced_decoder_ids": null,
77
  "forced_eos_token_id": null,
78
+ "generation_kwargs": {},
 
 
 
 
 
 
 
 
 
 
 
 
79
  "length_penalty": 1.0,
80
+ "max_fine_history_length": 512,
81
+ "max_fine_input_length": 1024,
82
  "max_length": 20,
83
+ "max_new_tokens": null,
84
+ "max_time": null,
85
  "min_length": 0,
86
+ "min_new_tokens": null,
87
+ "n_fine_codebooks": 8,
 
88
  "no_repeat_ngram_size": 0,
89
  "num_beam_groups": 1,
90
  "num_beams": 1,
 
 
91
  "num_return_sequences": 1,
92
  "output_attentions": false,
93
  "output_hidden_states": false,
94
  "output_scores": false,
 
95
  "pad_token_id": null,
96
+ "penalty_alpha": null,
 
 
97
  "remove_invalid_values": false,
98
+ "renormalize_logits": false,
99
  "repetition_penalty": 1.0,
 
100
  "return_dict_in_generate": false,
 
101
  "suppress_tokens": null,
102
+ "temperature": 0.5,
 
 
 
 
 
103
  "top_k": 50,
104
  "top_p": 1.0,
 
 
105
  "transformers_version": "4.31.0.dev0",
106
  "typical_p": 1.0,
 
107
  "use_cache": true
108
  },
 
109
  "model_type": "bark",
110
+ "sample_rate": 24000,
111
  "semantic_config": {
112
+ "_from_model_config": false,
 
 
 
 
113
  "bad_words_ids": null,
114
  "begin_suppress_tokens": null,
 
 
115
  "bos_token_id": null,
116
+ "constraints": null,
 
117
  "decoder_start_token_id": null,
118
  "diversity_penalty": 0.0,
119
+ "do_sample": true,
 
120
  "early_stopping": false,
121
  "encoder_no_repeat_ngram_size": 0,
122
+ "encoder_repetition_penalty": 1.0,
123
+ "eos_token_id": 10000,
124
+ "epsilon_cutoff": 0.0,
125
+ "eta_cutoff": 0.0,
126
  "exponential_decay_length_penalty": null,
127
+ "force_words_ids": null,
128
  "forced_bos_token_id": null,
129
+ "forced_decoder_ids": null,
130
  "forced_eos_token_id": null,
131
+ "generation_kwargs": {},
 
 
 
 
 
 
 
 
 
 
 
 
132
  "length_penalty": 1.0,
133
+ "max_input_semantic_length": 256,
134
  "max_length": 20,
135
+ "max_new_tokens": 768,
136
+ "max_time": null,
137
  "min_length": 0,
138
+ "min_new_tokens": null,
 
 
139
  "no_repeat_ngram_size": 0,
140
  "num_beam_groups": 1,
141
  "num_beams": 1,
 
 
142
  "num_return_sequences": 1,
143
  "output_attentions": false,
144
  "output_hidden_states": false,
145
  "output_scores": false,
 
146
  "pad_token_id": null,
147
+ "penalty_alpha": null,
 
 
148
  "remove_invalid_values": false,
149
+ "renormalize_logits": true,
150
  "repetition_penalty": 1.0,
 
151
  "return_dict_in_generate": false,
152
+ "semantic_infer_token": 129599,
153
+ "semantic_pad_token": 10000,
154
+ "semantic_rate_hz": 49.9,
155
+ "semantic_vocab_size": 10000,
156
  "suppress_tokens": null,
157
+ "temperature": 0.7,
158
+ "text_encoding_offset": 10048,
159
+ "text_pad_token": 129595,
 
 
 
160
  "top_k": 50,
161
  "top_p": 1.0,
 
 
162
  "transformers_version": "4.31.0.dev0",
163
  "typical_p": 1.0,
 
164
  "use_cache": true
165
+ }
 
 
166
  }