Lin-K76 commited on
Commit
4b76cb0
1 Parent(s): 090502b

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:e6fbe18854dc528d1f94f85c2f99a0205413337b93d70f446e4a288f201046fb
3
- size 4819363108
 
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:cfe5881199640e97ed4cce37a01328f88dc445989a7a0f5865a4e26a2a453058
3
- size 4983043536
 
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:b25b4c1a21a6ed50ea260814ac537728c06c7e5edf7d9dd126be4aed1f5e4c95
3
- size 4899125572
 
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:2724a850a52bf4f9be0ded8a5bd24f2cfa9861488412a4c7084e693645e07077
3
- size 4899158612
 
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:eedc43aaf5d103c480f406f8a5e8ab6902eb0175ed597de179cad9c0990de293
3
- size 4899158604
 
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:0f187355d002b685a079821843dc89e7e4ce160ea9c30b839d484ed0b373b73f
3
- size 4983043664
 
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:923db887ff8729b441140c18a3a67b4a677c5b9015aa2c5c9fb4b19b6741efee
3
- size 4899125596
 
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:19d4c3a2be06d38160a1bc8019ccda6e63bd7fb5c32ece44a254dcfa270a1c2a
3
- size 4899158612
 
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:fd2b4adac448ed8188c0298f4030d5924140d49d4b3733ec9b4f4a4cc0c64fa1
3
- size 4899158604
 
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:a1ae029ecc4104f0aaf8eddb9c5452ef5301c47bbaff6cf1f36c959161c80e25
3
- size 4983043664
 
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:b0a5e0ffe0f17f29768ba3bb215800890eb95bb1bbf7f43f655b6499b2940a4d
3
- size 4899125596
 
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:84c6f73a82e3ec317e9f29cb003d68effc86b5db0f91dfeadeaca93c26a49bfc
3
- size 4899158612
 
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:3bd94ffad644c68ae821ace26d5ea7a2272c004e46bdf8eae7eba3507fc27a34
3
- size 4899158604
 
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:1aeabee9f57c9b3781b8ea610b4b8b852a402970e030c665ddcaee97bf4a4d7e
3
- size 4983043664
 
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:6d99232aed7a2e2df751e8d6162c29fd5e534b2b21480e4baf0e72f0accf9e9e
3
- size 3812709832
 
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": "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": [