wolfofbackstreet commited on
Commit
d500c14
·
verified ·
1 Parent(s): 4f8e790

Add 4-bit quantized model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|AUDIO|>": 151646,
5
+ "<|IMAGE|>": 151655,
6
+ "<|VIDEO|>": 151656,
7
+ "<|audio_bos|>": 151647,
8
+ "<|audio_eos|>": 151648,
9
+ "<|box_end|>": 151649,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|quad_end|>": 151651,
19
+ "<|quad_start|>": 151650,
20
+ "<|repo_name|>": 151663,
21
+ "<|vision_bos|>": 151652,
22
+ "<|vision_eos|>": 151653,
23
+ "<|vision_pad|>": 151654
24
+ }
chat_template.jinja ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {% set audio_count = namespace(value=0) %}{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
2
+ You are a helpful assistant.<|im_end|>
3
+ {% endif %}<|im_start|>{{ message['role'] }}
4
+ {% if message['content'] is string %}{{ message['content'] }}<|im_end|>
5
+ {% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_bos|><|IMAGE|><|vision_eos|>{% elif content['type'] == 'audio' or 'audio' in content or 'audio_url' in content %}{% set audio_count.value = audio_count.value + 1 %}{% if add_audio_id %}Audio {{ audio_count.value }}: {% endif %}<|audio_bos|><|AUDIO|><|audio_eos|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_bos|><|VIDEO|><|vision_eos|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
6
+ {% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
7
+ {% endif %}
config.json ADDED
@@ -0,0 +1,580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2_5OmniForConditionalGeneration"
4
+ ],
5
+ "enable_audio_output": true,
6
+ "enable_talker": true,
7
+ "model_type": "qwen2_5_omni",
8
+ "quantization_config": {
9
+ "_load_in_4bit": true,
10
+ "_load_in_8bit": false,
11
+ "bnb_4bit_compute_dtype": "bfloat16",
12
+ "bnb_4bit_quant_storage": "uint8",
13
+ "bnb_4bit_quant_type": "nf4",
14
+ "bnb_4bit_use_double_quant": true,
15
+ "llm_int8_enable_fp32_cpu_offload": false,
16
+ "llm_int8_has_fp16_weight": false,
17
+ "llm_int8_skip_modules": null,
18
+ "llm_int8_threshold": 6.0,
19
+ "load_in_4bit": true,
20
+ "load_in_8bit": false,
21
+ "quant_method": "bitsandbytes"
22
+ },
23
+ "talker_config": {
24
+ "_attn_implementation_autoset": true,
25
+ "architectures": [
26
+ "Qwen2OmniTalkerForConditionalGeneration"
27
+ ],
28
+ "attention_dropout": 0.0,
29
+ "audio_end_token_id": 151648,
30
+ "audio_start_token_id": 151647,
31
+ "audio_token_index": 151646,
32
+ "embedding_size": 2048,
33
+ "head_dim": 64,
34
+ "hidden_act": "silu",
35
+ "hidden_size": 896,
36
+ "image_token_index": 151655,
37
+ "init_std": 0.02,
38
+ "initializer_range": 0.02,
39
+ "intermediate_size": 4864,
40
+ "max_position_embeddings": 32768,
41
+ "max_window_layers": 28,
42
+ "model_type": "qwen2_5_omni_talker",
43
+ "num_attention_heads": 14,
44
+ "num_hidden_layers": 24,
45
+ "num_key_value_heads": 2,
46
+ "position_id_per_seconds": 25,
47
+ "rms_norm_eps": 1e-06,
48
+ "rope_scaling": {
49
+ "mrope_section": [
50
+ 16,
51
+ 16,
52
+ 0
53
+ ],
54
+ "rope_type": "default",
55
+ "type": "default"
56
+ },
57
+ "rope_theta": 1000000.0,
58
+ "seconds_per_chunk": 2,
59
+ "sliding_window": 32768,
60
+ "spatial_merge_size": 2,
61
+ "torch_dtype": "bfloat16",
62
+ "tts_codec_end_token_id": 8294,
63
+ "tts_codec_mask_token_id": 8296,
64
+ "tts_codec_pad_token_id": 8292,
65
+ "tts_codec_start_token_id": 8293,
66
+ "tts_text_end_token_id": 151861,
67
+ "tts_text_pad_token_id": 151859,
68
+ "tts_text_start_token_id": 151860,
69
+ "use_cache": true,
70
+ "use_sliding_window": false,
71
+ "video_token_index": 151656,
72
+ "vision_end_token_id": 151653,
73
+ "vision_start_token_id": 151652,
74
+ "vocab_size": 8448
75
+ },
76
+ "thinker_config": {
77
+ "_attn_implementation_autoset": true,
78
+ "architectures": [
79
+ "Qwen2OmniNaViTThinkerForConditionalGeneration"
80
+ ],
81
+ "audio_config": {
82
+ "_attn_implementation_autoset": true,
83
+ "activation_dropout": 0.0,
84
+ "activation_function": "gelu",
85
+ "add_cross_attention": false,
86
+ "architectures": null,
87
+ "attention_dropout": 0.0,
88
+ "bad_words_ids": null,
89
+ "begin_suppress_tokens": null,
90
+ "bos_token_id": null,
91
+ "chunk_size_feed_forward": 0,
92
+ "cross_attention_hidden_size": null,
93
+ "d_model": 1280,
94
+ "decoder_start_token_id": null,
95
+ "diversity_penalty": 0.0,
96
+ "do_sample": false,
97
+ "dropout": 0.0,
98
+ "early_stopping": false,
99
+ "encoder_attention_heads": 20,
100
+ "encoder_ffn_dim": 5120,
101
+ "encoder_layerdrop": 0.0,
102
+ "encoder_layers": 32,
103
+ "encoder_no_repeat_ngram_size": 0,
104
+ "eos_token_id": null,
105
+ "exponential_decay_length_penalty": null,
106
+ "finetuning_task": null,
107
+ "forced_bos_token_id": null,
108
+ "forced_eos_token_id": null,
109
+ "id2label": {
110
+ "0": "LABEL_0",
111
+ "1": "LABEL_1"
112
+ },
113
+ "init_std": 0.02,
114
+ "initializer_range": 0.02,
115
+ "is_decoder": false,
116
+ "is_encoder_decoder": false,
117
+ "label2id": {
118
+ "LABEL_0": 0,
119
+ "LABEL_1": 1
120
+ },
121
+ "length_penalty": 1.0,
122
+ "max_length": 20,
123
+ "max_source_positions": 1500,
124
+ "min_length": 0,
125
+ "model_type": "qwen2_5_omni_audio_encoder",
126
+ "n_window": 100,
127
+ "no_repeat_ngram_size": 0,
128
+ "num_beam_groups": 1,
129
+ "num_beams": 1,
130
+ "num_hidden_layers": 32,
131
+ "num_mel_bins": 128,
132
+ "num_return_sequences": 1,
133
+ "output_attentions": false,
134
+ "output_dim": 2048,
135
+ "output_hidden_states": false,
136
+ "output_scores": false,
137
+ "pad_token_id": null,
138
+ "prefix": null,
139
+ "problem_type": null,
140
+ "pruned_heads": {},
141
+ "remove_invalid_values": false,
142
+ "repetition_penalty": 1.0,
143
+ "return_dict": true,
144
+ "return_dict_in_generate": false,
145
+ "scale_embedding": false,
146
+ "sep_token_id": null,
147
+ "suppress_tokens": null,
148
+ "task_specific_params": null,
149
+ "temperature": 1.0,
150
+ "tf_legacy_loss": false,
151
+ "tie_encoder_decoder": false,
152
+ "tie_word_embeddings": true,
153
+ "tokenizer_class": null,
154
+ "top_k": 50,
155
+ "top_p": 1.0,
156
+ "torch_dtype": null,
157
+ "torchscript": false,
158
+ "typical_p": 1.0,
159
+ "use_bfloat16": false
160
+ },
161
+ "audio_end_token_id": 151648,
162
+ "audio_start_token_id": 151647,
163
+ "audio_token_index": 151646,
164
+ "bos_token_id": 151644,
165
+ "eos_token_id": 151645,
166
+ "ignore_index": -100,
167
+ "image_token_index": 151655,
168
+ "init_std": 0.02,
169
+ "initializer_range": 0.02,
170
+ "model_type": "qwen2_5_omni_thinker",
171
+ "pad_token_id": 151643,
172
+ "position_id_per_seconds": 25,
173
+ "seconds_per_chunk": 2,
174
+ "text_config": {
175
+ "_attn_implementation_autoset": false,
176
+ "add_cross_attention": false,
177
+ "architectures": null,
178
+ "attention_dropout": 0.0,
179
+ "bad_words_ids": null,
180
+ "begin_suppress_tokens": null,
181
+ "bos_token_id": null,
182
+ "chunk_size_feed_forward": 0,
183
+ "cross_attention_hidden_size": null,
184
+ "decoder_start_token_id": null,
185
+ "diversity_penalty": 0.0,
186
+ "do_sample": false,
187
+ "early_stopping": false,
188
+ "encoder_no_repeat_ngram_size": 0,
189
+ "eos_token_id": null,
190
+ "exponential_decay_length_penalty": null,
191
+ "finetuning_task": null,
192
+ "forced_bos_token_id": null,
193
+ "forced_eos_token_id": null,
194
+ "hidden_act": "silu",
195
+ "hidden_size": 2048,
196
+ "id2label": {
197
+ "0": "LABEL_0",
198
+ "1": "LABEL_1"
199
+ },
200
+ "init_std": 0.02,
201
+ "initializer_range": 0.02,
202
+ "intermediate_size": 11008,
203
+ "is_decoder": false,
204
+ "is_encoder_decoder": false,
205
+ "label2id": {
206
+ "LABEL_0": 0,
207
+ "LABEL_1": 1
208
+ },
209
+ "length_penalty": 1.0,
210
+ "max_length": 20,
211
+ "max_position_embeddings": 32768,
212
+ "max_window_layers": 70,
213
+ "min_length": 0,
214
+ "model_type": "qwen2_5_omni_text",
215
+ "no_repeat_ngram_size": 0,
216
+ "num_attention_heads": 16,
217
+ "num_beam_groups": 1,
218
+ "num_beams": 1,
219
+ "num_hidden_layers": 36,
220
+ "num_key_value_heads": 2,
221
+ "num_return_sequences": 1,
222
+ "output_attentions": false,
223
+ "output_hidden_states": false,
224
+ "output_scores": false,
225
+ "pad_token_id": null,
226
+ "prefix": null,
227
+ "problem_type": null,
228
+ "pruned_heads": {},
229
+ "remove_invalid_values": false,
230
+ "repetition_penalty": 1.0,
231
+ "return_dict": true,
232
+ "return_dict_in_generate": false,
233
+ "rms_norm_eps": 1e-06,
234
+ "rope_scaling": {
235
+ "mrope_section": [
236
+ 16,
237
+ 24,
238
+ 24
239
+ ],
240
+ "rope_type": "default",
241
+ "type": "default"
242
+ },
243
+ "rope_theta": 1000000.0,
244
+ "sep_token_id": null,
245
+ "sliding_window": 32768,
246
+ "suppress_tokens": null,
247
+ "task_specific_params": null,
248
+ "temperature": 1.0,
249
+ "tf_legacy_loss": false,
250
+ "tie_encoder_decoder": false,
251
+ "tie_word_embeddings": false,
252
+ "tokenizer_class": null,
253
+ "top_k": 50,
254
+ "top_p": 1.0,
255
+ "torch_dtype": null,
256
+ "torchscript": false,
257
+ "typical_p": 1.0,
258
+ "use_bfloat16": false,
259
+ "use_cache": true,
260
+ "use_sliding_window": false,
261
+ "vocab_size": 151936
262
+ },
263
+ "torch_dtype": "bfloat16",
264
+ "user_token_id": 872,
265
+ "video_token_index": 151656,
266
+ "vision_config": {
267
+ "_attn_implementation_autoset": true,
268
+ "add_cross_attention": false,
269
+ "architectures": null,
270
+ "bad_words_ids": null,
271
+ "begin_suppress_tokens": null,
272
+ "bos_token_id": null,
273
+ "chunk_size_feed_forward": 0,
274
+ "cross_attention_hidden_size": null,
275
+ "decoder_start_token_id": null,
276
+ "depth": 32,
277
+ "diversity_penalty": 0.0,
278
+ "do_sample": false,
279
+ "early_stopping": false,
280
+ "embed_dim": 1280,
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
+ "fullatt_block_indexes": [
288
+ 7,
289
+ 15,
290
+ 23,
291
+ 31
292
+ ],
293
+ "hidden_act": "silu",
294
+ "hidden_size": 1280,
295
+ "id2label": {
296
+ "0": "LABEL_0",
297
+ "1": "LABEL_1"
298
+ },
299
+ "in_channels": 3,
300
+ "in_chans": 3,
301
+ "init_std": 0.02,
302
+ "initializer_range": 0.02,
303
+ "intermediate_size": 3420,
304
+ "is_decoder": false,
305
+ "is_encoder_decoder": false,
306
+ "label2id": {
307
+ "LABEL_0": 0,
308
+ "LABEL_1": 1
309
+ },
310
+ "length_penalty": 1.0,
311
+ "max_length": 20,
312
+ "min_length": 0,
313
+ "model_type": "qwen2_5_omni_vision_encoder",
314
+ "no_repeat_ngram_size": 0,
315
+ "num_beam_groups": 1,
316
+ "num_beams": 1,
317
+ "num_heads": 16,
318
+ "num_return_sequences": 1,
319
+ "out_hidden_size": 2048,
320
+ "output_attentions": false,
321
+ "output_hidden_states": false,
322
+ "output_scores": false,
323
+ "pad_token_id": null,
324
+ "patch_size": 14,
325
+ "prefix": null,
326
+ "problem_type": null,
327
+ "pruned_heads": {},
328
+ "remove_invalid_values": false,
329
+ "repetition_penalty": 1.0,
330
+ "return_dict": true,
331
+ "return_dict_in_generate": false,
332
+ "sep_token_id": null,
333
+ "spatial_merge_size": 2,
334
+ "spatial_patch_size": 14,
335
+ "suppress_tokens": null,
336
+ "task_specific_params": null,
337
+ "temperature": 1.0,
338
+ "temporal_patch_size": 2,
339
+ "tf_legacy_loss": false,
340
+ "tie_encoder_decoder": false,
341
+ "tie_word_embeddings": true,
342
+ "tokenizer_class": null,
343
+ "tokens_per_second": 25,
344
+ "top_k": 50,
345
+ "top_p": 1.0,
346
+ "torch_dtype": null,
347
+ "torchscript": false,
348
+ "typical_p": 1.0,
349
+ "use_bfloat16": false,
350
+ "window_size": 112
351
+ },
352
+ "vision_end_token_id": 151653,
353
+ "vision_start_token_id": 151652,
354
+ "vision_token_id": 151654
355
+ },
356
+ "token2wav_config": {
357
+ "_attn_implementation_autoset": true,
358
+ "bigvgan_config": {
359
+ "_attn_implementation_autoset": true,
360
+ "add_cross_attention": false,
361
+ "architectures": null,
362
+ "bad_words_ids": null,
363
+ "begin_suppress_tokens": null,
364
+ "bos_token_id": null,
365
+ "chunk_size_feed_forward": 0,
366
+ "cross_attention_hidden_size": null,
367
+ "decoder_start_token_id": null,
368
+ "diversity_penalty": 0.0,
369
+ "do_sample": false,
370
+ "early_stopping": false,
371
+ "encoder_no_repeat_ngram_size": 0,
372
+ "eos_token_id": null,
373
+ "exponential_decay_length_penalty": null,
374
+ "finetuning_task": null,
375
+ "forced_bos_token_id": null,
376
+ "forced_eos_token_id": null,
377
+ "id2label": {
378
+ "0": "LABEL_0",
379
+ "1": "LABEL_1"
380
+ },
381
+ "is_decoder": false,
382
+ "is_encoder_decoder": false,
383
+ "label2id": {
384
+ "LABEL_0": 0,
385
+ "LABEL_1": 1
386
+ },
387
+ "length_penalty": 1.0,
388
+ "max_length": 20,
389
+ "mel_dim": 80,
390
+ "min_length": 0,
391
+ "model_type": "qwen2_5_omni_bigvgan",
392
+ "no_repeat_ngram_size": 0,
393
+ "num_beam_groups": 1,
394
+ "num_beams": 1,
395
+ "num_return_sequences": 1,
396
+ "output_attentions": false,
397
+ "output_hidden_states": false,
398
+ "output_scores": false,
399
+ "pad_token_id": null,
400
+ "prefix": null,
401
+ "problem_type": null,
402
+ "pruned_heads": {},
403
+ "remove_invalid_values": false,
404
+ "repetition_penalty": 1.0,
405
+ "resblock_dilation_sizes": [
406
+ [
407
+ 1,
408
+ 3,
409
+ 5
410
+ ],
411
+ [
412
+ 1,
413
+ 3,
414
+ 5
415
+ ],
416
+ [
417
+ 1,
418
+ 3,
419
+ 5
420
+ ]
421
+ ],
422
+ "resblock_kernel_sizes": [
423
+ 3,
424
+ 7,
425
+ 11
426
+ ],
427
+ "return_dict": true,
428
+ "return_dict_in_generate": false,
429
+ "sep_token_id": null,
430
+ "suppress_tokens": null,
431
+ "task_specific_params": null,
432
+ "temperature": 1.0,
433
+ "tf_legacy_loss": false,
434
+ "tie_encoder_decoder": false,
435
+ "tie_word_embeddings": true,
436
+ "tokenizer_class": null,
437
+ "top_k": 50,
438
+ "top_p": 1.0,
439
+ "torch_dtype": null,
440
+ "torchscript": false,
441
+ "typical_p": 1.0,
442
+ "upsample_initial_channel": 1536,
443
+ "upsample_kernel_sizes": [
444
+ 11,
445
+ 7,
446
+ 4,
447
+ 4,
448
+ 4,
449
+ 4
450
+ ],
451
+ "upsample_rates": [
452
+ 5,
453
+ 3,
454
+ 2,
455
+ 2,
456
+ 2,
457
+ 2
458
+ ],
459
+ "use_bfloat16": false,
460
+ "use_bias_at_final": false
461
+ },
462
+ "dit_config": {
463
+ "_attn_implementation_autoset": true,
464
+ "add_cross_attention": false,
465
+ "architectures": null,
466
+ "bad_words_ids": null,
467
+ "begin_suppress_tokens": null,
468
+ "block_size": 24,
469
+ "bos_token_id": null,
470
+ "chunk_size_feed_forward": 0,
471
+ "cross_attention_hidden_size": null,
472
+ "decoder_start_token_id": null,
473
+ "depth": 22,
474
+ "dim": 1024,
475
+ "diversity_penalty": 0.0,
476
+ "do_sample": false,
477
+ "dropout": 0.1,
478
+ "early_stopping": false,
479
+ "emb_dim": 512,
480
+ "enc_attention_channels": 64,
481
+ "enc_channels": [
482
+ 256,
483
+ 256,
484
+ 256,
485
+ 256,
486
+ 768
487
+ ],
488
+ "enc_dilations": [
489
+ 1,
490
+ 2,
491
+ 3,
492
+ 4,
493
+ 1
494
+ ],
495
+ "enc_dim": 128,
496
+ "enc_emb_dim": 192,
497
+ "enc_global_context": true,
498
+ "enc_kernel_sizes": [
499
+ 5,
500
+ 3,
501
+ 3,
502
+ 3,
503
+ 1
504
+ ],
505
+ "enc_lin_neurons": 192,
506
+ "enc_res2net_scale": 2,
507
+ "enc_se_channels": 64,
508
+ "encoder_no_repeat_ngram_size": 0,
509
+ "eos_token_id": null,
510
+ "exponential_decay_length_penalty": null,
511
+ "ff_mult": 2,
512
+ "finetuning_task": null,
513
+ "forced_bos_token_id": null,
514
+ "forced_eos_token_id": null,
515
+ "head_dim": 64,
516
+ "heads": 16,
517
+ "hidden_size": 1024,
518
+ "id2label": {
519
+ "0": "LABEL_0",
520
+ "1": "LABEL_1"
521
+ },
522
+ "is_decoder": false,
523
+ "is_encoder_decoder": false,
524
+ "label2id": {
525
+ "LABEL_0": 0,
526
+ "LABEL_1": 1
527
+ },
528
+ "length_penalty": 1.0,
529
+ "look_ahead_layers": [
530
+ 10
531
+ ],
532
+ "look_backward_layers": [
533
+ 0,
534
+ 20
535
+ ],
536
+ "max_length": 20,
537
+ "max_position_embeddings": 32768,
538
+ "mel_dim": 80,
539
+ "min_length": 0,
540
+ "model_type": "qwen2_5_omni_dit",
541
+ "no_repeat_ngram_size": 0,
542
+ "num_attention_heads": 16,
543
+ "num_beam_groups": 1,
544
+ "num_beams": 1,
545
+ "num_embeds": 8193,
546
+ "num_hidden_layers": 22,
547
+ "num_return_sequences": 1,
548
+ "output_attentions": false,
549
+ "output_hidden_states": false,
550
+ "output_scores": false,
551
+ "pad_token_id": null,
552
+ "prefix": null,
553
+ "problem_type": null,
554
+ "pruned_heads": {},
555
+ "remove_invalid_values": false,
556
+ "repeats": 2,
557
+ "repetition_penalty": 1.0,
558
+ "return_dict": true,
559
+ "return_dict_in_generate": false,
560
+ "rope_theta": 10000.0,
561
+ "sep_token_id": null,
562
+ "suppress_tokens": null,
563
+ "task_specific_params": null,
564
+ "temperature": 1.0,
565
+ "tf_legacy_loss": false,
566
+ "tie_encoder_decoder": false,
567
+ "tie_word_embeddings": true,
568
+ "tokenizer_class": null,
569
+ "top_k": 50,
570
+ "top_p": 1.0,
571
+ "torch_dtype": "float32",
572
+ "torchscript": false,
573
+ "typical_p": 1.0,
574
+ "use_bfloat16": false
575
+ },
576
+ "model_type": "qwen2_5_omni_token2wav"
577
+ },
578
+ "torch_dtype": "bfloat16",
579
+ "transformers_version": "4.52.0.dev0"
580
+ }
generation_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "transformers_version": "4.52.0.dev0"
4
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d586f627eca96e3305531efd53baad9c186be832ab9396723e04c377c33e9a2
3
+ size 3538953486
preprocessor_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 300,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 128,
6
+ "hop_length": 160,
7
+ "image_mean": [
8
+ 0.48145466,
9
+ 0.4578275,
10
+ 0.40821073
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "max_pixels": 12845056,
19
+ "merge_size": 2,
20
+ "min_pixels": 3136,
21
+ "n_fft": 400,
22
+ "n_samples": 4800000,
23
+ "nb_max_frames": 30000,
24
+ "padding_side": "right",
25
+ "padding_value": 0.0,
26
+ "patch_size": 14,
27
+ "processor_class": "Qwen2_5OmniProcessor",
28
+ "return_attention_mask": true,
29
+ "sampling_rate": 16000,
30
+ "temporal_patch_size": 2
31
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|AUDIO|>",
6
+ "<|audio_bos|>",
7
+ "<|audio_eos|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_bos|>",
12
+ "<|vision_eos|>",
13
+ "<|vision_pad|>",
14
+ "<|IMAGE|>",
15
+ "<|VIDEO|>"
16
+ ],
17
+ "audio_bos_token": "<|audio_bos|>",
18
+ "audio_eos_token": "<|audio_eos|>",
19
+ "audio_token": "<|AUDIO|>",
20
+ "eos_token": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "image_token": "<|IMAGE|>",
28
+ "pad_token": {
29
+ "content": "<|endoftext|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ },
35
+ "video_token": "<|VIDEO|>",
36
+ "vision_bos_token": "<|vision_bos|>",
37
+ "vision_eos_token": "<|vision_eos|>"
38
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8441917e39ae0244e06d704b95b3124795cec478e297f9afac39ba670d7e9d99
3
+ size 11421870
tokenizer_config.json ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|AUDIO|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|audio_bos|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|audio_eos|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_bos|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_eos|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|IMAGE|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|VIDEO|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "151657": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "151658": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "151659": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "151660": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "151661": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "151662": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "151663": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "151664": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ }
180
+ },
181
+ "additional_special_tokens": [
182
+ "<|im_start|>",
183
+ "<|im_end|>",
184
+ "<|AUDIO|>",
185
+ "<|audio_bos|>",
186
+ "<|audio_eos|>",
187
+ "<|box_end|>",
188
+ "<|quad_start|>",
189
+ "<|quad_end|>",
190
+ "<|vision_bos|>",
191
+ "<|vision_eos|>",
192
+ "<|vision_pad|>",
193
+ "<|IMAGE|>",
194
+ "<|VIDEO|>"
195
+ ],
196
+ "audio_bos_token": "<|audio_bos|>",
197
+ "audio_eos_token": "<|audio_eos|>",
198
+ "audio_token": "<|AUDIO|>",
199
+ "bos_token": null,
200
+ "clean_up_tokenization_spaces": false,
201
+ "eos_token": "<|im_end|>",
202
+ "errors": "replace",
203
+ "extra_special_tokens": {
204
+ "audio_bos_token": "<|audio_bos|>",
205
+ "audio_eos_token": "<|audio_eos|>",
206
+ "audio_token": "<|AUDIO|>",
207
+ "image_token": "<|IMAGE|>",
208
+ "video_token": "<|VIDEO|>",
209
+ "vision_bos_token": "<|vision_bos|>",
210
+ "vision_eos_token": "<|vision_eos|>"
211
+ },
212
+ "image_token": "<|IMAGE|>",
213
+ "model_max_length": 32768,
214
+ "pad_token": "<|endoftext|>",
215
+ "processor_class": "Qwen2_5OmniProcessor",
216
+ "split_special_tokens": false,
217
+ "tokenizer_class": "Qwen2Tokenizer",
218
+ "unk_token": null,
219
+ "video_token": "<|VIDEO|>",
220
+ "vision_bos_token": "<|vision_bos|>",
221
+ "vision_eos_token": "<|vision_eos|>"
222
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff