danielhanchen commited on
Commit
9705c3d
·
verified ·
1 Parent(s): 29d4da3

Add files using upload-large-folder tool

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.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{{- bos_token }}\n{%- if custom_tools is defined %}\n {%- set tools = custom_tools %}\n{%- endif %}\n{%- if not tools_in_user_message is defined %}\n {%- set tools_in_user_message = true %}\n{%- endif %}\n{%- if not date_string is defined %}\n {%- if strftime_now is defined %}\n {%- set date_string = strftime_now(\"%d %b %Y\") %}\n {%- else %}\n {%- set date_string = \"26 Jul 2024\" %}\n {%- endif %}\n{%- endif %}\n{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n\n{#- This block extracts the system message, so we can slot it into the right place. #}\n{%- if messages[0]['role'] == 'system' %} \n {%- if messages[0]['content'] is string %}\n {%- set system_message = messages[0]['content']|trim %}\n {%- else %}\n {#- FIXME: The processor requires an array, always. #}\n {%- set system_message = messages[0]['content'][0]['text']|trim %}\n {%- endif %}\n {%- set messages = messages[1:] %}\n {%- set user_supplied_system_message = true %}\n{%- else %}\n {%- set system_message = \"\" %}\n {%- set user_supplied_system_message = false %}\n{%- endif %}\n\n{#- System message if the user supplied one #}\n{%- if user_supplied_system_message %}\n {{- \"<|header_start|>system<|header_end|>\\n\\n\" }}\n {%- if tools is not none %}\n {{- \"Environment: ipython\\n\" }}\n {%- endif %}\n {%- if tools is not none and not tools_in_user_message %}\n {{- \"You have access to the following functions. To call a function, please respond with JSON for a function call.\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n {%- endif %}\n {{- system_message }}\n {{- \"<|eot|>\" }}\n{%- endif %}\n\n{#- Custom tools are passed in a user message with some extra guidance #}\n{%- if tools_in_user_message and not tools is none %}\n {#- Extract the first user message so we can plug it in here #}\n {%- if messages | length != 0 %}\n {%- set first_user_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n {%- else %}\n {{- raise_exception(\"Cannot put tools in the first user message when there's no first user message!\") }}\n{%- endif %}\n {{- '<|header_start|>user<|header_end|>\\n\\n' -}}\n {{- \"Given the following functions, please respond with a JSON for a function call \" }}\n {{- \"with its proper arguments that best answers the given prompt.\\n\\n\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n {{- first_user_message + \"<|eot|>\"}}\n{%- endif %}\n\n{%- for message in messages %}\n {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}\n {{- '<|header_start|>' + message['role'] + '<|header_end|>\\n\\n' }}\n {%- if message['content'] is string %}\n {{- message['content'] }}\n {%- else %}\n {%- for content in message['content'] %}\n {%- if content['type'] == 'image' %}\n {{- '<|image|>' }}\n {%- elif content['type'] == 'text' %}\n {{- content['text'] }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- \"<|eot|>\" }}\n {%- elif 'tool_calls' in message and message.tool_calls|length > 0 %}\n {{- '<|header_start|>assistant<|header_end|>\\n\\n' -}}\n {{- '<|python_start|>' }}\n {%- if message['content'] is string %}\n {{- message['content'] }}\n {%- else %}\n {%- for content in message['content'] %}\n {%- if content['type'] == 'image' %}\n {{- '<|image|>' }}\n {%- elif content['type'] == 'text' %}\n {{- content['text'] }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {{- '<|python_end|>' }}\n {%- for tool_call in message.tool_calls %}\n {{- '{\"name\": \"' + tool_call.function.name + '\", ' }}\n {{- '\"parameters\": ' }}\n {{- tool_call.function.arguments | tojson }}\n {{- \"}\" }}\n {%- endfor %}\n {{- \"<|eot|>\" }}\n {%- elif message.role == \"tool\" or message.role == \"ipython\" %}\n {{- \"<|header_start|>ipython<|header_end|>\\n\\n\" }}\n {%- if message.content is mapping or message.content is iterable %}\n {{- message.content | tojson }}\n {%- else %}\n {{- message.content }}\n {%- endif %}\n {{- \"<|eot|>\" }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|header_start|>assistant<|header_end|>\\n\\n' }}\n{%- endif %}\n"
3
+ }
config.json ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Llama4ForConditionalGeneration"
4
+ ],
5
+ "boi_token_index": 200080,
6
+ "eoi_token_index": 200081,
7
+ "image_token_index": 200092,
8
+ "model_type": "llama4",
9
+ "quantization_config": {
10
+ "_load_in_4bit": false,
11
+ "_load_in_8bit": true,
12
+ "bnb_4bit_compute_dtype": "float32",
13
+ "bnb_4bit_quant_storage": "uint8",
14
+ "bnb_4bit_quant_type": "fp4",
15
+ "bnb_4bit_use_double_quant": false,
16
+ "llm_int8_enable_fp32_cpu_offload": false,
17
+ "llm_int8_has_fp16_weight": false,
18
+ "llm_int8_skip_modules": null,
19
+ "llm_int8_threshold": 6.0,
20
+ "load_in_4bit": false,
21
+ "load_in_8bit": true,
22
+ "quant_method": "bitsandbytes"
23
+ },
24
+ "text_config": {
25
+ "_attn_implementation_autoset": true,
26
+ "attention_bias": false,
27
+ "attention_chunk_size": 8192,
28
+ "attention_dropout": 0.0,
29
+ "attn_scale": 0.1,
30
+ "attn_temperature_tuning": 4,
31
+ "bos_token_id": 200000,
32
+ "eos_token_id": [
33
+ 200001,
34
+ 200007,
35
+ 200008
36
+ ],
37
+ "floor_scale": 8192,
38
+ "for_llm_compressor": false,
39
+ "head_dim": 128,
40
+ "hidden_act": "silu",
41
+ "hidden_size": 5120,
42
+ "initializer_range": 0.02,
43
+ "interleave_moe_layer_step": 1,
44
+ "intermediate_size": 8192,
45
+ "intermediate_size_mlp": 16384,
46
+ "max_position_embeddings": 10485760,
47
+ "model_type": "llama4_text",
48
+ "moe_layers": [
49
+ 0,
50
+ 1,
51
+ 2,
52
+ 3,
53
+ 4,
54
+ 5,
55
+ 6,
56
+ 7,
57
+ 8,
58
+ 9,
59
+ 10,
60
+ 11,
61
+ 12,
62
+ 13,
63
+ 14,
64
+ 15,
65
+ 16,
66
+ 17,
67
+ 18,
68
+ 19,
69
+ 20,
70
+ 21,
71
+ 22,
72
+ 23,
73
+ 24,
74
+ 25,
75
+ 26,
76
+ 27,
77
+ 28,
78
+ 29,
79
+ 30,
80
+ 31,
81
+ 32,
82
+ 33,
83
+ 34,
84
+ 35,
85
+ 36,
86
+ 37,
87
+ 38,
88
+ 39,
89
+ 40,
90
+ 41,
91
+ 42,
92
+ 43,
93
+ 44,
94
+ 45,
95
+ 46,
96
+ 47
97
+ ],
98
+ "no_rope_layers": [
99
+ 1,
100
+ 1,
101
+ 1,
102
+ 0,
103
+ 1,
104
+ 1,
105
+ 1,
106
+ 0,
107
+ 1,
108
+ 1,
109
+ 1,
110
+ 0,
111
+ 1,
112
+ 1,
113
+ 1,
114
+ 0,
115
+ 1,
116
+ 1,
117
+ 1,
118
+ 0,
119
+ 1,
120
+ 1,
121
+ 1,
122
+ 0,
123
+ 1,
124
+ 1,
125
+ 1,
126
+ 0,
127
+ 1,
128
+ 1,
129
+ 1,
130
+ 0,
131
+ 1,
132
+ 1,
133
+ 1,
134
+ 0,
135
+ 1,
136
+ 1,
137
+ 1,
138
+ 0,
139
+ 1,
140
+ 1,
141
+ 1,
142
+ 0,
143
+ 1,
144
+ 1,
145
+ 1,
146
+ 0
147
+ ],
148
+ "num_attention_heads": 40,
149
+ "num_experts_per_tok": 1,
150
+ "num_hidden_layers": 48,
151
+ "num_key_value_heads": 8,
152
+ "num_local_experts": 16,
153
+ "output_router_logits": false,
154
+ "pad_token_id": 200018,
155
+ "rms_norm_eps": 1e-05,
156
+ "rope_scaling": {
157
+ "factor": 8.0,
158
+ "high_freq_factor": 4.0,
159
+ "low_freq_factor": 1.0,
160
+ "original_max_position_embeddings": 8192,
161
+ "rope_type": "llama3"
162
+ },
163
+ "rope_theta": 500000.0,
164
+ "router_aux_loss_coef": 0.001,
165
+ "router_jitter_noise": 0.0,
166
+ "torch_dtype": "bfloat16",
167
+ "use_cache": true,
168
+ "use_qk_norm": true,
169
+ "vocab_size": 202048
170
+ },
171
+ "tie_word_embeddings": false,
172
+ "torch_dtype": "bfloat16",
173
+ "transformers_version": "4.51.0",
174
+ "vision_config": {
175
+ "_attn_implementation_autoset": true,
176
+ "attention_dropout": 0.0,
177
+ "hidden_act": "gelu",
178
+ "hidden_size": 1408,
179
+ "image_size": 336,
180
+ "initializer_range": 0.02,
181
+ "intermediate_size": 5632,
182
+ "model_type": "llama4_vision_model",
183
+ "multi_modal_projector_bias": false,
184
+ "norm_eps": 1e-05,
185
+ "num_attention_heads": 16,
186
+ "num_channels": 3,
187
+ "num_hidden_layers": 34,
188
+ "patch_size": 14,
189
+ "pixel_shuffle_ratio": 0.5,
190
+ "projector_dropout": 0.0,
191
+ "projector_input_dim": 4096,
192
+ "projector_output_dim": 4096,
193
+ "rope_theta": 10000,
194
+ "torch_dtype": "bfloat16",
195
+ "vision_feature_layer": -1,
196
+ "vision_feature_select_strategy": "default",
197
+ "vision_output_dim": 4096
198
+ }
199
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 200000,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 200001,
6
+ 200007,
7
+ 200008
8
+ ],
9
+ "pad_token_id": 200018,
10
+ "temperature": 0.6,
11
+ "top_p": 0.9,
12
+ "transformers_version": "4.51.0"
13
+ }
model-00001-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebf5288839bdff5674ffa52758eaba7152acf9a39af5b2e07ccbce5563dd715d
3
+ size 4350408485
model-00002-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc2995a86bb285e5749678522c9e57f6f49b77015dfd84b9713a7cc5668e3b9f
3
+ size 4406206988
model-00003-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fae99fda51047aeb228da49152cdef775dd09ccc1b4321207ae0c6e8a4530de2
3
+ size 4406206988
model-00004-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:715e9c57d9a1e76201b9cdd0959bb227874d92e9f8513d333a0ed28c02a3f2a4
3
+ size 4406206988
model-00005-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:234ec007bb49571cfef98ca8fb4e1e879729d2a72cffb7ec1942d90b5ae94b02
3
+ size 4406206988
model-00006-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92259d0e5477be21cc572dd33f95f12f361eccb78b9e5728d8c13f2e971c186f
3
+ size 4406207004
model-00007-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5f62729793cdaf33bbe329e267d10c8ed5094bbece568558c661641fbc0c212
3
+ size 4406207052
model-00008-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fec5b925f1b44f09c8d152a46de62d084a7964f81a84aad6df248e32f854b69f
3
+ size 4406207052
model-00009-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0432210e5a6638ef43ac5cbf2e09f10f308b34b01e861196a246db13e69a23d0
3
+ size 4406207052
model-00010-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9f3fdc6b4be1cd559b3096de3ed5e49b6fa7cb614dc6c931be709a1d62762a0
3
+ size 4406207052
model-00011-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5048bb942377975eaf67acd41f1dd1efc0e4017342e05cfe461dd69d67fcaaf0
3
+ size 4406207052
model-00012-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ce9e15dc113bc856f9b39ea5955ac3627280c8613133f3a832975ee479bdf94
3
+ size 4406207052
model-00013-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:589fa35a9b37b7a129653d83b3c3524665f6d1794f93378d429056727d52786d
3
+ size 4406207052
model-00014-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbd7f97d584e9ba13085836cc53cf39f86390054bd977f24bc3920a6bfd9f965
3
+ size 4406207052
model-00015-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2bd71e8b37588b4fb8b42af43f9d2c3c7dba0c7a78af717090980c746db772f
3
+ size 4406207052
model-00016-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b22bd14758009622106e110213f702356e90ac748ca83b33756adf9e945e27fe
3
+ size 4406207052
model-00017-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffceced617c9789891f6e17c94bb6d7d784e74986db7e831e6db01797279109a
3
+ size 4406207052
model-00018-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:704ccf51a61b55e17c9c716002742781d9f1731f9cc7c8712dfd9ab90595cf6d
3
+ size 4406207052
model-00019-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:504df1d0f0f4e2a7fcb4da26485be45e166abe89a67ff04bb0161a29ecc0844c
3
+ size 4406207052
model-00020-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0d7c24047947ad3ec9c4a319a2a5852bca971e4dd83587355c7222e8f7aa7bd
3
+ size 4406207052
model-00021-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65b6586dc3b1016229dc0913a2638a08b08788800bf0cb85287d8a63d832fe0e
3
+ size 4406207052
model-00022-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09e9fbc3e8bd2e68288c1599492ca2f17828c8aa6b2ea85f9e3193ec61bb24f2
3
+ size 4406207052
model-00023-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d1ee5c64d2af47ec42d5fce1dbc888d2f316df96574b10225fc751bf33e7de3
3
+ size 4406207052
model-00024-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:871c9bfa78955d32aa89e146ed058d7ce013e097213cdb1eb388fda7ca503cae
3
+ size 4406207052
model-00025-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47319028a0b6e8d1a7357839c6ec45543c2fd5bbaf6f367f9f3e99ea2331a205
3
+ size 3000746775
model-00026-of-00026.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f412ae287747cc86e6ee5d58600bbe5c574d6fa77f351367aae9ea3f4dbcc3a
3
+ size 2068971664
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "device": null,
6
+ "do_center_crop": null,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "image_processor_type": "Llama4ImageProcessorFast",
17
+ "image_std": [
18
+ 0.5,
19
+ 0.5,
20
+ 0.5
21
+ ],
22
+ "input_data_format": null,
23
+ "max_patches": 16,
24
+ "processor_class": "Llama4Processor",
25
+ "resample": 2,
26
+ "rescale_factor": 0.00392156862745098,
27
+ "resize_to_max_canvas": false,
28
+ "return_tensors": null,
29
+ "size": {
30
+ "height": 336,
31
+ "width": 336
32
+ }
33
+ }
processor_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "fake_image_token": "<|image|>",
3
+ "image_token": "<|image|>",
4
+ "patch_size": 14,
5
+ "processor_class": "Llama4Processor"
6
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|begin_of_text|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|eot|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|finetune_right_pad_id|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:172c9eb4beafc72601690da3ccfcede5c2e6806a8d5ec1fca33e22acea8023a4
3
+ size 27948578
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff