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:87969552640e46e442b1c319557c6637f4ed5bfe83da777ac9535df3c982a7d7
|
3 |
+
size 4819363172
|
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:2dbb7031cca8c282c67cdc3848d5ac4b0120ee53ece2a348044d071cb2aa6dd3
|
3 |
+
size 4983043624
|
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:9e4442e8b496dca3ab2915b4e330ba79c7f6de495a94f5c755cdd78532574abb
|
3 |
+
size 4899125668
|
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:289e5052e1310c25a135e6dbfb2c19414899fcbc3d519fd6aa717397b12d797b
|
3 |
+
size 4899158708
|
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:4565290c8b29b5401f63228da9ab4eb020bf01a35bef462d1fa9d013da9e9a6c
|
3 |
+
size 4899158700
|
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:da842a0bd3af9176d3c43a0413ba694c0fc57235fb5da7b86a236270f7daecb7
|
3 |
+
size 4983043752
|
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:aa4e86acac49880b7239ad6e9d00b36bf3c0be65557ea01ebf6aa1a452824c33
|
3 |
+
size 4899125692
|
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:b6db5f955553e7ad19e0fc5cd0360802a02255305b304800def4d970d1c5469d
|
3 |
+
size 4899158708
|
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:5ae62fbdbb5d7cc651fa06d38e075a9937493e53524d1e5874e919823206efb9
|
3 |
+
size 4899158700
|
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:e52b5d4421beaf040e01a336788b7fc4233e425c5e93d0ea654cd8b00dbfa407
|
3 |
+
size 4983043752
|
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:2a54766303297a656e010ff9ae60803ae6a0335e3883d0615a8021aac3bdb7bb
|
3 |
+
size 4899125692
|
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:bed20bad4d0f6e16870ec38958d188df609b56349b10d3d7609f6a2a177f0ffe
|
3 |
+
size 4899158708
|
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:aaadd7bc65114dfee45e778b5a062b4989d92997600580fdaf4fddd275c08501
|
3 |
+
size 4899158700
|
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:00a8a3781988a34d4029d5b95eed6b28e4fe69a31ef98d8719756d998cddf08f
|
3 |
+
size 4983043752
|
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:9abf2287ef6edd079fe77b58b7ba15c194988a0a643fc03a333182c85093782d
|
3 |
+
size 3812709864
|
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": [
|