Lin-K76 commited on
Commit
17e44d2
1 Parent(s): fc4ffcb

Upload folder using huggingface_hub

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "/home/meta-llama/Meta-Llama-3.1-70B-Instruct",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
@@ -72,8 +72,8 @@
72
  },
73
  "rope_theta": 500000.0,
74
  "tie_word_embeddings": false,
75
- "torch_dtype": "float16",
76
- "transformers_version": "4.43.1",
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.43.1"
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:833c0d04ec689e4782d3cfc5138fe709cbd920f7655171eedb85f20f19350751
3
- size 4819901024
 
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:9fb5ab9e2d49e7122420e634ba328cb169979cfe91ba9995787962ad5f1bc8c9
3
- size 4984010504
 
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:6070fe7ff489d3579a50880c7babf2b465050f861bb74850a7635547696fda70
3
- size 4900112688
 
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:549d84975ab47bc0348e1d3ca0cc72690867090f860806a385bd439856aa7f34
3
- size 4900104736
 
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:00c830dc5ae21000864fa09dd29308c936a4df916518b091b76484a4ab4c9eb3
3
- size 4900104736
 
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:f3485fcd9fa883b35a2c1ac03ed26d6959380a09d3d3887cb3bdccffa1264af5
3
- size 4984010592
 
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:abf0ad5eaa8bc903b7f559b1dbc1847eaa0321d2f4cce09e48b3125eaee0547c
3
- size 4900112704
 
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:974949324cfe3ffb5e7559e148e0c3ef6810838439dc8e1a9a3d861dd3bb85b1
3
- size 4900104736
 
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:d5a51e7fe1039e1af81f419681639bea7e3c823727f046c9f94ac76c4804d03a
3
- size 4900104736
 
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:fe8e0024f70430abdb96019d8a238a9459f613834b313775b547f003ac2063fb
3
- size 4984010592
 
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:3f070337765630c8a7419e4e1be59dde6ee20ab3a3a55e743a4883d29be97068
3
- size 4900112704
 
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:b72f947bfad3df09542eb9968a5a08c148effbe7c1de13bf2587af3d5aead22f
3
- size 4900104736
 
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:2467a17163b7dfd8cc086283536a8cd36134ffaf99ad7402ca19572e6d82b08b
3
- size 4900104736
 
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:69566952e71339c6f8c0c1831df235a6ff694433e41ffa7c411e91798e15cada
3
- size 4984010592
 
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:598c8495d0fc38b6bda0a0bdafd2ac04cfc7fac761eb547601ea54133eca3ef2
3
- size 3813044152
 
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": "ByteLevel",
2333
- "add_prefix_space": true,
2334
- "trim_offsets": false,
2335
- "use_regex": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}",
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": [