CLIWorks commited on
Commit
e3526df
·
verified ·
1 Parent(s): 5c9f12f

Upload 10 files

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 %}
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% 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\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% 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|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
3
+ }
config.json ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2_5OmniForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "enable_audio_output": false,
7
+ "enable_talker": false,
8
+ "hidden_size": 896,
9
+ "intermediate_size": 2432,
10
+ "model_type": "qwen2_5_omni",
11
+ "num_attention_heads": 14,
12
+ "num_hidden_layers": 18,
13
+ "num_key_value_heads": 2,
14
+ "talker_config": {},
15
+ "thinker_config": {
16
+ "_attn_implementation_autoset": true,
17
+ "architectures": [
18
+ "Qwen2OmniNaViTThinkerForConditionalGeneration"
19
+ ],
20
+ "audio_config": {
21
+ "_attn_implementation_autoset": true,
22
+ "_name_or_path": "",
23
+ "activation_dropout": 0.0,
24
+ "activation_function": "gelu",
25
+ "add_cross_attention": false,
26
+ "architectures": null,
27
+ "attention_dropout": 0.0,
28
+ "bos_token_id": null,
29
+ "chunk_size_feed_forward": 0,
30
+ "cross_attention_hidden_size": null,
31
+ "d_model": 256,
32
+ "decoder_start_token_id": null,
33
+ "dropout": 0.0,
34
+ "dtype": null,
35
+ "encoder_attention_heads": 4,
36
+ "encoder_ffn_dim": 1024,
37
+ "encoder_layerdrop": 0.0,
38
+ "encoder_layers": 8,
39
+ "eos_token_id": null,
40
+ "finetuning_task": null,
41
+ "id2label": {
42
+ "0": "LABEL_0",
43
+ "1": "LABEL_1"
44
+ },
45
+ "init_std": 0.02,
46
+ "initializer_range": 0.02,
47
+ "is_decoder": false,
48
+ "is_encoder_decoder": false,
49
+ "label2id": {
50
+ "LABEL_0": "LABEL_0",
51
+ "LABEL_1": "LABEL_1"
52
+ },
53
+ "max_source_positions": 1500,
54
+ "model_type": "qwen2_5_omni_audio_encoder",
55
+ "n_window": 100,
56
+ "num_mel_bins": 128,
57
+ "output_attentions": false,
58
+ "output_dim": 896,
59
+ "output_hidden_states": false,
60
+ "pad_token_id": null,
61
+ "prefix": null,
62
+ "problem_type": null,
63
+ "pruned_heads": {},
64
+ "return_dict": true,
65
+ "scale_embedding": false,
66
+ "sep_token_id": null,
67
+ "task_specific_params": null,
68
+ "tf_legacy_loss": false,
69
+ "tie_encoder_decoder": false,
70
+ "tie_word_embeddings": true,
71
+ "tokenizer_class": null,
72
+ "torchscript": false,
73
+ "use_bfloat16": false
74
+ },
75
+ "audio_end_token_id": 151648,
76
+ "audio_start_token_id": 151647,
77
+ "audio_token_index": 151646,
78
+ "bos_token_id": 151644,
79
+ "dtype": "bfloat16",
80
+ "eos_token_id": 151645,
81
+ "ignore_index": -100,
82
+ "image_token_index": 151655,
83
+ "init_std": 0.02,
84
+ "initializer_range": 0.02,
85
+ "model_type": "qwen2_5_omni_thinker",
86
+ "pad_token_id": 151643,
87
+ "position_id_per_seconds": 25,
88
+ "seconds_per_chunk": 2,
89
+ "text_config": {
90
+ "_attn_implementation_autoset": false,
91
+ "_name_or_path": "",
92
+ "add_cross_attention": false,
93
+ "architectures": null,
94
+ "attention_dropout": 0.0,
95
+ "bos_token_id": null,
96
+ "chunk_size_feed_forward": 0,
97
+ "cross_attention_hidden_size": null,
98
+ "decoder_start_token_id": null,
99
+ "dtype": null,
100
+ "eos_token_id": null,
101
+ "finetuning_task": null,
102
+ "hidden_act": "silu",
103
+ "hidden_size": 896,
104
+ "id2label": {
105
+ "0": "LABEL_0",
106
+ "1": "LABEL_1"
107
+ },
108
+ "init_std": 0.02,
109
+ "initializer_range": 0.02,
110
+ "intermediate_size": 2432,
111
+ "is_decoder": false,
112
+ "is_encoder_decoder": false,
113
+ "label2id": {
114
+ "LABEL_0": "LABEL_0",
115
+ "LABEL_1": "LABEL_1"
116
+ },
117
+ "layer_types": [
118
+ "full_attention",
119
+ "full_attention",
120
+ "full_attention",
121
+ "full_attention",
122
+ "full_attention",
123
+ "full_attention",
124
+ "full_attention",
125
+ "full_attention",
126
+ "full_attention",
127
+ "full_attention",
128
+ "full_attention",
129
+ "full_attention",
130
+ "full_attention",
131
+ "full_attention",
132
+ "full_attention",
133
+ "full_attention",
134
+ "full_attention",
135
+ "full_attention"
136
+ ],
137
+ "max_position_embeddings": 32768,
138
+ "max_window_layers": 28,
139
+ "model_type": "qwen2_5_omni_text",
140
+ "mrope_section": [
141
+ 10,
142
+ 10,
143
+ 20
144
+ ],
145
+ "num_attention_heads": 14,
146
+ "num_hidden_layers": 18,
147
+ "num_key_value_heads": 2,
148
+ "output_attentions": false,
149
+ "output_hidden_states": false,
150
+ "pad_token_id": null,
151
+ "prefix": null,
152
+ "problem_type": null,
153
+ "pruned_heads": {},
154
+ "return_dict": true,
155
+ "rms_norm_eps": 1e-06,
156
+ "rope_parameters": {
157
+ "mrope_section": [
158
+ 10,
159
+ 10,
160
+ 20
161
+ ],
162
+ "rope_theta": 1000000.0,
163
+ "rope_type": "default"
164
+ },
165
+ "sep_token_id": null,
166
+ "sliding_window": null,
167
+ "task_specific_params": null,
168
+ "tf_legacy_loss": false,
169
+ "tie_encoder_decoder": false,
170
+ "tie_word_embeddings": false,
171
+ "tokenizer_class": null,
172
+ "torchscript": false,
173
+ "use_bfloat16": false,
174
+ "use_cache": true,
175
+ "use_sliding_window": false,
176
+ "vocab_size": 32000
177
+ },
178
+ "tie_word_embeddings": false,
179
+ "user_token_id": 872,
180
+ "video_token_index": 151656,
181
+ "vision_config": {
182
+ "_attn_implementation_autoset": true,
183
+ "_name_or_path": "",
184
+ "add_cross_attention": false,
185
+ "architectures": null,
186
+ "bos_token_id": null,
187
+ "chunk_size_feed_forward": 0,
188
+ "cross_attention_hidden_size": null,
189
+ "decoder_start_token_id": null,
190
+ "depth": 12,
191
+ "dtype": null,
192
+ "embed_dim": 512,
193
+ "eos_token_id": null,
194
+ "finetuning_task": null,
195
+ "fullatt_block_indexes": [
196
+ 3,
197
+ 7,
198
+ 11
199
+ ],
200
+ "hidden_act": "silu",
201
+ "hidden_size": 512,
202
+ "id2label": {
203
+ "0": "LABEL_0",
204
+ "1": "LABEL_1"
205
+ },
206
+ "in_channels": 3,
207
+ "in_chans": 3,
208
+ "init_std": 0.02,
209
+ "initializer_range": 0.02,
210
+ "intermediate_size": 2048,
211
+ "is_decoder": false,
212
+ "is_encoder_decoder": false,
213
+ "label2id": {
214
+ "LABEL_0": "LABEL_0",
215
+ "LABEL_1": "LABEL_1"
216
+ },
217
+ "model_type": "qwen2_5_omni_vision_encoder",
218
+ "num_heads": 8,
219
+ "out_hidden_size": 896,
220
+ "output_attentions": false,
221
+ "output_hidden_states": false,
222
+ "pad_token_id": null,
223
+ "patch_size": 14,
224
+ "prefix": null,
225
+ "problem_type": null,
226
+ "pruned_heads": {},
227
+ "return_dict": true,
228
+ "sep_token_id": null,
229
+ "spatial_merge_size": 2,
230
+ "spatial_patch_size": 14,
231
+ "task_specific_params": null,
232
+ "temporal_patch_size": 2,
233
+ "tf_legacy_loss": false,
234
+ "tie_encoder_decoder": false,
235
+ "tie_word_embeddings": true,
236
+ "tokenizer_class": null,
237
+ "tokens_per_second": 25,
238
+ "torchscript": false,
239
+ "use_bfloat16": false,
240
+ "window_size": 16
241
+ },
242
+ "vision_end_token_id": 151653,
243
+ "vision_start_token_id": 151652,
244
+ "vision_token_id": 151654
245
+ },
246
+ "token2wav_config": {},
247
+ "transformers_version": "5.5.4"
248
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "output_attentions": false,
4
+ "output_hidden_states": false,
5
+ "transformers_version": "5.5.4",
6
+ "use_cache": true
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9329e687c30e9776dc066999545ab2f1fd648de9e9ee938dd53b6027c11dc1f3
3
+ size 512376624
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
+ }
spk_dict.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8294c250f1b71764778097c1785e0cb346c4365582127a851f2c5b18ae87841
3
+ size 258136
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab7a851e5c63d5fafbfdac72e3b4a8d08613f6bbb06ee39036fdf870ef59c93
3
+ size 11421866
tokenizer_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_bos|>",
4
+ "audio_eos_token": "<|audio_eos|>",
5
+ "audio_token": "<|AUDIO|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|IMAGE|>",
12
+ "is_local": true,
13
+ "model_max_length": 32768,
14
+ "model_specific_special_tokens": {
15
+ "audio_bos_token": "<|audio_bos|>",
16
+ "audio_eos_token": "<|audio_eos|>",
17
+ "audio_token": "<|AUDIO|>",
18
+ "image_token": "<|IMAGE|>",
19
+ "video_token": "<|VIDEO|>",
20
+ "vision_bos_token": "<|vision_bos|>",
21
+ "vision_eos_token": "<|vision_eos|>"
22
+ },
23
+ "pad_token": "<|im_end|>",
24
+ "processor_class": "Qwen2_5OmniProcessor",
25
+ "split_special_tokens": false,
26
+ "tokenizer_class": "Qwen2Tokenizer",
27
+ "unk_token": null,
28
+ "video_token": "<|VIDEO|>",
29
+ "vision_bos_token": "<|vision_bos|>",
30
+ "vision_eos_token": "<|vision_eos|>"
31
+ }