OpenSourceRonin commited on
Commit
ec6490e
·
verified ·
1 Parent(s): 20860cc

Upload Meta-Llama-3.1-405B-Instruct-v16-k65536-256-woft model

Browse files
config.json CHANGED
The diff for this file is too large to render. See raw diff
 
generation_config.json CHANGED
@@ -1,16 +1,10 @@
1
  {
2
- "attn_implementation": "flash_attention_2",
3
  "bos_token_id": 128000,
4
- "do_sample": true,
5
  "eos_token_id": [
6
  128001,
7
  128008,
8
  128009
9
  ],
10
- "num_assistant_tokens": 5,
11
- "num_assistant_tokens_schedule": "heuristic",
12
- "return_legacy_cache": true,
13
- "temperature": 0.6,
14
- "top_p": 0.9,
15
- "transformers_version": "4.45.1"
16
  }
 
1
  {
2
+ "_from_model_config": true,
3
  "bos_token_id": 128000,
 
4
  "eos_token_id": [
5
  128001,
6
  128008,
7
  128009
8
  ],
9
+ "transformers_version": "4.49.0"
 
 
 
 
 
10
  }
model-00001-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fe681b35de9e648f0d2532c78a7807743162ebfd7d3a351b5f269b21a53d7e3d
3
- size 4931969392
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:794b789da20b65785af0705c35a37b5caabe1848b4f7916002af2c2665808dc3
3
+ size 4931501144
model-00002-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:06baa8a76eadb34397324435630abfd0134f021768c1c5c0a397fea0b2e7af54
3
- size 4907246368
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6b5fee95a4399234027a2d9251011e3835ca9b762db3257b90b6918e652ec3c
3
+ size 4904815464
model-00003-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b85b075a7d485051fdff3d073d6f8808a8141652197001963c40263bb4a876b5
3
- size 4907246696
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de68733440975643b83a46aa9bafef67b253882d8d1f0d375f63d0a5c2dd90ab
3
+ size 4904815736
model-00004-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d78473fede0983a9e5c27f7e55f08691807ecb1522450c374f190af2914c2638
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:658914584a8473e4fb51c5aad7eb21d047c51a494dd829c5db805d0c0415e601
3
+ size 4904815760
model-00005-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:31f0ed3d7031cd2ffa61764cdc364f5a952cc8acd5d438c4526bc1690b415240
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e6f3668497a20f483689953d4f6c95124752c32558aa661caf84f3cee03dfb6
3
+ size 4904815760
model-00006-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ec0addc6ca6368aeaddfcf2848fceb4c4444f8b9630591a28e40a6af08653e1d
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b7b31ba208846125cff3d560e644cdce3eae8a4e3b784084fa481cb52d4b83f
3
+ size 4904815760
model-00007-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c8df992a02b9c421bd17edcc3e00fce6649fb98e3b3f91f1f0aba5d4435c60e2
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a696338db87ec2078fa29b052ac899aa034c568dc9e749dfef1b55966b395e3
3
+ size 4904815760
model-00008-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:42cd17dce94f89809e4264c87c39f8cb57b34b896590d5b7757ca4fd502c992d
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5c606a4d9cf8aa69e63311ed201a0e17dd67af0fecaa758a723dd69da1f1a17
3
+ size 4904815760
model-00009-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c9853a321750e01772f3f38cf43e5b3d8e12b031e87f4888893944c8e4e82591
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:892cc31f4963363adb755a37b3751e4e951b1867a651b090281380b93283aaf6
3
+ size 4904815760
model-00010-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a11921d33677b1f374e229f5d7e9ebc0b0c47483b1b159d530e6280f19b6e3ad
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9359503aff4f0cce15fef8211ab7c5841355b7c5eb4cdeb749f3abaa8ad6e2d5
3
+ size 4904815760
model-00011-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:522809e2af985660045f93ec1b5f9da6b92e7b8fe973ac5bdd257c36e5713841
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6979ca0b654153639d76150b4e7307c1c451e05a8333dfbe939a35786119f869
3
+ size 4904815760
model-00012-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0ec73ecde66f709e568f2fb5c25e99c99435a20f00317e21ecbd6ad991ade332
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e085add3031205a0c651821f62ab0bbfd517dcbc9f8771d82033c7f460a52559
3
+ size 4904815760
model-00013-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:168d815e6c299dd338f2fdc6eb75a37bdbfccc4b04fedabaf3ff07991d35edab
3
- size 4907246720
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45fea2a8c0da6d77e605053a8af6fae101c7c9b7e1acfe4296f3c5293be842db
3
+ size 4904815760
model-00014-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1528e5adfda59f4da11874f74f54c914932ff8e8b3f40b2c9321a509c2bdc003
3
- size 4907246960
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3554b789db2a10c2dae49f9ba2e79af8c666bd2d5bd18e2cce7e0a386049c50b
3
+ size 4904815960
model-00015-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3e783b8ca7186d4a49a7216d9646bbd07ae9bf34570472c956d3cede544f5b1f
3
- size 4907247072
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9195383153e171d3f1f4704abd3ecc0ca7fb7aec3957f7b53670cae3f2efa9a
3
+ size 4904816056
model-00016-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9da00fcdc7385da9bb9ea4705c3d721dd26e69ebb380e30b65ddff63dc5a9c82
3
- size 4907247072
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf0583f8ae83af1aa82bb9356d67cf4fc61082d6e5e25242c7d5cbea83d1793a
3
+ size 4904816056
model-00017-of-00018.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:062f8ca21f2df583c839532df65a4004cf872821355f237e3171b99f7bfd56bc
3
- size 2951191360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b107e3a3a77ae9e33c17dd43d5678a13499839e34d23aa1f456f154cd3fdda1
3
+ size 2949836376
model.safetensors.index.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -2053,11 +2053,12 @@
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
  "legacy": false,
2057
  "model_input_names": [
2058
  "input_ids",
2059
  "attention_mask"
2060
  ],
2061
  "model_max_length": 131072,
2062
- "tokenizer_class": "PreTrainedTokenizerFast"
2063
  }
 
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
+ "extra_special_tokens": {},
2057
  "legacy": false,
2058
  "model_input_names": [
2059
  "input_ids",
2060
  "attention_mask"
2061
  ],
2062
  "model_max_length": 131072,
2063
+ "tokenizer_class": "PreTrainedTokenizer"
2064
  }