Upload folder using huggingface_hub
Browse files- .ipynb_checkpoints/config-checkpoint.json +1 -0
- config.json +1 -36
- model-00001-of-00030.safetensors +2 -2
- model-00030-of-00030.safetensors +2 -2
- tokenizer.json +2 -2
- tokenizer_config.json +4 -26
.ipynb_checkpoints/config-checkpoint.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"_name_or_path": "Black-Ink-Guild/Pernicious_Prophecy_70B", "architectures": ["LlamaForCausalLM"], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128009, "head_dim": 128, "hidden_act": "silu", "hidden_size": 8192, "initializer_range": 0.02, "intermediate_size": 28672, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 64, "num_hidden_layers": 80, "num_key_value_heads": 8, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": {"factor": 8.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3"}, "rope_theta": 500000.0, "tie_word_embeddings": false, "torch_dtype": "bfloat16", "transformers_version": "4.47.1", "use_cache": false, "vocab_size": 128256}
|
config.json
CHANGED
|
@@ -1,36 +1 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "Black-Ink-Guild/Pernicious_Prophecy_70B",
|
| 3 |
-
"architectures": [
|
| 4 |
-
"LlamaForCausalLM"
|
| 5 |
-
],
|
| 6 |
-
"attention_bias": false,
|
| 7 |
-
"attention_dropout": 0.0,
|
| 8 |
-
"bos_token_id": 128000,
|
| 9 |
-
"eos_token_id": 128009,
|
| 10 |
-
"head_dim": 128,
|
| 11 |
-
"hidden_act": "silu",
|
| 12 |
-
"hidden_size": 8192,
|
| 13 |
-
"initializer_range": 0.02,
|
| 14 |
-
"intermediate_size": 28672,
|
| 15 |
-
"max_position_embeddings": 131072,
|
| 16 |
-
"mlp_bias": false,
|
| 17 |
-
"model_type": "llama",
|
| 18 |
-
"num_attention_heads": 64,
|
| 19 |
-
"num_hidden_layers": 80,
|
| 20 |
-
"num_key_value_heads": 8,
|
| 21 |
-
"pretraining_tp": 1,
|
| 22 |
-
"rms_norm_eps": 1e-05,
|
| 23 |
-
"rope_scaling": {
|
| 24 |
-
"factor": 8.0,
|
| 25 |
-
"high_freq_factor": 4.0,
|
| 26 |
-
"low_freq_factor": 1.0,
|
| 27 |
-
"original_max_position_embeddings": 8192,
|
| 28 |
-
"rope_type": "llama3"
|
| 29 |
-
},
|
| 30 |
-
"rope_theta": 500000.0,
|
| 31 |
-
"tie_word_embeddings": false,
|
| 32 |
-
"torch_dtype": "bfloat16",
|
| 33 |
-
"transformers_version": "4.47.1",
|
| 34 |
-
"use_cache": false,
|
| 35 |
-
"vocab_size": 128259
|
| 36 |
-
}
|
|
|
|
| 1 |
+
{"_name_or_path": "Black-Ink-Guild/Pernicious_Prophecy_70B", "architectures": ["LlamaForCausalLM"], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128009, "head_dim": 128, "hidden_act": "silu", "hidden_size": 8192, "initializer_range": 0.02, "intermediate_size": 28672, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 64, "num_hidden_layers": 80, "num_key_value_heads": 8, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": {"factor": 8.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3"}, "rope_theta": 500000.0, "tie_word_embeddings": false, "torch_dtype": "bfloat16", "transformers_version": "4.47.1", "use_cache": false, "vocab_size": 128256}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model-00001-of-00030.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:8c3be76947dc5fced4cac765c8e5d9d06b810b7fa93d57e97d1cb460ca8b74ba
|
| 3 |
+
size 4584408776
|
model-00030-of-00030.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:a703b8928d998f25739e762a80d90bbef10bd4f6c1676554fad81b903e5d70ce
|
| 3 |
+
size 2101346400
|
tokenizer.json
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:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
|
| 3 |
+
size 17209920
|
tokenizer_config.json
CHANGED
|
@@ -2047,34 +2047,10 @@
|
|
| 2047 |
"rstrip": false,
|
| 2048 |
"single_word": false,
|
| 2049 |
"special": true
|
| 2050 |
-
},
|
| 2051 |
-
"128256": {
|
| 2052 |
-
"content": "<|reserved_special_token_248|>",
|
| 2053 |
-
"lstrip": false,
|
| 2054 |
-
"normalized": false,
|
| 2055 |
-
"rstrip": false,
|
| 2056 |
-
"single_word": false,
|
| 2057 |
-
"special": true
|
| 2058 |
-
},
|
| 2059 |
-
"128257": {
|
| 2060 |
-
"content": "<|reserved_special_token_249|>",
|
| 2061 |
-
"lstrip": false,
|
| 2062 |
-
"normalized": false,
|
| 2063 |
-
"rstrip": false,
|
| 2064 |
-
"single_word": false,
|
| 2065 |
-
"special": true
|
| 2066 |
-
},
|
| 2067 |
-
"128258": {
|
| 2068 |
-
"content": "<|reserved_special_token_250|>",
|
| 2069 |
-
"lstrip": false,
|
| 2070 |
-
"normalized": false,
|
| 2071 |
-
"rstrip": false,
|
| 2072 |
-
"single_word": false,
|
| 2073 |
-
"special": true
|
| 2074 |
}
|
| 2075 |
},
|
| 2076 |
"bos_token": "<|begin_of_text|>",
|
| 2077 |
-
"chat_template": "{% if not
|
| 2078 |
"clean_up_tokenization_spaces": true,
|
| 2079 |
"eos_token": "<|eot_id|>",
|
| 2080 |
"extra_special_tokens": {},
|
|
@@ -2084,5 +2060,7 @@
|
|
| 2084 |
],
|
| 2085 |
"model_max_length": 131072,
|
| 2086 |
"pad_token": "<|finetune_right_pad_id|>",
|
| 2087 |
-
"
|
|
|
|
|
|
|
| 2088 |
}
|
|
|
|
| 2047 |
"rstrip": false,
|
| 2048 |
"single_word": false,
|
| 2049 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
"extra_special_tokens": {},
|
|
|
|
| 2060 |
],
|
| 2061 |
"model_max_length": 131072,
|
| 2062 |
"pad_token": "<|finetune_right_pad_id|>",
|
| 2063 |
+
"padding_side": "left",
|
| 2064 |
+
"tokenizer_class": "PreTrainedTokenizer",
|
| 2065 |
+
"unk_token": null
|
| 2066 |
}
|