Upload folder using huggingface_hub
Browse files- config.json +3 -3
- generation_config.json +1 -1
- model-00001-of-00015.safetensors +2 -2
- model-00002-of-00015.safetensors +2 -2
- model-00003-of-00015.safetensors +2 -2
- model-00004-of-00015.safetensors +2 -2
- model-00005-of-00015.safetensors +2 -2
- model-00006-of-00015.safetensors +2 -2
- model-00007-of-00015.safetensors +2 -2
- model-00008-of-00015.safetensors +2 -2
- model-00009-of-00015.safetensors +2 -2
- model-00010-of-00015.safetensors +2 -2
- model-00011-of-00015.safetensors +2 -2
- model-00012-of-00015.safetensors +2 -2
- model-00013-of-00015.safetensors +2 -2
- model-00014-of-00015.safetensors +2 -2
- model-00015-of-00015.safetensors +2 -2
- tokenizer.json +63 -4
- tokenizer_config.json +1 -1
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/home/meta-llama
|
3 |
"architectures": [
|
4 |
"LlamaForCausalLM"
|
5 |
],
|
@@ -72,8 +72,8 @@
|
|
72 |
},
|
73 |
"rope_theta": 500000.0,
|
74 |
"tie_word_embeddings": false,
|
75 |
-
"torch_dtype": "
|
76 |
-
"transformers_version": "4.
|
77 |
"use_cache": true,
|
78 |
"vocab_size": 128256
|
79 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/home/linghao/.cache/huggingface/hub/models--meta-llama--Meta-Llama-3.1-70B-Instruct/snapshots/33101ce6ccc08fa6249c10a543ebfcac65173393",
|
3 |
"architectures": [
|
4 |
"LlamaForCausalLM"
|
5 |
],
|
|
|
72 |
},
|
73 |
"rope_theta": 500000.0,
|
74 |
"tie_word_embeddings": false,
|
75 |
+
"torch_dtype": "bfloat16",
|
76 |
+
"transformers_version": "4.44.0",
|
77 |
"use_cache": true,
|
78 |
"vocab_size": 128256
|
79 |
}
|
generation_config.json
CHANGED
@@ -8,5 +8,5 @@
|
|
8 |
],
|
9 |
"temperature": 0.6,
|
10 |
"top_p": 0.9,
|
11 |
-
"transformers_version": "4.
|
12 |
}
|
|
|
8 |
],
|
9 |
"temperature": 0.6,
|
10 |
"top_p": 0.9,
|
11 |
+
"transformers_version": "4.44.0"
|
12 |
}
|
model-00001-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf34a841cf97d5b73727c210a988e1031c4887ad0b214cc35c508b15611e897d
|
3 |
+
size 4819901056
|
model-00002-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f657f1dc8bb948cf81b1435bb061a8b7cd8cd2fccf2a819429a8b47942707d29
|
3 |
+
size 4984010552
|
model-00003-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f66e025778142c063937f3ded3eac522ab7a75f4d63687157817cd1f58f91edf
|
3 |
+
size 4900112736
|
model-00004-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:abac95cb052ca1d47393f2456b93d667b3a4ca88d664f110556e955dc5b393df
|
3 |
+
size 4900104792
|
model-00005-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:77e3cde809a95bea6f33cb6dd6653d3b5da4eb50180d8f923a75827351598926
|
3 |
+
size 4900104792
|
model-00006-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:580c8abf07ef77105b08dd989085d4bd6ddfb5e0c1a3c13087aa2ffa23222d2f
|
3 |
+
size 4984010640
|
model-00007-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b62dc9c6cf725a66809e03b7c9aafd90f6199095bed28bc358ace00d3447b5cd
|
3 |
+
size 4900112760
|
model-00008-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b1ea0860d7896d1a7a2c0d2991467d6d9353ef13d3768a3290b0d72aec0a0313
|
3 |
+
size 4900104792
|
model-00009-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0bd089ab1d1551bf61e2b83133a3fd6e19254e5f28a0252c18c3e58afe76a639
|
3 |
+
size 4900104792
|
model-00010-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f3ae864428fe425d18e0dc38f2b4a7799ef6e7e424ef4ba39eed69b9ba89d83
|
3 |
+
size 4984010640
|
model-00011-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4a298520a0619d16ea00301ab94c6d36d01f1c1055760b997a7ca10800f8a19
|
3 |
+
size 4900112760
|
model-00012-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:457d5013717ba1fe65487235bd0a00084105b60cea24730f8780d775c7ad2b9e
|
3 |
+
size 4900104792
|
model-00013-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:519c589cb124bb5c7781680407b97e8ff787c6d88c3bd6509cf372bcd1eead39
|
3 |
+
size 4900104792
|
model-00014-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b493c24d44fd19b5e96b96909bed47a0f98ea7336ac76c42f54214d63c124ae4
|
3 |
+
size 4984010640
|
model-00015-of-00015.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3633e359dad488970ec71697675a13698bedc3013a7e42f4299b779f38fa91f7
|
3 |
+
size 3813044168
|
tokenizer.json
CHANGED
@@ -2329,10 +2329,69 @@
|
|
2329 |
]
|
2330 |
},
|
2331 |
"post_processor": {
|
2332 |
-
"type": "
|
2333 |
-
"
|
2334 |
-
|
2335 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2336 |
},
|
2337 |
"decoder": {
|
2338 |
"type": "ByteLevel",
|
|
|
2329 |
]
|
2330 |
},
|
2331 |
"post_processor": {
|
2332 |
+
"type": "Sequence",
|
2333 |
+
"processors": [
|
2334 |
+
{
|
2335 |
+
"type": "ByteLevel",
|
2336 |
+
"add_prefix_space": true,
|
2337 |
+
"trim_offsets": false,
|
2338 |
+
"use_regex": true
|
2339 |
+
},
|
2340 |
+
{
|
2341 |
+
"type": "TemplateProcessing",
|
2342 |
+
"single": [
|
2343 |
+
{
|
2344 |
+
"SpecialToken": {
|
2345 |
+
"id": "<|begin_of_text|>",
|
2346 |
+
"type_id": 0
|
2347 |
+
}
|
2348 |
+
},
|
2349 |
+
{
|
2350 |
+
"Sequence": {
|
2351 |
+
"id": "A",
|
2352 |
+
"type_id": 0
|
2353 |
+
}
|
2354 |
+
}
|
2355 |
+
],
|
2356 |
+
"pair": [
|
2357 |
+
{
|
2358 |
+
"SpecialToken": {
|
2359 |
+
"id": "<|begin_of_text|>",
|
2360 |
+
"type_id": 0
|
2361 |
+
}
|
2362 |
+
},
|
2363 |
+
{
|
2364 |
+
"Sequence": {
|
2365 |
+
"id": "A",
|
2366 |
+
"type_id": 0
|
2367 |
+
}
|
2368 |
+
},
|
2369 |
+
{
|
2370 |
+
"SpecialToken": {
|
2371 |
+
"id": "<|begin_of_text|>",
|
2372 |
+
"type_id": 1
|
2373 |
+
}
|
2374 |
+
},
|
2375 |
+
{
|
2376 |
+
"Sequence": {
|
2377 |
+
"id": "B",
|
2378 |
+
"type_id": 1
|
2379 |
+
}
|
2380 |
+
}
|
2381 |
+
],
|
2382 |
+
"special_tokens": {
|
2383 |
+
"<|begin_of_text|>": {
|
2384 |
+
"id": "<|begin_of_text|>",
|
2385 |
+
"ids": [
|
2386 |
+
128000
|
2387 |
+
],
|
2388 |
+
"tokens": [
|
2389 |
+
"<|begin_of_text|>"
|
2390 |
+
]
|
2391 |
+
}
|
2392 |
+
}
|
2393 |
+
}
|
2394 |
+
]
|
2395 |
},
|
2396 |
"decoder": {
|
2397 |
"type": "ByteLevel",
|
tokenizer_config.json
CHANGED
@@ -2050,7 +2050,7 @@
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
-
"chat_template": "{% set
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|eot_id|>",
|
2056 |
"model_input_names": [
|
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
+
"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 {%- set date_string = \"26 Jul 2024\" %}\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{#- System message + builtin tools #}\n{{- \"<|start_header_id|>system<|end_header_id|>\\n\\n\" }}\n{%- if builtin_tools is defined or tools is not none %}\n {{- \"Environment: ipython\\n\" }}\n{%- endif %}\n{%- if builtin_tools is defined %}\n {{- \"Tools: \" + builtin_tools | reject('equalto', 'code_interpreter') | join(\", \") + \"\\n\\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\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'+ message['content'] | trim + '<|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 {%- if builtin_tools is defined and tool_call.name in builtin_tools %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- \"<|python_tag|>\" + tool_call.name + \".call(\" }}\n {%- for arg_name, arg_val in tool_call.arguments | items %}\n {{- arg_name + '=\"' + arg_val + '\"' }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- endif %}\n {%- endfor %}\n {{- \")\" }}\n {%- else %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- '{\"name\": \"' + tool_call.name + '\", ' }}\n {{- '\"parameters\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- \"}\" }}\n {%- endif %}\n {%- if builtin_tools is defined %}\n {#- This means we're in ipython mode #}\n {{- \"<|eom_id|>\" }}\n {%- else %}\n {{- \"<|eot_id|>\" }}\n {%- endif %}\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",
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|eot_id|>",
|
2056 |
"model_input_names": [
|