Upload 7 files
Browse filesFiles changed (8)
- .gitattributes+1
- chat_template.jinjaAdded+7
- config.jsonAdded+529
- generation_config.jsonAdded+8
- model.safetensorsAdded+3
- processor_config.jsonAdded+116
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+31
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
1234567{% 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
You are a helpful assistant.<|im_end|>
{% endif %}<|im_start|>{{ message['role'] }}
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
{% 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|>
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
{% endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529{
"architectures": [
"Qwen2_5OmniForConditionalGeneration"
],
"dtype": "bfloat16",
"enable_audio_output": true,
"enable_talker": true,
"hidden_size": 3584,
"keys_to_ignore_at_inference": [
"past_key_values",
"hidden_states",
"attention_mask",
"hidden_states",
"attention_mask",
"hidden_states",
"attention_mask"
],
"model_type": "qwen2_5_omni",
"pad_token_id": 151643,
"quantization_config": {
"_load_in_4bit": true,
"_load_in_8bit": false,
"bnb_4bit_compute_dtype": "bfloat16",
"bnb_4bit_quant_storage": "uint8",
"bnb_4bit_quant_type": "nf4",
"bnb_4bit_use_double_quant": true,
"llm_int8_enable_fp32_cpu_offload": false,
"llm_int8_has_fp16_weight": false,
"llm_int8_skip_modules": null,
"llm_int8_threshold": 6.0,
"load_in_4bit": true,
"load_in_8bit": false,
"quant_method": "bitsandbytes"
},
"talker_config": {
"_name_or_path": "Qwen2.5-Omni-7B/talker",
"architectures": [
"Qwen2OmniTalkerForConditionalGeneration"
],
"attention_dropout": 0.0,
"audio_end_token_id": 151648,
"audio_start_token_id": 151647,
"audio_token_index": 151646,
"dtype": "bfloat16",
"embedding_size": 3584,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 896,
"image_token_index": 151655,
"init_std": 0.02,
"initializer_range": 0.02,
"intermediate_size": 18944,
"layer_types": [
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention"
],
"max_position_embeddings": 32768,
"max_window_layers": 28,
"model_type": "qwen2_5_omni_talker",
"num_attention_heads": 12,
"num_hidden_layers": 24,
"num_key_value_heads": 4,
"pad_token_id": null,
"position_id_per_seconds": 25,
"rms_norm_eps": 1e-06,
"rope_parameters": {
"mrope_section": [
16,
24,
24
],
"rope_theta": 1000000.0,
"rope_type": "default",
"type": "default"
},
"seconds_per_chunk": 2,
"sliding_window": null,
"spatial_merge_size": 2,
"tie_word_embeddings": false,
"tts_codec_end_token_id": 8294,
"tts_codec_mask_token_id": 8296,
"tts_codec_pad_token_id": 8292,
"tts_codec_start_token_id": 8293,
"tts_text_end_token_id": 151861,
"tts_text_pad_token_id": 151859,
"tts_text_start_token_id": 151860,
"use_cache": false,
"use_sliding_window": false,
"video_token_index": 151656,
"vision_end_token_id": 151653,
"vision_start_token_id": 151652,
"vocab_size": 8448
},
"thinker_config": {
"_name_or_path": "Qwen2.5-Omni-7B/thinker",
"architectures": [
"Qwen2OmniNaViTThinkerForConditionalGeneration"
],
"audio_config": {
"_name_or_path": "",
"activation_dropout": 0.0,
"activation_function": "gelu",
"add_cross_attention": false,
"architectures": null,
"attention_dropout": 0.0,
"bos_token_id": null,
"chunk_size_feed_forward": 0,
"cross_attention_hidden_size": null,
"d_model": 1280,
"decoder_start_token_id": null,
"dropout": 0.0,
"dtype": null,
"encoder_attention_heads": 20,
"encoder_ffn_dim": 5120,
"encoder_layerdrop": 0.0,
"encoder_layers": 32,
"eos_token_id": null,
"finetuning_task": null,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"init_std": 0.02,
"initializer_range": 0.02,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"max_source_positions": 1500,
"model_type": "qwen2_5_omni_audio_encoder",
"n_window": 100,
"num_hidden_layers": 32,
"num_mel_bins": 128,
"output_attentions": false,
"output_dim": 3584,
"output_hidden_states": false,
"pad_token_id": null,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"return_dict": true,
"scale_embedding": false,
"sep_token_id": null,
"task_specific_params": null,
"tf_legacy_loss": false,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"torchscript": false,
"use_bfloat16": false
},
"audio_end_token_id": 151648,
"audio_start_token_id": 151647,
"audio_token_index": 151646,
"bos_token_id": 151644,
"dtype": "bfloat16",
"eos_token_id": 151645,
"ignore_index": -100,
"image_token_index": 151655,
"init_std": 0.02,
"initializer_range": 0.02,
"model_type": "qwen2_5_omni_thinker",
"pad_token_id": 151643,
"position_id_per_seconds": 25,
"seconds_per_chunk": 2,
"text_config": {
"_name_or_path": "",
"add_cross_attention": false,
"architectures": null,
"attention_dropout": 0.0,
"bos_token_id": null,
"chunk_size_feed_forward": 0,
"cross_attention_hidden_size": null,
"decoder_start_token_id": null,
"dtype": null,
"eos_token_id": null,
"finetuning_task": null,
"hidden_act": "silu",
"hidden_size": 3584,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"init_std": 0.02,
"initializer_range": 0.02,
"intermediate_size": 18944,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"layer_types": [
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention"
],
"max_position_embeddings": 32768,
"max_window_layers": 28,
"model_type": "qwen2_5_omni_text",
"num_attention_heads": 28,
"num_hidden_layers": 28,
"num_key_value_heads": 4,
"output_attentions": false,
"output_hidden_states": false,
"pad_token_id": null,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"return_dict": true,
"rms_norm_eps": 1e-06,
"rope_parameters": {
"mrope_section": [
16,
24,
24
],
"rope_theta": 1000000.0,
"rope_type": "default",
"type": "default"
},
"sep_token_id": null,
"sliding_window": null,
"task_specific_params": null,
"tf_legacy_loss": false,
"tie_encoder_decoder": false,
"tie_word_embeddings": false,
"tokenizer_class": null,
"torchscript": false,
"use_bfloat16": false,
"use_cache": true,
"use_sliding_window": false,
"vocab_size": 152064
},
"tie_word_embeddings": false,
"user_token_id": 872,
"video_token_index": 151656,
"vision_config": {
"_name_or_path": "",
"add_cross_attention": false,
"architectures": null,
"bos_token_id": null,
"chunk_size_feed_forward": 0,
"cross_attention_hidden_size": null,
"decoder_start_token_id": null,
"depth": 32,
"dtype": null,
"embed_dim": 1280,
"eos_token_id": null,
"finetuning_task": null,
"fullatt_block_indexes": [
7,
15,
23,
31
],
"hidden_act": "silu",
"hidden_size": 1280,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"in_channels": 3,
"in_chans": 3,
"init_std": 0.02,
"initializer_range": 0.02,
"intermediate_size": 3420,
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"model_type": "qwen2_5_omni_vision_encoder",
"num_heads": 16,
"out_hidden_size": 3584,
"output_attentions": false,
"output_hidden_states": false,
"pad_token_id": null,
"patch_size": 14,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"return_dict": true,
"sep_token_id": null,
"spatial_merge_size": 2,
"spatial_patch_size": 14,
"task_specific_params": null,
"temporal_patch_size": 2,
"tf_legacy_loss": false,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"tokens_per_second": 25,
"torchscript": false,
"use_bfloat16": false,
"window_size": 112
},
"vision_end_token_id": 151653,
"vision_start_token_id": 151652,
"vision_token_id": 151654
},
"token2wav_config": {
"bigvgan_config": {
"_name_or_path": "",
"add_cross_attention": false,
"architectures": null,
"bos_token_id": null,
"chunk_size_feed_forward": 0,
"cross_attention_hidden_size": null,
"decoder_start_token_id": null,
"dtype": null,
"eos_token_id": null,
"finetuning_task": null,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"mel_dim": 80,
"model_type": "qwen2_5_omni_bigvgan",
"output_attentions": false,
"output_hidden_states": false,
"pad_token_id": null,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"resblock_dilation_sizes": [
[
1,
3,
5
],
[
1,
3,
5
],
[
1,
3,
5
]
],
"resblock_kernel_sizes": [
3,
7,
11
],
"return_dict": true,
"sep_token_id": null,
"task_specific_params": null,
"tf_legacy_loss": false,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"torchscript": false,
"upsample_initial_channel": 1536,
"upsample_kernel_sizes": [
11,
7,
4,
4,
4,
4
],
"upsample_rates": [
5,
3,
2,
2,
2,
2
],
"use_bfloat16": false,
"use_bias_at_final": false
},
"dit_config": {
"_name_or_path": "",
"add_cross_attention": false,
"architectures": null,
"block_size": 24,
"bos_token_id": null,
"chunk_size_feed_forward": 0,
"cross_attention_hidden_size": null,
"decoder_start_token_id": null,
"depth": 22,
"dim": 1024,
"dropout": 0.1,
"dtype": "float32",
"emb_dim": 512,
"enc_attention_channels": 64,
"enc_channels": [
256,
256,
256,
256,
768
],
"enc_dilations": [
1,
2,
3,
4,
1
],
"enc_dim": 128,
"enc_emb_dim": 192,
"enc_global_context": true,
"enc_kernel_sizes": [
5,
3,
3,
3,
1
],
"enc_lin_neurons": 192,
"enc_res2net_scale": 2,
"enc_se_channels": 64,
"eos_token_id": null,
"ff_mult": 2,
"finetuning_task": null,
"head_dim": 64,
"heads": 16,
"hidden_size": 1024,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"is_decoder": false,
"is_encoder_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"look_ahead_layers": [
10
],
"look_backward_layers": [
0,
20
],
"max_position_embeddings": 32768,
"mel_dim": 80,
"model_type": "qwen2_5_omni_dit",
"num_attention_heads": 16,
"num_embeds": 8193,
"num_hidden_layers": 22,
"output_attentions": false,
"output_hidden_states": false,
"pad_token_id": null,
"prefix": null,
"problem_type": null,
"pruned_heads": {},
"repeats": 2,
"return_dict": true,
"rope_parameters": {
"rope_theta": 10000.0,
"rope_type": "default"
},
"sep_token_id": null,
"task_specific_params": null,
"tf_legacy_loss": false,
"tie_encoder_decoder": false,
"tie_word_embeddings": true,
"tokenizer_class": null,
"torchscript": false,
"use_bfloat16": false
},
"dtype": "bfloat16",
"model_type": "qwen2_5_omni_token2wav",
"pad_token_id": 151643
},
"transformers_version": "5.1.0"
}12345678{
"_from_model_config": true,
"eos_token_id": [
151645,
151643
],
"transformers_version": "5.1.0"
}123version https://git-lfs.github.com/spec/v1oid sha256:75e3bf91ddbc2e8ab66a5f84300102fda1b5e281ec7fd5f16b89e25d5fc6940esize 6828061916123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116{
"feature_extractor": {
"chunk_length": 300,
"dither": 0.0,
"feature_extractor_type": "WhisperFeatureExtractor",
"feature_size": 128,
"hop_length": 160,
"image_mean": [
0.48145466,
0.4578275,
0.40821073
],
"image_processor_type": "Qwen2VLImageProcessor",
"image_std": [
0.26862954,
0.26130258,
0.27577711
],
"max_pixels": 12845056,
"merge_size": 2,
"min_pixels": 3136,
"n_fft": 400,
"n_samples": 4800000,
"nb_max_frames": 30000,
"padding_side": "right",
"padding_value": 0.0,
"patch_size": 14,
"return_attention_mask": true,
"sampling_rate": 16000,
"temporal_patch_size": 2
},
"image_processor": {
"chunk_length": 300,
"data_format": "channels_first",
"dither": 0.0,
"do_convert_rgb": true,
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"feature_size": 128,
"hop_length": 160,
"image_mean": [
0.48145466,
0.4578275,
0.40821073
],
"image_processor_type": "Qwen2VLImageProcessorFast",
"image_std": [
0.26862954,
0.26130258,
0.27577711
],
"merge_size": 2,
"n_fft": 400,
"n_samples": 4800000,
"nb_max_frames": 30000,
"padding_side": "right",
"padding_value": 0.0,
"patch_size": 14,
"resample": 3,
"rescale_factor": 0.00392156862745098,
"return_attention_mask": true,
"sampling_rate": 16000,
"size": {
"longest_edge": 12845056,
"shortest_edge": 3136
},
"temporal_patch_size": 2
},
"processor_class": "Qwen2_5OmniProcessor",
"video_processor": {
"chunk_length": 300,
"data_format": "channels_first",
"default_to_square": true,
"dither": 0.0,
"do_convert_rgb": true,
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"do_sample_frames": false,
"feature_extractor_type": "WhisperFeatureExtractor",
"feature_size": 128,
"hop_length": 160,
"image_mean": [
0.48145466,
0.4578275,
0.40821073
],
"image_processor_type": "Qwen2VLImageProcessor",
"image_std": [
0.26862954,
0.26130258,
0.27577711
],
"max_frames": 768,
"merge_size": 2,
"min_frames": 4,
"n_fft": 400,
"n_samples": 4800000,
"nb_max_frames": 30000,
"padding_side": "right",
"padding_value": 0.0,
"patch_size": 14,
"resample": 3,
"rescale_factor": 0.00392156862745098,
"return_attention_mask": true,
"return_metadata": false,
"sampling_rate": 16000,
"size": {
"longest_edge": 12845056,
"shortest_edge": 3136
},
"temporal_patch_size": 2,
"video_processor_type": "Qwen2VLVideoProcessor"
}
}123version https://git-lfs.github.com/spec/v1oid sha256:1ab7a851e5c63d5fafbfdac72e3b4a8d08613f6bbb06ee39036fdf870ef59c93size 1142186612345678910111213141516171819202122232425262728293031{
"add_prefix_space": false,
"audio_bos_token": "<|audio_bos|>",
"audio_eos_token": "<|audio_eos|>",
"audio_token": "<|AUDIO|>",
"backend": "tokenizers",
"bos_token": null,
"clean_up_tokenization_spaces": false,
"eos_token": "<|im_end|>",
"errors": "replace",
"image_token": "<|IMAGE|>",
"is_local": true,
"model_max_length": 32768,
"model_specific_special_tokens": {
"audio_bos_token": "<|audio_bos|>",
"audio_eos_token": "<|audio_eos|>",
"audio_token": "<|AUDIO|>",
"image_token": "<|IMAGE|>",
"video_token": "<|VIDEO|>",
"vision_bos_token": "<|vision_bos|>",
"vision_eos_token": "<|vision_eos|>"
},
"pad_token": "<|endoftext|>",
"processor_class": "Qwen2_5OmniProcessor",
"split_special_tokens": false,
"tokenizer_class": "Qwen2Tokenizer",
"unk_token": null,
"video_token": "<|VIDEO|>",
"vision_bos_token": "<|vision_bos|>",
"vision_eos_token": "<|vision_eos|>"
}.gitattributes+1
chat_template.jinjaAdded+7
config.jsonAdded+529
generation_config.jsonAdded+8
model.safetensorsAdded+3
processor_config.jsonAdded+116
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+31