KDliang commited on
Commit
9c18911
·
verified ·
1 Parent(s): 9ee6a9f

Upload videollama3_baseline checkpoint

Browse files
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* 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
  wheels/flash_attn-2.7.3+cu11torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl 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
  wheels/flash_attn-2.7.3+cu11torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl filter=lfs diff=lfs merge=lfs -text
37
+ ckpt/videollama3_baseline/tokenizer.json filter=lfs diff=lfs merge=lfs -text
ckpt/videollama3_baseline/added_tokens.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<image>": 151665,
4
+ "<tool_call>": 151657,
5
+ "<|box_end|>": 151649,
6
+ "<|box_start|>": 151648,
7
+ "<|endoftext|>": 151643,
8
+ "<|file_sep|>": 151664,
9
+ "<|fim_middle|>": 151660,
10
+ "<|fim_pad|>": 151662,
11
+ "<|fim_prefix|>": 151659,
12
+ "<|fim_suffix|>": 151661,
13
+ "<|im_end|>": 151645,
14
+ "<|im_start|>": 151644,
15
+ "<|image_pad|>": 151655,
16
+ "<|object_ref_end|>": 151647,
17
+ "<|object_ref_start|>": 151646,
18
+ "<|quad_end|>": 151651,
19
+ "<|quad_start|>": 151650,
20
+ "<|repo_name|>": 151663,
21
+ "<|stream_end|>": 151667,
22
+ "<|stream_start|>": 151666,
23
+ "<|video_pad|>": 151656,
24
+ "<|vision_end|>": 151653,
25
+ "<|vision_pad|>": 151654,
26
+ "<|vision_start|>": 151652
27
+ }
ckpt/videollama3_baseline/config.json ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 152064,
3
+ "max_position_embeddings": 32768,
4
+ "hidden_size": 3584,
5
+ "intermediate_size": 18944,
6
+ "num_hidden_layers": 28,
7
+ "num_attention_heads": 28,
8
+ "use_sliding_window": false,
9
+ "sliding_window": null,
10
+ "max_window_layers": 28,
11
+ "num_key_value_heads": 4,
12
+ "hidden_act": "silu",
13
+ "initializer_range": 0.02,
14
+ "rms_norm_eps": 1e-06,
15
+ "use_cache": true,
16
+ "rope_theta": 1000000.0,
17
+ "rope_scaling": null,
18
+ "attention_dropout": 0.0,
19
+ "return_dict": true,
20
+ "output_hidden_states": false,
21
+ "output_attentions": false,
22
+ "torchscript": false,
23
+ "torch_dtype": "bfloat16",
24
+ "use_bfloat16": false,
25
+ "tf_legacy_loss": false,
26
+ "pruned_heads": {},
27
+ "tie_word_embeddings": false,
28
+ "chunk_size_feed_forward": 0,
29
+ "is_encoder_decoder": false,
30
+ "is_decoder": false,
31
+ "cross_attention_hidden_size": null,
32
+ "add_cross_attention": false,
33
+ "tie_encoder_decoder": false,
34
+ "max_length": 20,
35
+ "min_length": 0,
36
+ "do_sample": false,
37
+ "early_stopping": false,
38
+ "num_beams": 1,
39
+ "num_beam_groups": 1,
40
+ "diversity_penalty": 0.0,
41
+ "temperature": 1.0,
42
+ "top_k": 50,
43
+ "top_p": 1.0,
44
+ "typical_p": 1.0,
45
+ "repetition_penalty": 1.0,
46
+ "length_penalty": 1.0,
47
+ "no_repeat_ngram_size": 0,
48
+ "encoder_no_repeat_ngram_size": 0,
49
+ "bad_words_ids": null,
50
+ "num_return_sequences": 1,
51
+ "output_scores": false,
52
+ "return_dict_in_generate": false,
53
+ "forced_bos_token_id": null,
54
+ "forced_eos_token_id": null,
55
+ "remove_invalid_values": false,
56
+ "exponential_decay_length_penalty": null,
57
+ "suppress_tokens": null,
58
+ "begin_suppress_tokens": null,
59
+ "architectures": [
60
+ "Videollama3Qwen2ForCausalLM"
61
+ ],
62
+ "finetuning_task": null,
63
+ "id2label": {
64
+ "0": "LABEL_0",
65
+ "1": "LABEL_1"
66
+ },
67
+ "label2id": {
68
+ "LABEL_0": 0,
69
+ "LABEL_1": 1
70
+ },
71
+ "tokenizer_class": null,
72
+ "prefix": null,
73
+ "bos_token_id": 151643,
74
+ "pad_token_id": null,
75
+ "eos_token_id": 151645,
76
+ "sep_token_id": null,
77
+ "decoder_start_token_id": null,
78
+ "task_specific_params": null,
79
+ "problem_type": null,
80
+ "_name_or_path": "/home/kaidi/VideoLLaMA3/HF_model",
81
+ "_attn_implementation_autoset": true,
82
+ "transformers_version": "4.46.3",
83
+ "auto_map": {
84
+ "AutoConfig": "configuration_videollama3.Videollama3Qwen2Config",
85
+ "AutoModelForCausalLM": "modeling_videollama3.Videollama3Qwen2ForCausalLM"
86
+ },
87
+ "model_type": "videollama3_qwen2",
88
+ "vision_encoder": "DAMO-NLP-SG/SigLIP-NaViT",
89
+ "vision_encoder_config": {
90
+ "return_dict": true,
91
+ "output_hidden_states": false,
92
+ "output_attentions": false,
93
+ "torchscript": false,
94
+ "torch_dtype": null,
95
+ "use_bfloat16": false,
96
+ "tf_legacy_loss": false,
97
+ "pruned_heads": {},
98
+ "tie_word_embeddings": true,
99
+ "chunk_size_feed_forward": 0,
100
+ "is_encoder_decoder": false,
101
+ "is_decoder": false,
102
+ "cross_attention_hidden_size": null,
103
+ "add_cross_attention": false,
104
+ "tie_encoder_decoder": false,
105
+ "max_length": 20,
106
+ "min_length": 0,
107
+ "do_sample": false,
108
+ "early_stopping": false,
109
+ "num_beams": 1,
110
+ "num_beam_groups": 1,
111
+ "diversity_penalty": 0.0,
112
+ "temperature": 1.0,
113
+ "top_k": 50,
114
+ "top_p": 1.0,
115
+ "typical_p": 1.0,
116
+ "repetition_penalty": 1.0,
117
+ "length_penalty": 1.0,
118
+ "no_repeat_ngram_size": 0,
119
+ "encoder_no_repeat_ngram_size": 0,
120
+ "bad_words_ids": null,
121
+ "num_return_sequences": 1,
122
+ "output_scores": false,
123
+ "return_dict_in_generate": false,
124
+ "forced_bos_token_id": null,
125
+ "forced_eos_token_id": null,
126
+ "remove_invalid_values": false,
127
+ "exponential_decay_length_penalty": null,
128
+ "suppress_tokens": null,
129
+ "begin_suppress_tokens": null,
130
+ "architectures": null,
131
+ "finetuning_task": null,
132
+ "id2label": {
133
+ "0": "LABEL_0",
134
+ "1": "LABEL_1"
135
+ },
136
+ "label2id": {
137
+ "LABEL_0": 0,
138
+ "LABEL_1": 1
139
+ },
140
+ "tokenizer_class": null,
141
+ "prefix": null,
142
+ "bos_token_id": null,
143
+ "pad_token_id": null,
144
+ "eos_token_id": null,
145
+ "sep_token_id": null,
146
+ "decoder_start_token_id": null,
147
+ "task_specific_params": null,
148
+ "problem_type": null,
149
+ "_name_or_path": "",
150
+ "_attn_implementation_autoset": false,
151
+ "model_type": "videollama3_vision_encoder",
152
+ "hidden_size": 1152,
153
+ "intermediate_size": 4304,
154
+ "num_hidden_layers": 27,
155
+ "num_attention_heads": 16,
156
+ "num_channels": 3,
157
+ "patch_size": 14,
158
+ "attention_dropout": 0.0,
159
+ "layer_norm_eps": 1e-06,
160
+ "hidden_act": "gelu_pytorch_tanh"
161
+ },
162
+ "mm_projector_type": "mlp2x_gelu",
163
+ "use_token_compression": true,
164
+ "image_token_index": 151665
165
+ }
ckpt/videollama3_baseline/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
ckpt/videollama3_baseline/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19d30a50a736919a8d1b998a3512a7c48f31fede1bd8178fddb790e25204f657
3
+ size 32179254342
ckpt/videollama3_baseline/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
ckpt/videollama3_baseline/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bb63ceb1524412064763cffa446ec94ca752b2be438213ddf3242c36a6152a1
3
+ size 11422458
ckpt/videollama3_baseline/tokenizer_config.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<image>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": true
188
+ },
189
+ "151666": {
190
+ "content": "<|stream_start|>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": true
196
+ },
197
+ "151667": {
198
+ "content": "<|stream_end|>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": true
204
+ }
205
+ },
206
+ "additional_special_tokens": [
207
+ "<|im_start|>",
208
+ "<|im_end|>",
209
+ "<|object_ref_start|>",
210
+ "<|object_ref_end|>",
211
+ "<|box_start|>",
212
+ "<|box_end|>",
213
+ "<|quad_start|>",
214
+ "<|quad_end|>",
215
+ "<|vision_start|>",
216
+ "<|vision_end|>",
217
+ "<|vision_pad|>",
218
+ "<|image_pad|>",
219
+ "<|video_pad|>"
220
+ ],
221
+ "auto_map": {
222
+ "AutoProcessor": "/home/kaidi/VideoLLaMA3/HF_model--processing_videollama3.Videollama3Qwen2Processor"
223
+ },
224
+ "bos_token": null,
225
+ "chat_template": "\n{%- set identifier = 'im' %}\n{% for message in messages %}\n {% if add_system_prompt and loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\nYou are VideoLLaMA3 created by Alibaba DAMO Academy, a helpful assistant to help people understand images and videos.<|im_end|>\n' -}}\n {% endif %}\n {% if message['role'] == 'stream' %}\n {% set identifier = 'stream' %}\n {% else %}\n {% set identifier = 'im' %}\n {% endif %}\n {{- '<|' + identifier + '_start|>' + message['role'] + '\n' -}}\n {% if message['content'] is string %}\n {{- message['content'] + '<|' + identifier + '_end|>\n' -}}\n {% else %}\n {% for content in message['content'] %}\n {% if content is string %}\n {{- content -}}\n {% elif content['type'] == 'text' or 'text' in content %}\n {{- content['text'] -}}\n {% elif content['type'] == 'image' or 'image' in content %}\n {% if 'timestamp' in content %}\n {{- 'Time ' + content['timestamp'] | round(1) | string + 's: ' -}}\n {% endif %}\n {{- image_token + '\n' -}}\n {% elif content['type'] == 'video' or 'video' in content %}\n {% for i in range(content['num_frames']) %}\n {% if 'timestamps' in content %}\n {{- 'Time ' + content['timestamps'][i] | round(1) | string + 's:' -}}\n {% endif %}\n {% if i < content['num_frames'] - 1 %}\n {{- image_token + ',' -}}\n {% else %}\n {{- image_token + '\n' -}}\n {% endif %}\n {% endfor %}\n {% endif %}\n {% endfor %}\n {% if identifier == 'stream' %}\n {{- '<|' + identifier + '_end|>' -}}\n {% else %}\n {{- '<|' + identifier + '_end|>\n' -}}\n {% endif %}\n {% endif %}\n{% endfor %}\n{% if add_generation_prompt %}\n {{- '<|im_start|>assistant\n' -}}\n{% endif %}\n",
226
+ "clean_up_tokenization_spaces": false,
227
+ "eos_token": "<|im_end|>",
228
+ "errors": "replace",
229
+ "model_max_length": 32768,
230
+ "pad_token": "<|endoftext|>",
231
+ "padding_side": "right",
232
+ "processor_class": "Videollama3Qwen2Processor",
233
+ "split_special_tokens": false,
234
+ "tokenizer_class": "Qwen2Tokenizer",
235
+ "unk_token": null
236
+ }
ckpt/videollama3_baseline/vocab.json ADDED
The diff for this file is too large to render. See raw diff