Alexjiuqiaoyu commited on
Commit
9760a2d
·
verified ·
1 Parent(s): 3742c58

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +466 -71
config.json CHANGED
@@ -1,53 +1,35 @@
1
  {
2
  "architectures": [
3
- "Qwen2_5OmniThinkerForConditionalGeneration"
4
  ],
5
- "audio_config": {
6
- "activation_dropout": 0.0,
7
- "activation_function": "gelu",
8
- "attention_dropout": 0.0,
9
- "d_model": 1280,
10
- "dropout": 0.0,
11
- "encoder_attention_heads": 20,
12
- "encoder_ffn_dim": 5120,
13
- "encoder_layerdrop": 0.0,
14
- "encoder_layers": 32,
15
- "init_std": 0.02,
16
- "initializer_range": 0.02,
17
- "max_source_positions": 1500,
18
- "model_type": "qwen2_5_omni_audio_encoder",
19
- "n_window": 100,
20
- "num_hidden_layers": 32,
21
- "num_mel_bins": 128,
22
- "output_dim": 3584,
23
- "scale_embedding": false
24
- },
25
- "audio_end_token_id": 151648,
26
- "audio_start_token_id": 151647,
27
- "audio_token_index": 151646,
28
- "bos_token_id": 151644,
29
- "eos_token_id": 151645,
30
- "ignore_index": -100,
31
- "image_token_index": 151655,
32
- "init_std": 0.02,
33
- "initializer_range": 0.02,
34
- "model_type": "qwen2_5_omni_thinker",
35
- "pad_token_id": 151643,
36
- "position_id_per_seconds": 25,
37
- "seconds_per_chunk": 2,
38
- "text_config": {
39
  "attention_dropout": 0.0,
 
 
 
 
 
40
  "hidden_act": "silu",
41
- "hidden_size": 3584,
 
42
  "init_std": 0.02,
43
  "initializer_range": 0.02,
44
  "intermediate_size": 18944,
45
  "max_position_embeddings": 32768,
46
  "max_window_layers": 28,
47
- "model_type": "qwen2_5_omni_text",
48
- "num_attention_heads": 28,
49
- "num_hidden_layers": 28,
50
  "num_key_value_heads": 4,
 
51
  "rms_norm_eps": 1e-06,
52
  "rope_scaling": {
53
  "mrope_section": [
@@ -59,42 +41,455 @@
59
  "type": "default"
60
  },
61
  "rope_theta": 1000000.0,
 
62
  "sliding_window": 32768,
 
 
 
 
 
 
 
 
 
63
  "use_cache": true,
64
  "use_sliding_window": false,
65
- "vocab_size": 152064
 
 
 
66
  },
67
- "torch_dtype": "bfloat16",
68
- "transformers_version": "4.52.4",
69
- "user_token_id": 872,
70
- "video_token_index": 151656,
71
- "vision_config": {
72
- "depth": 32,
73
- "embed_dim": 1280,
74
- "fullatt_block_indexes": [
75
- 7,
76
- 15,
77
- 23,
78
- 31
79
  ],
80
- "hidden_act": "silu",
81
- "hidden_size": 1280,
82
- "in_channels": 3,
83
- "in_chans": 3,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  "init_std": 0.02,
85
- "initializer_range": 0.02,
86
- "intermediate_size": 3420,
87
- "model_type": "qwen2_5_omni_vision_encoder",
88
- "num_heads": 16,
89
- "out_hidden_size": 3584,
90
- "patch_size": 14,
91
- "spatial_merge_size": 2,
92
- "spatial_patch_size": 14,
93
- "temporal_patch_size": 2,
94
- "tokens_per_second": 25,
95
- "window_size": 112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  },
97
- "vision_end_token_id": 151653,
98
- "vision_start_token_id": 151652,
99
- "vision_token_id": 151654
100
- }
 
1
  {
2
  "architectures": [
3
+ "Qwen2_5OmniModel"
4
  ],
5
+ "enable_audio_output": true,
6
+ "enable_talker": true,
7
+ "model_type": "qwen2_5_omni",
8
+ "talker_config": {
9
+ "_attn_implementation_autoset": true,
10
+ "_name_or_path": "Qwen2.5-Omni-7B/talker",
11
+ "architectures": [
12
+ "Qwen2OmniTalkerForConditionalGeneration"
13
+ ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  "attention_dropout": 0.0,
15
+ "audio_end_token_id": 151648,
16
+ "audio_start_token_id": 151647,
17
+ "audio_token_index": 151646,
18
+ "embedding_size": 3584,
19
+ "head_dim": 128,
20
  "hidden_act": "silu",
21
+ "hidden_size": 896,
22
+ "image_token_index": 151655,
23
  "init_std": 0.02,
24
  "initializer_range": 0.02,
25
  "intermediate_size": 18944,
26
  "max_position_embeddings": 32768,
27
  "max_window_layers": 28,
28
+ "model_type": "qwen2_5_omni_talker",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 24,
31
  "num_key_value_heads": 4,
32
+ "position_id_per_seconds": 25,
33
  "rms_norm_eps": 1e-06,
34
  "rope_scaling": {
35
  "mrope_section": [
 
41
  "type": "default"
42
  },
43
  "rope_theta": 1000000.0,
44
+ "seconds_per_chunk": 2,
45
  "sliding_window": 32768,
46
+ "spatial_merge_size": 2,
47
+ "torch_dtype": "bfloat16",
48
+ "tts_codec_end_token_id": 8294,
49
+ "tts_codec_mask_token_id": 8296,
50
+ "tts_codec_pad_token_id": 8292,
51
+ "tts_codec_start_token_id": 8293,
52
+ "tts_text_end_token_id": 151861,
53
+ "tts_text_pad_token_id": 151859,
54
+ "tts_text_start_token_id": 151860,
55
  "use_cache": true,
56
  "use_sliding_window": false,
57
+ "video_token_index": 151656,
58
+ "vision_end_token_id": 151653,
59
+ "vision_start_token_id": 151652,
60
+ "vocab_size": 8448
61
  },
62
+ "thinker_config": {
63
+ "_attn_implementation_autoset": true,
64
+ "_name_or_path": "Qwen2.5-Omni-7B/thinker",
65
+ "architectures": [
66
+ "Qwen2OmniNaViTThinkerForConditionalGeneration"
 
 
 
 
 
 
 
67
  ],
68
+ "audio_config": {
69
+ "_attn_implementation_autoset": true,
70
+ "_name_or_path": "",
71
+ "activation_dropout": 0.0,
72
+ "activation_function": "gelu",
73
+ "add_cross_attention": false,
74
+ "architectures": null,
75
+ "attention_dropout": 0.0,
76
+ "bad_words_ids": null,
77
+ "begin_suppress_tokens": null,
78
+ "bos_token_id": null,
79
+ "chunk_size_feed_forward": 0,
80
+ "cross_attention_hidden_size": null,
81
+ "d_model": 1280,
82
+ "decoder_start_token_id": null,
83
+ "diversity_penalty": 0.0,
84
+ "do_sample": false,
85
+ "dropout": 0.0,
86
+ "early_stopping": false,
87
+ "encoder_attention_heads": 20,
88
+ "encoder_ffn_dim": 5120,
89
+ "encoder_layerdrop": 0.0,
90
+ "encoder_layers": 32,
91
+ "encoder_no_repeat_ngram_size": 0,
92
+ "eos_token_id": null,
93
+ "exponential_decay_length_penalty": null,
94
+ "finetuning_task": null,
95
+ "forced_bos_token_id": null,
96
+ "forced_eos_token_id": null,
97
+ "id2label": {
98
+ "0": "LABEL_0",
99
+ "1": "LABEL_1"
100
+ },
101
+ "init_std": 0.02,
102
+ "is_decoder": false,
103
+ "is_encoder_decoder": false,
104
+ "label2id": {
105
+ "LABEL_0": 0,
106
+ "LABEL_1": 1
107
+ },
108
+ "length_penalty": 1.0,
109
+ "max_length": 20,
110
+ "max_source_positions": 1500,
111
+ "min_length": 0,
112
+ "model_type": "qwen2_5_omni_audio_encoder",
113
+ "n_window": 100,
114
+ "no_repeat_ngram_size": 0,
115
+ "num_beam_groups": 1,
116
+ "num_beams": 1,
117
+ "num_hidden_layers": 32,
118
+ "num_mel_bins": 128,
119
+ "num_return_sequences": 1,
120
+ "output_attentions": false,
121
+ "output_dim": 3584,
122
+ "output_hidden_states": false,
123
+ "output_scores": false,
124
+ "pad_token_id": null,
125
+ "prefix": null,
126
+ "problem_type": null,
127
+ "pruned_heads": {},
128
+ "remove_invalid_values": false,
129
+ "repetition_penalty": 1.0,
130
+ "return_dict": true,
131
+ "return_dict_in_generate": false,
132
+ "scale_embedding": false,
133
+ "sep_token_id": null,
134
+ "suppress_tokens": null,
135
+ "task_specific_params": null,
136
+ "temperature": 1.0,
137
+ "tf_legacy_loss": false,
138
+ "tie_encoder_decoder": false,
139
+ "tie_word_embeddings": true,
140
+ "tokenizer_class": null,
141
+ "top_k": 50,
142
+ "top_p": 1.0,
143
+ "torch_dtype": null,
144
+ "torchscript": false,
145
+ "typical_p": 1.0,
146
+ "use_bfloat16": false
147
+ },
148
+ "text_config": {
149
+ "model_type": "qwen2_5_omni_text",
150
+ "hidden_act": "silu",
151
+ "hidden_size": 3584,
152
+ "init_std": 0.02,
153
+ "intermediate_size": 18944,
154
+ "vocab_size": 152064,
155
+ "num_attention_heads": 28,
156
+ "num_hidden_layers": 28,
157
+ "num_key_value_heads": 4,
158
+ "max_position_embeddings": 32768,
159
+ "max_window_layers": 28,
160
+ "rms_norm_eps": 1e-06,
161
+ "rope_scaling": {
162
+ "mrope_section": [
163
+ 16,
164
+ 24,
165
+ 24
166
+ ],
167
+ "rope_type": "default",
168
+ "type": "default"
169
+ },
170
+ "use_cache": true,
171
+ "rope_theta": 1000000.0,
172
+ "use_sliding_window": false,
173
+ "sliding_window": 32768,
174
+ "attention_dropout": 0.0,
175
+ "tie_word_embeddings": false
176
+ },
177
+ "audio_end_token_id": 151648,
178
+ "audio_start_token_id": 151647,
179
+ "audio_token_index": 151646,
180
+ "bos_token_id": 151644,
181
+ "eos_token_id": 151645,
182
+ "ignore_index": -100,
183
+ "image_token_index": 151655,
184
  "init_std": 0.02,
185
+ "model_type": "qwen2_5_omni_thinker",
186
+ "pad_token_id": 151643,
187
+ "position_id_per_seconds": 25,
188
+ "seconds_per_chunk": 2,
189
+ "torch_dtype": "bfloat16",
190
+ "user_token_id": 872,
191
+ "video_token_index": 151656,
192
+ "vision_config": {
193
+ "_attn_implementation_autoset": true,
194
+ "_name_or_path": "",
195
+ "add_cross_attention": false,
196
+ "architectures": null,
197
+ "bad_words_ids": null,
198
+ "begin_suppress_tokens": null,
199
+ "bos_token_id": null,
200
+ "chunk_size_feed_forward": 0,
201
+ "cross_attention_hidden_size": null,
202
+ "decoder_start_token_id": null,
203
+ "depth": 32,
204
+ "diversity_penalty": 0.0,
205
+ "do_sample": false,
206
+ "early_stopping": false,
207
+ "embed_dim": 1280,
208
+ "encoder_no_repeat_ngram_size": 0,
209
+ "eos_token_id": null,
210
+ "exponential_decay_length_penalty": null,
211
+ "finetuning_task": null,
212
+ "forced_bos_token_id": null,
213
+ "forced_eos_token_id": null,
214
+ "fullatt_block_indexes": [
215
+ 7,
216
+ 15,
217
+ 23,
218
+ 31
219
+ ],
220
+ "hidden_act": "silu",
221
+ "hidden_size": 1280,
222
+ "id2label": {
223
+ "0": "LABEL_0",
224
+ "1": "LABEL_1"
225
+ },
226
+ "in_channels": 3,
227
+ "in_chans": 3,
228
+ "init_std": 0.02,
229
+ "intermediate_size": 3420,
230
+ "is_decoder": false,
231
+ "is_encoder_decoder": false,
232
+ "label2id": {
233
+ "LABEL_0": 0,
234
+ "LABEL_1": 1
235
+ },
236
+ "length_penalty": 1.0,
237
+ "max_length": 20,
238
+ "min_length": 0,
239
+ "model_type": "qwen2_5_omni_vision_encoder",
240
+ "no_repeat_ngram_size": 0,
241
+ "num_beam_groups": 1,
242
+ "num_beams": 1,
243
+ "num_heads": 16,
244
+ "num_return_sequences": 1,
245
+ "out_hidden_size": 3584,
246
+ "output_attentions": false,
247
+ "output_hidden_states": false,
248
+ "output_scores": false,
249
+ "pad_token_id": null,
250
+ "patch_size": 14,
251
+ "prefix": null,
252
+ "problem_type": null,
253
+ "pruned_heads": {},
254
+ "remove_invalid_values": false,
255
+ "repetition_penalty": 1.0,
256
+ "return_dict": true,
257
+ "return_dict_in_generate": false,
258
+ "sep_token_id": null,
259
+ "spatial_merge_size": 2,
260
+ "spatial_patch_size": 14,
261
+ "suppress_tokens": null,
262
+ "task_specific_params": null,
263
+ "temperature": 1.0,
264
+ "temporal_patch_size": 2,
265
+ "tf_legacy_loss": false,
266
+ "tie_encoder_decoder": false,
267
+ "tie_word_embeddings": true,
268
+ "tokenizer_class": null,
269
+ "tokens_per_second": 25,
270
+ "top_k": 50,
271
+ "top_p": 1.0,
272
+ "torch_dtype": null,
273
+ "torchscript": false,
274
+ "typical_p": 1.0,
275
+ "use_bfloat16": false,
276
+ "window_size": 112
277
+ },
278
+ "vision_end_token_id": 151653,
279
+ "vision_start_token_id": 151652,
280
+ "vision_token_id": 151654
281
+ },
282
+ "token2wav_config": {
283
+ "_attn_implementation_autoset": true,
284
+ "bigvgan_config": {
285
+ "_attn_implementation_autoset": true,
286
+ "_name_or_path": "",
287
+ "add_cross_attention": false,
288
+ "architectures": null,
289
+ "bad_words_ids": null,
290
+ "begin_suppress_tokens": null,
291
+ "bos_token_id": null,
292
+ "chunk_size_feed_forward": 0,
293
+ "cross_attention_hidden_size": null,
294
+ "decoder_start_token_id": null,
295
+ "diversity_penalty": 0.0,
296
+ "do_sample": false,
297
+ "early_stopping": false,
298
+ "encoder_no_repeat_ngram_size": 0,
299
+ "eos_token_id": null,
300
+ "exponential_decay_length_penalty": null,
301
+ "finetuning_task": null,
302
+ "forced_bos_token_id": null,
303
+ "forced_eos_token_id": null,
304
+ "id2label": {
305
+ "0": "LABEL_0",
306
+ "1": "LABEL_1"
307
+ },
308
+ "is_decoder": false,
309
+ "is_encoder_decoder": false,
310
+ "label2id": {
311
+ "LABEL_0": 0,
312
+ "LABEL_1": 1
313
+ },
314
+ "length_penalty": 1.0,
315
+ "max_length": 20,
316
+ "mel_dim": 80,
317
+ "min_length": 0,
318
+ "model_type": "qwen2_5_omni_bigvgan",
319
+ "no_repeat_ngram_size": 0,
320
+ "num_beam_groups": 1,
321
+ "num_beams": 1,
322
+ "num_return_sequences": 1,
323
+ "output_attentions": false,
324
+ "output_hidden_states": false,
325
+ "output_scores": false,
326
+ "pad_token_id": null,
327
+ "prefix": null,
328
+ "problem_type": null,
329
+ "pruned_heads": {},
330
+ "remove_invalid_values": false,
331
+ "repetition_penalty": 1.0,
332
+ "resblock_dilation_sizes": [
333
+ [
334
+ 1,
335
+ 3,
336
+ 5
337
+ ],
338
+ [
339
+ 1,
340
+ 3,
341
+ 5
342
+ ],
343
+ [
344
+ 1,
345
+ 3,
346
+ 5
347
+ ]
348
+ ],
349
+ "resblock_kernel_sizes": [
350
+ 3,
351
+ 7,
352
+ 11
353
+ ],
354
+ "return_dict": true,
355
+ "return_dict_in_generate": false,
356
+ "sep_token_id": null,
357
+ "suppress_tokens": null,
358
+ "task_specific_params": null,
359
+ "temperature": 1.0,
360
+ "tf_legacy_loss": false,
361
+ "tie_encoder_decoder": false,
362
+ "tie_word_embeddings": true,
363
+ "tokenizer_class": null,
364
+ "top_k": 50,
365
+ "top_p": 1.0,
366
+ "torch_dtype": null,
367
+ "torchscript": false,
368
+ "typical_p": 1.0,
369
+ "upsample_initial_channel": 1536,
370
+ "upsample_kernel_sizes": [
371
+ 11,
372
+ 7,
373
+ 4,
374
+ 4,
375
+ 4,
376
+ 4
377
+ ],
378
+ "upsample_rates": [
379
+ 5,
380
+ 3,
381
+ 2,
382
+ 2,
383
+ 2,
384
+ 2
385
+ ],
386
+ "use_bfloat16": false,
387
+ "use_bias_at_final": false
388
+ },
389
+ "dit_config": {
390
+ "_attn_implementation_autoset": true,
391
+ "_name_or_path": "",
392
+ "add_cross_attention": false,
393
+ "architectures": null,
394
+ "bad_words_ids": null,
395
+ "begin_suppress_tokens": null,
396
+ "bos_token_id": null,
397
+ "chunk_size_feed_forward": 0,
398
+ "cross_attention_hidden_size": null,
399
+ "decoder_start_token_id": null,
400
+ "depth": 22,
401
+ "dim": 1024,
402
+ "diversity_penalty": 0.0,
403
+ "do_sample": false,
404
+ "dropout": 0.1,
405
+ "early_stopping": false,
406
+ "emb_dim": 512,
407
+ "enc_attention_channels": 64,
408
+ "enc_channels": [
409
+ 256,
410
+ 256,
411
+ 256,
412
+ 256,
413
+ 768
414
+ ],
415
+ "enc_dilations": [
416
+ 1,
417
+ 2,
418
+ 3,
419
+ 4,
420
+ 1
421
+ ],
422
+ "enc_dim": 128,
423
+ "enc_emb_dim": 192,
424
+ "enc_global_context": true,
425
+ "enc_kernel_sizes": [
426
+ 5,
427
+ 3,
428
+ 3,
429
+ 3,
430
+ 1
431
+ ],
432
+ "enc_lin_neurons": 192,
433
+ "enc_res2net_scale": 2,
434
+ "enc_se_channels": 64,
435
+ "encoder_no_repeat_ngram_size": 0,
436
+ "eos_token_id": null,
437
+ "exponential_decay_length_penalty": null,
438
+ "ff_mult": 2,
439
+ "finetuning_task": null,
440
+ "forced_bos_token_id": null,
441
+ "forced_eos_token_id": null,
442
+ "head_dim": 64,
443
+ "heads": 16,
444
+ "id2label": {
445
+ "0": "LABEL_0",
446
+ "1": "LABEL_1"
447
+ },
448
+ "is_decoder": false,
449
+ "is_encoder_decoder": false,
450
+ "label2id": {
451
+ "LABEL_0": 0,
452
+ "LABEL_1": 1
453
+ },
454
+ "length_penalty": 1.0,
455
+ "max_length": 20,
456
+ "mel_dim": 80,
457
+ "min_length": 0,
458
+ "model_type": "qwen2_5_omni_dit",
459
+ "no_repeat_ngram_size": 0,
460
+ "num_beam_groups": 1,
461
+ "num_beams": 1,
462
+ "num_embeds": 8193,
463
+ "num_return_sequences": 1,
464
+ "output_attentions": false,
465
+ "output_hidden_states": false,
466
+ "output_scores": false,
467
+ "pad_token_id": null,
468
+ "prefix": null,
469
+ "problem_type": null,
470
+ "pruned_heads": {},
471
+ "remove_invalid_values": false,
472
+ "repeats": 2,
473
+ "repetition_penalty": 1.0,
474
+ "return_dict": true,
475
+ "return_dict_in_generate": false,
476
+ "sep_token_id": null,
477
+ "suppress_tokens": null,
478
+ "task_specific_params": null,
479
+ "temperature": 1.0,
480
+ "tf_legacy_loss": false,
481
+ "tie_encoder_decoder": false,
482
+ "tie_word_embeddings": true,
483
+ "tokenizer_class": null,
484
+ "top_k": 50,
485
+ "top_p": 1.0,
486
+ "torch_dtype": "float32",
487
+ "torchscript": false,
488
+ "typical_p": 1.0,
489
+ "use_bfloat16": false
490
+ },
491
+ "model_type": "qwen2_5_omni_token2wav"
492
  },
493
+ "torch_dtype": "bfloat16",
494
+ "transformers_version": "4.50.0.dev0"
495
+ }