codeShare commited on
Commit
afac7f2
·
verified ·
1 Parent(s): a522dae

Upload folder using huggingface_hub

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
chat_template.jinja ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if not date_string is defined %}
2
+ {%- set date_string = "26 July 2024" %}
3
+ {%- endif %}
4
+
5
+ {#- This block extracts the system message, so we can slot it into the right place. #}
6
+ {%- if messages[0]['role'] == 'system' %}
7
+ {%- set system_message = messages[0]['content'] %}
8
+ {%- set messages = messages[1:] %}
9
+ {%- else %}
10
+ {%- set system_message = "" %}
11
+ {%- endif %}
12
+
13
+ {#- System message + builtin tools #}
14
+ {{- "<|start_header_id|>system<|end_header_id|>
15
+
16
+ " }}
17
+ {{- "Cutting Knowledge Date: December 2023
18
+ " }}
19
+ {{- "Today Date: " + date_string + "
20
+
21
+ " }}
22
+ {{- system_message }}
23
+ {{- "<|eot_id|>" }}
24
+
25
+
26
+ {%- set first_user_message = True %}
27
+ {%- for message in messages %}
28
+ {%- if first_user_message and message['role'] == 'user' %}
29
+ {%- set first_user_message = False %}
30
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>
31
+
32
+ <|reserved_special_token_70|><|reserved_special_token_69|><|reserved_special_token_71|>'+ message['content'].replace('<|reserved_special_token_69|>', '').lstrip() + '<|eot_id|>' }}
33
+ {%- else %}
34
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>
35
+
36
+ '+ message['content'] + '<|eot_id|>' }}
37
+ {%- endif %}
38
+ {%- endfor %}
39
+ {%- if add_generation_prompt %}
40
+ {{- '<|start_header_id|>assistant<|end_header_id|>
41
+
42
+ ' }}
43
+ {%- endif %}
config.json CHANGED
@@ -2,12 +2,79 @@
2
  "architectures": [
3
  "LlavaForConditionalGeneration"
4
  ],
5
- "dtype": "float16",
6
  "image_seq_length": 729,
7
  "image_token_index": 128077,
8
  "model_type": "llava",
9
  "multimodal_projector_bias": true,
10
  "projector_hidden_act": "gelu",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  "text_config": {
12
  "_name_or_path": "meta-llama/Llama-3.1-8B-Instruct",
13
  "architectures": [
@@ -16,7 +83,7 @@
16
  "attention_bias": false,
17
  "attention_dropout": 0.0,
18
  "bos_token_id": 128000,
19
- "dtype": "float16",
20
  "eos_token_id": [
21
  128001,
22
  128008,
@@ -49,14 +116,14 @@
49
  "vocab_size": 128256
50
  },
51
  "tie_word_embeddings": false,
52
- "transformers_version": "5.6.1",
53
  "vision_config": {
54
  "_name_or_path": "google/siglip2-so400m-patch14-384",
55
  "architectures": [
56
  "SiglipVisionModel"
57
  ],
58
  "attention_dropout": 0.0,
59
- "dtype": "float16",
60
  "hidden_act": "gelu_pytorch_tanh",
61
  "hidden_size": 1152,
62
  "image_size": 384,
 
2
  "architectures": [
3
  "LlavaForConditionalGeneration"
4
  ],
5
+ "dtype": "bfloat16",
6
  "image_seq_length": 729,
7
  "image_token_index": 128077,
8
  "model_type": "llava",
9
  "multimodal_projector_bias": true,
10
  "projector_hidden_act": "gelu",
11
+ "quantization_config": {
12
+ "add_skip_keys": true,
13
+ "dequantize_fp32": true,
14
+ "dynamic_loss_threshold": null,
15
+ "group_size": 0,
16
+ "is_integer": true,
17
+ "is_training": false,
18
+ "modules_dtype_dict": {
19
+ "int8": [
20
+ "lm_head"
21
+ ]
22
+ },
23
+ "modules_quant_config": {
24
+ "embed_tokens_per_layer": {
25
+ "quantization_device": "cpu"
26
+ }
27
+ },
28
+ "modules_to_not_convert": [
29
+ "model.language_model.embed_tokens.weight",
30
+ "correction_coefs",
31
+ ".txt_in",
32
+ ".emb_in",
33
+ ".img_out",
34
+ ".img_in",
35
+ ".context_embedder",
36
+ ".txt_out",
37
+ ".condition_embedder",
38
+ "wte",
39
+ ".emb_out",
40
+ ".final_layer",
41
+ "patch_emb",
42
+ "prediction_coefs",
43
+ "embedding_projection",
44
+ ".t_embedder",
45
+ "lm_head",
46
+ "patch_embed",
47
+ ".y_embedder",
48
+ ".norm_out",
49
+ ".time_embed",
50
+ ".vid_out",
51
+ ".vid_in",
52
+ ".x_embedder",
53
+ "multi_modal_projector",
54
+ "lm_head.weight",
55
+ "time_text_embed",
56
+ "patch_embedding",
57
+ ".proj_out"
58
+ ],
59
+ "non_blocking": false,
60
+ "quant_conv": false,
61
+ "quant_embedding": false,
62
+ "quant_method": "sdnq",
63
+ "quantization_device": "cuda",
64
+ "quantized_matmul_dtype": null,
65
+ "return_device": "cpu",
66
+ "sdnq_version": "0.1.7",
67
+ "svd_rank": 32,
68
+ "svd_steps": 8,
69
+ "use_dynamic_quantization": true,
70
+ "use_grad_ckpt": true,
71
+ "use_quantized_matmul": true,
72
+ "use_quantized_matmul_conv": false,
73
+ "use_static_quantization": true,
74
+ "use_stochastic_rounding": false,
75
+ "use_svd": false,
76
+ "weights_dtype": "uint4"
77
+ },
78
  "text_config": {
79
  "_name_or_path": "meta-llama/Llama-3.1-8B-Instruct",
80
  "architectures": [
 
83
  "attention_bias": false,
84
  "attention_dropout": 0.0,
85
  "bos_token_id": 128000,
86
+ "dtype": "bfloat16",
87
  "eos_token_id": [
88
  128001,
89
  128008,
 
116
  "vocab_size": 128256
117
  },
118
  "tie_word_embeddings": false,
119
+ "transformers_version": "5.0.0",
120
  "vision_config": {
121
  "_name_or_path": "google/siglip2-so400m-patch14-384",
122
  "architectures": [
123
  "SiglipVisionModel"
124
  ],
125
  "attention_dropout": 0.0,
126
+ "dtype": "bfloat16",
127
  "hidden_act": "gelu_pytorch_tanh",
128
  "hidden_size": 1152,
129
  "image_size": 384,
generation_config.json CHANGED
@@ -9,5 +9,5 @@
9
  ],
10
  "temperature": 0.6,
11
  "top_p": 0.9,
12
- "transformers_version": "5.6.1"
13
  }
 
9
  ],
10
  "temperature": 0.6,
11
  "top_p": 0.9,
12
+ "transformers_version": "5.0.0"
13
  }
model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7798c882971b8c6ab9516c2f7d78bb63fe71138cd7bc8d17a1e61ad0093fc05
3
+ size 1050673296
model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0382621bc0fde7706f41cbe5d24c70ddfa91de468e121ca9fa15181a568b5fdb
3
+ size 1975677061
model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b108a1225fcca82b741fc0251cb573d954f11c6698bf15b1b2efd7081b80260c
3
+ size 1998676789
model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6db11e8283d16df14c207be5107131018052719f9f77d62aa8163a6211f8983
3
+ size 1264525708
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
processor_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "data_format": "channels_first",
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "SiglipImageProcessorFast",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "resample": 1,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 384,
23
+ "width": 384
24
+ }
25
+ },
26
+ "image_token": "<|reserved_special_token_69|>",
27
+ "num_additional_image_tokens": 1,
28
+ "patch_size": 14,
29
+ "processor_class": "LlavaProcessor",
30
+ "vision_feature_select_strategy": "default"
31
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "model_input_names": [
8
+ "input_ids",
9
+ "attention_mask"
10
+ ],
11
+ "model_max_length": 131072,
12
+ "model_specific_special_tokens": {},
13
+ "processor_class": "LlavaProcessor",
14
+ "tokenizer_class": "TokenizersBackend"
15
+ }