update files (#6)
Browse files- update files (d8052c929851b2e00bbeb1a4cec4fe1cee3aef4b)
Co-authored-by: haoyanli <[email protected]>
- chat_template.json +3 -0
- config.json +4 -1
- model-00001-of-00020.safetensors +3 -0
- model-00002-of-00020.safetensors +3 -0
- model-00003-of-00020.safetensors +3 -0
- model-00004-of-00020.safetensors +3 -0
- model-00005-of-00020.safetensors +3 -0
- model-00006-of-00020.safetensors +3 -0
- model-00007-of-00020.safetensors +3 -0
- model-00008-of-00020.safetensors +3 -0
- model-00009-of-00020.safetensors +3 -0
- model-00010-of-00020.safetensors +3 -0
- model-00011-of-00020.safetensors +3 -0
- model-00012-of-00020.safetensors +3 -0
- model-00013-of-00020.safetensors +3 -0
- model-00014-of-00020.safetensors +3 -0
- model-00015-of-00020.safetensors +3 -0
- model-00016-of-00020.safetensors +3 -0
- model-00017-of-00020.safetensors +3 -0
- model-00018-of-00020.safetensors +3 -0
- model-00019-of-00020.safetensors +3 -0
- model-00020-of-00020.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +1 -0
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 {%- set system_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n{%- else %}\n {%- set system_message = \"\" %}\n{%- endif %}\n\n{#- Find out if there are any images #}\n{% set image_ns = namespace(has_images=false) %} \n{%- for message in messages %}\n {%- for content in message['content'] %}\n {%- if content['type'] == 'image' %}\n {%- set image_ns.has_images = true %}\n {%- endif %}\n {%- endfor %}\n{%- endfor %}\n\n{#- Error out if there are images and system message #}\n{%- if image_ns.has_images and not system_message == \"\" %}\n {{- raise_exception(\"Prompting with images is incompatible with system messages.\") }}\n{%- endif %}\n\n{#- System message if there are no images #}\n{%- if not image_ns.has_images %}\n {{- \"<|start_header_id|>system<|end_header_id|>\\n\\n\" }}\n {%- if tools is not none %}\n {{- \"Environment: ipython\\n\" }}\n {%- endif %}\n {{- \"Cutting Knowledge Date: December 2023\\n\" }}\n {{- \"Today Date: \" + date_string + \"\\n\\n\" }}\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_id|>\" }}\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 {{- '<|start_header_id|>user<|end_header_id|>\\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_id|>\"}}\n{%- endif %}\n\n{%- for message in messages %}\n {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}\n {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\\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_id|>' }}\n {%- elif 'tool_calls' in message %}\n {%- if not message.tool_calls|length == 1 %}\n {{- raise_exception(\"This model only supports single tool-calls at once!\") }}\n {%- endif %}\n {%- set tool_call = message.tool_calls[0].function %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- '{\"name\": \"' + tool_call.name + '\", ' }}\n {{- '\"parameters\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- \"}\" }}\n {{- \"<|eot_id|>\" }}\n {%- elif message.role == \"tool\" or message.role == \"ipython\" %}\n {{- \"<|start_header_id|>ipython<|end_header_id|>\\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_id|>\" }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' }}\n{%- endif %}\n"
|
3 |
+
}
|
config.json
CHANGED
@@ -8,7 +8,10 @@
|
|
8 |
"quantization_config": {
|
9 |
"activation_scheme": "static",
|
10 |
"ignored_layers": [
|
11 |
-
"lm_head"
|
|
|
|
|
|
|
12 |
],
|
13 |
"kv_cache_scheme": "static",
|
14 |
"quant_method": "fp8"
|
|
|
8 |
"quantization_config": {
|
9 |
"activation_scheme": "static",
|
10 |
"ignored_layers": [
|
11 |
+
"*lm_head",
|
12 |
+
"*cross_attn*",
|
13 |
+
"vision_model*",
|
14 |
+
"multi_modal_projector"
|
15 |
],
|
16 |
"kv_cache_scheme": "static",
|
17 |
"quant_method": "fp8"
|
model-00001-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5633ead602ca8cd3f5603a1b352f916379f37bf7c92a9454a73c91b3d425bc4
|
3 |
+
size 4835349758
|
model-00002-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c211af23bba3c9ea4c6c24169e802d7cf228111d2b40b38b84fa05c29cfadec1
|
3 |
+
size 4899126132
|
model-00003-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f832ba29c0fbd9bb11a5b5a4e0470d5499a93e7e3259b28ad2723b43053de8d
|
3 |
+
size 4815274344
|
model-00004-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13c496f521c795df84d0515db78d706902a0c3c7ce0584bb6bf2e6424281e29a
|
3 |
+
size 4899126268
|
model-00005-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8922c525aa59348a65d3d7b9adb31f59e352e2d4084c8617eb0de771e1ed45d0
|
3 |
+
size 4966285848
|
model-00006-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c947696f02412f91898311ef2bcb6416e7f36d41180954f2049419a040227fbd
|
3 |
+
size 4899126228
|
model-00007-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d13f2f53a4003f991d9368f91af7d09a17ea38855952fbf2007d27cddf4a5d37
|
3 |
+
size 4815257904
|
model-00008-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b9c706726c35ae99ea2793fabc0940aca20c8d73acaa8cf99a86a664ddbb1cd
|
3 |
+
size 4899126228
|
model-00009-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:824c00a8ede4d4407d7defeefa112d870919b160649f8003502c783342f9a603
|
3 |
+
size 4815274416
|
model-00010-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08403c33c1e5d5c20dfda0d9485bff368318b056b21ed470e61b0c90dd309c20
|
3 |
+
size 4899126236
|
model-00011-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7c099b85a65303d7d13e7c992c9534b3b1613c349263f1a456c9e9f9701f83f
|
3 |
+
size 4815274424
|
model-00012-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4d5805c5be802aad3358eb468732950f412735b29fea128cc929fcfa8960061
|
3 |
+
size 4899126252
|
model-00013-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9bfa28809ad49cc6d38f86418e9c267d200bec4a6e15fd9407000be4d10ccc19
|
3 |
+
size 4815274440
|
model-00014-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e96b47598c99e124e44e2372e0199e9810f1aa15884ecdf34b6a62855d30d58f
|
3 |
+
size 4899126268
|
model-00015-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:61f9cff40fdd234b4856506d9771c3f43a9c3443c3b220e772a556f976e4a7bf
|
3 |
+
size 4966285848
|
model-00016-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f4ff2165db7fcf92ff94f16dcd213c717f649d99b9aa31fb388f5d0d83ebf24
|
3 |
+
size 4899126228
|
model-00017-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3064e2b5e6fc23f7fb57ca49b20e0c642812adc6c13d3b6763089734ff7effd1
|
3 |
+
size 4815257904
|
model-00018-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83c3e23431ee8e34a218345e2dca27920bac86c5bfdba59d66a0d0feffe3d39c
|
3 |
+
size 4899126228
|
model-00019-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:071a352492d774bad8a5b3bd14150c1d5186252fa2d12f2c6b3974961ece3a4c
|
3 |
+
size 4664294356
|
model-00020-of-00020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:77bf4e4b462c5936e43a745a8803ff96f16cbce16dfe0f810f5e150c1c9dafab
|
3 |
+
size 2227192160
|
model.safetensors.index.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
preprocessor_config.json
CHANGED
@@ -16,6 +16,7 @@
|
|
16 |
0.27577711
|
17 |
],
|
18 |
"max_image_tiles": 4,
|
|
|
19 |
"resample": 2,
|
20 |
"rescale_factor": 0.00392156862745098,
|
21 |
"size": {
|
|
|
16 |
0.27577711
|
17 |
],
|
18 |
"max_image_tiles": 4,
|
19 |
+
"processor_class": "MllamaProcessor",
|
20 |
"resample": 2,
|
21 |
"rescale_factor": 0.00392156862745098,
|
22 |
"size": {
|