klldmofashi commited on
Commit
4a6d74b
1 Parent(s): a794e82

Upload files with huggingface_hub

Browse files

Upload config.json
Upload trainer_state.json
Upload llm/generation_config.json
Upload llm/special_tokens_map.json
Upload llm/tokenizer_config.json
Upload llm/model-00006-of-00015.safetensors
Upload llm/config.json
Upload llm/model-00009-of-00015.safetensors
Upload llm/model-00004-of-00015.safetensors
Upload llm/model-00001-of-00015.safetensors
Upload llm/model-00010-of-00015.safetensors
Upload llm/model-00011-of-00015.safetensors
Upload llm/model-00015-of-00015.safetensors
Upload llm/model-00003-of-00015.safetensors

config.json ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vila1.5-34b",
3
+ "architectures": [
4
+ "LlavaLlamaModel"
5
+ ],
6
+ "hidden_size": 7168,
7
+ "image_aspect_ratio": "resize",
8
+ "interpolate_mode": "linear",
9
+ "llm_cfg": {
10
+ "_name_or_path": "./llm",
11
+ "add_cross_attention": false,
12
+ "architectures": [
13
+ "LlamaForCausalLM"
14
+ ],
15
+ "attention_bias": false,
16
+ "attention_dropout": 0.0,
17
+ "bad_words_ids": null,
18
+ "begin_suppress_tokens": null,
19
+ "bos_token_id": 1,
20
+ "chunk_size_feed_forward": 0,
21
+ "cross_attention_hidden_size": null,
22
+ "decoder_start_token_id": null,
23
+ "diversity_penalty": 0.0,
24
+ "do_sample": false,
25
+ "early_stopping": false,
26
+ "encoder_no_repeat_ngram_size": 0,
27
+ "eos_token_id": 7,
28
+ "exponential_decay_length_penalty": null,
29
+ "finetuning_task": null,
30
+ "forced_bos_token_id": null,
31
+ "forced_eos_token_id": null,
32
+ "hidden_act": "silu",
33
+ "hidden_size": 7168,
34
+ "id2label": {
35
+ "0": "LABEL_0",
36
+ "1": "LABEL_1"
37
+ },
38
+ "initializer_range": 0.02,
39
+ "intermediate_size": 20480,
40
+ "is_decoder": false,
41
+ "is_encoder_decoder": false,
42
+ "label2id": {
43
+ "LABEL_0": 0,
44
+ "LABEL_1": 1
45
+ },
46
+ "length_penalty": 1.0,
47
+ "max_length": 20,
48
+ "max_position_embeddings": 4096,
49
+ "min_length": 0,
50
+ "model_max_length": 4096,
51
+ "model_type": "llama",
52
+ "no_repeat_ngram_size": 0,
53
+ "num_attention_heads": 56,
54
+ "num_beam_groups": 1,
55
+ "num_beams": 1,
56
+ "num_hidden_layers": 60,
57
+ "num_key_value_heads": 8,
58
+ "num_return_sequences": 1,
59
+ "output_attentions": false,
60
+ "output_hidden_states": false,
61
+ "output_scores": false,
62
+ "pad_token_id": 0,
63
+ "prefix": null,
64
+ "pretraining_tp": 1,
65
+ "problem_type": null,
66
+ "pruned_heads": {},
67
+ "remove_invalid_values": false,
68
+ "repetition_penalty": 1.0,
69
+ "return_dict": true,
70
+ "return_dict_in_generate": false,
71
+ "rms_norm_eps": 1e-05,
72
+ "rope_scaling": null,
73
+ "rope_theta": 5000000.0,
74
+ "sep_token_id": null,
75
+ "suppress_tokens": null,
76
+ "task_specific_params": null,
77
+ "temperature": 1.0,
78
+ "tf_legacy_loss": false,
79
+ "tie_encoder_decoder": false,
80
+ "tie_word_embeddings": false,
81
+ "tokenizer_class": null,
82
+ "tokenizer_model_max_length": 4096,
83
+ "tokenizer_padding_side": "right",
84
+ "top_k": 50,
85
+ "top_p": 1.0,
86
+ "torch_dtype": "bfloat16",
87
+ "torchscript": false,
88
+ "typical_p": 1.0,
89
+ "use_bfloat16": false,
90
+ "use_cache": false,
91
+ "vocab_size": 64000
92
+ },
93
+ "mm_hidden_size": 3200,
94
+ "mm_projector_cfg": {
95
+ "_name_or_path": "./mm_projector",
96
+ "add_cross_attention": false,
97
+ "architectures": [
98
+ "MultimodalProjector"
99
+ ],
100
+ "bad_words_ids": null,
101
+ "begin_suppress_tokens": null,
102
+ "bos_token_id": null,
103
+ "chunk_size_feed_forward": 0,
104
+ "cross_attention_hidden_size": null,
105
+ "decoder_start_token_id": null,
106
+ "diversity_penalty": 0.0,
107
+ "do_sample": false,
108
+ "early_stopping": false,
109
+ "encoder_no_repeat_ngram_size": 0,
110
+ "eos_token_id": null,
111
+ "exponential_decay_length_penalty": null,
112
+ "finetuning_task": null,
113
+ "forced_bos_token_id": null,
114
+ "forced_eos_token_id": null,
115
+ "id2label": {
116
+ "0": "LABEL_0",
117
+ "1": "LABEL_1"
118
+ },
119
+ "is_decoder": false,
120
+ "is_encoder_decoder": false,
121
+ "label2id": {
122
+ "LABEL_0": 0,
123
+ "LABEL_1": 1
124
+ },
125
+ "length_penalty": 1.0,
126
+ "max_length": 20,
127
+ "min_length": 0,
128
+ "mm_projector_type": "mlp_downsample",
129
+ "model_type": "v2l_projector",
130
+ "no_repeat_ngram_size": 0,
131
+ "num_beam_groups": 1,
132
+ "num_beams": 1,
133
+ "num_return_sequences": 1,
134
+ "output_attentions": false,
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
+ "sep_token_id": null,
146
+ "suppress_tokens": null,
147
+ "task_specific_params": null,
148
+ "temperature": 1.0,
149
+ "tf_legacy_loss": false,
150
+ "tie_encoder_decoder": false,
151
+ "tie_word_embeddings": true,
152
+ "tokenizer_class": null,
153
+ "top_k": 50,
154
+ "top_p": 1.0,
155
+ "torch_dtype": "bfloat16",
156
+ "torchscript": false,
157
+ "typical_p": 1.0,
158
+ "use_bfloat16": false
159
+ },
160
+ "mm_projector_lr": null,
161
+ "mm_use_im_patch_token": false,
162
+ "mm_use_im_start_end": false,
163
+ "mm_vision_select_feature": "patch",
164
+ "mm_vision_select_layer": -1,
165
+ "model_dtype": "torch.bfloat16",
166
+ "model_type": "llava_llama",
167
+ "num_video_frames": 8,
168
+ "resume_path": "vila1.5-34b",
169
+ "s2": false,
170
+ "s2_max_split_size": 336,
171
+ "s2_scales": "336,672,1008",
172
+ "transformers_version": "4.36.2",
173
+ "tune_language_model": true,
174
+ "tune_mm_projector": true,
175
+ "tune_vision_tower": true,
176
+ "vision_resolution": -1,
177
+ "vision_tower_cfg": {
178
+ "_name_or_path": "./vision_tower",
179
+ "add_cross_attention": false,
180
+ "architectures": [
181
+ "InternVisionModel"
182
+ ],
183
+ "attention_dropout": 0.0,
184
+ "bad_words_ids": null,
185
+ "begin_suppress_tokens": 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
+ "diversity_penalty": 0.0,
191
+ "do_sample": false,
192
+ "drop_path_rate": 0.0,
193
+ "dropout": 0.0,
194
+ "early_stopping": false,
195
+ "encoder_no_repeat_ngram_size": 0,
196
+ "eos_token_id": null,
197
+ "exponential_decay_length_penalty": null,
198
+ "finetuning_task": null,
199
+ "forced_bos_token_id": null,
200
+ "forced_eos_token_id": null,
201
+ "hidden_act": "gelu",
202
+ "hidden_size": 3200,
203
+ "id2label": {
204
+ "0": "LABEL_0",
205
+ "1": "LABEL_1"
206
+ },
207
+ "image_size": 448,
208
+ "initializer_factor": 0.1,
209
+ "initializer_range": 1e-10,
210
+ "intermediate_size": 12800,
211
+ "is_decoder": false,
212
+ "is_encoder_decoder": false,
213
+ "label2id": {
214
+ "LABEL_0": 0,
215
+ "LABEL_1": 1
216
+ },
217
+ "layer_norm_eps": 1e-06,
218
+ "length_penalty": 1.0,
219
+ "max_length": 20,
220
+ "min_length": 0,
221
+ "model_type": "intern_vit_6b",
222
+ "no_repeat_ngram_size": 0,
223
+ "num_attention_heads": 25,
224
+ "num_beam_groups": 1,
225
+ "num_beams": 1,
226
+ "num_channels": 3,
227
+ "num_hidden_layers": 45,
228
+ "num_return_sequences": 1,
229
+ "output_attentions": false,
230
+ "output_hidden_states": false,
231
+ "output_scores": false,
232
+ "pad_token_id": null,
233
+ "patch_size": 14,
234
+ "prefix": null,
235
+ "problem_type": null,
236
+ "pruned_heads": {},
237
+ "qk_normalization": true,
238
+ "qkv_bias": false,
239
+ "remove_invalid_values": false,
240
+ "repetition_penalty": 1.0,
241
+ "return_dict": true,
242
+ "return_dict_in_generate": false,
243
+ "sep_token_id": null,
244
+ "suppress_tokens": null,
245
+ "task_specific_params": null,
246
+ "temperature": 1.0,
247
+ "tf_legacy_loss": false,
248
+ "tie_encoder_decoder": false,
249
+ "tie_word_embeddings": true,
250
+ "tokenizer_class": null,
251
+ "top_k": 50,
252
+ "top_p": 1.0,
253
+ "torch_dtype": "bfloat16",
254
+ "torchscript": false,
255
+ "typical_p": 1.0,
256
+ "use_bfloat16": true,
257
+ "use_flash_attn": true
258
+ }
259
+ }
llm/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./llm",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 7,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 7168,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 20480,
14
+ "max_position_embeddings": 4096,
15
+ "model_max_length": 4096,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 56,
18
+ "num_hidden_layers": 60,
19
+ "num_key_value_heads": 8,
20
+ "pad_token_id": 0,
21
+ "pretraining_tp": 1,
22
+ "rms_norm_eps": 1e-05,
23
+ "rope_scaling": null,
24
+ "rope_theta": 5000000.0,
25
+ "tie_word_embeddings": false,
26
+ "tokenizer_model_max_length": 4096,
27
+ "tokenizer_padding_side": "right",
28
+ "torch_dtype": "bfloat16",
29
+ "transformers_version": "4.36.2",
30
+ "use_cache": false,
31
+ "vocab_size": 64000
32
+ }
llm/generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.36.2"
7
+ }
llm/model-00001-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64e8f21b9da2db3920a507bba4182e5bfcee58ad4afaf37daca523fb0e8b8c4d
3
+ size 4793130760
llm/model-00003-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a17c971c8ba07dd645722f53cbcb29fd78b2d0dd05b4ec492787e4239dfeb264
3
+ size 4991370136
llm/model-00004-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9712430c6f9e5969953a1fa5915c30b8403b3c284d505d2a8c00b31f0d1a16f1
3
+ size 4756459760
llm/model-00006-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb381da8c5ef189727196be183ea30529273bc9a7d10309363ddc0328d407714
3
+ size 4991370160
llm/model-00009-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:996d474184407a8d02e3f0c819d00713be5b88f5021d981e5c263ed10b346164
3
+ size 4991370160
llm/model-00010-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8a077333ff01f33cc74a289fa3e18b84f41b9d9c85fb07d94d401771b7eca89
3
+ size 4756459760
llm/model-00011-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a54116e248f2e06ff322b2a25cf5c47f4e9f49e5e89ae5c7e2f89870062fd9e
3
+ size 4756459760
llm/model-00015-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17f9c789ecfc01cf0a49e2a0fe862c15531c62c2c03bdb1d512e2f75d69cb91a
3
+ size 1211148856
llm/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|im_end|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<unk>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
llm/tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<|startoftext|>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "<|endoftext|>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "6": {
31
+ "content": "<|im_start|>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ },
38
+ "7": {
39
+ "content": "<|im_end|>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ }
46
+ },
47
+ "bos_token": "<|startoftext|>",
48
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
49
+ "clean_up_tokenization_spaces": false,
50
+ "eos_token": "<|im_end|>",
51
+ "legacy": true,
52
+ "model_max_length": 4096,
53
+ "pad_token": "<unk>",
54
+ "padding_side": "right",
55
+ "sp_model_kwargs": {},
56
+ "spaces_between_special_tokens": false,
57
+ "tokenizer_class": "LlamaTokenizer",
58
+ "trust_remote_code": false,
59
+ "unk_token": "<unk>",
60
+ "use_default_system_prompt": false,
61
+ "use_fast": true
62
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff