Initial file commit
Browse files- README.md +60 -0
- chat_class.py +94 -0
- config.json +35 -0
- generation_config.json +6 -0
- model-00001-of-00006.safetensors +3 -0
- model-00002-of-00006.safetensors +3 -0
- model-00003-of-00006.safetensors +3 -0
- model-00004-of-00006.safetensors +3 -0
- model-00005-of-00006.safetensors +3 -0
- model-00006-of-00006.safetensors +3 -0
- model.safetensors.index.json +298 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +256 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# DCLM-7B-Chat
|
2 |
+
|
3 |
+
This is a fine-tuned version of the DCLM-7B baseline model trained for chat
|
4 |
+
completions.
|
5 |
+
|
6 |
+
## Quick start
|
7 |
+
|
8 |
+
To use the model, `open_lm` must first be installed:
|
9 |
+
```shell
|
10 |
+
pip install git+https://github.com/mlfoundations/open_lm.git
|
11 |
+
```
|
12 |
+
|
13 |
+
Then simply load the model and generate responses:
|
14 |
+
```python
|
15 |
+
from open_lm.hf import *
|
16 |
+
from transformers import (
|
17 |
+
AutoModelForCausalLM,
|
18 |
+
AutoTokenizer,
|
19 |
+
)
|
20 |
+
|
21 |
+
|
22 |
+
model = AutoModelForCausalLM.from_pretrained("mathewhe/DCLM-7B-Chat")
|
23 |
+
tokenizer = AutoTokenizer.from_pretrained("mathewhe/DCLM-7B-Chat")
|
24 |
+
|
25 |
+
messages = [
|
26 |
+
{"role": "user", "content": "What is an LLM?"},
|
27 |
+
]
|
28 |
+
|
29 |
+
inputs = tokenizer.apply_chat_template(messages)
|
30 |
+
|
31 |
+
print(tokenizer.decode(model.generate(**inputs)[0]))
|
32 |
+
```
|
33 |
+
|
34 |
+
## Chat template
|
35 |
+
|
36 |
+
This model uses the following chat template and does not support a separate
|
37 |
+
system prompt:
|
38 |
+
```
|
39 |
+
<|endoftext|>[INST] <user-message> [/INST][ASST] <llm-response> [/ASST]<|endoftext|>
|
40 |
+
```
|
41 |
+
|
42 |
+
The included tokenizer will correctly format messages, so you should not have
|
43 |
+
to manually format the input text.
|
44 |
+
|
45 |
+
Instead, use the tokenizer's `apply_chat_template()` method on a list of
|
46 |
+
messages.
|
47 |
+
Each message should be a dict with two keys:
|
48 |
+
- "role": Either "user" or "assistant".
|
49 |
+
- "content": The message to include.
|
50 |
+
|
51 |
+
For example:
|
52 |
+
```python
|
53 |
+
messages = [
|
54 |
+
{"role": "user", "content": "Solve for x: 3x=4"},
|
55 |
+
{"role": "assistant", "content": "3x=4\n(3x)/3=(4)/3\nx=4/3"},
|
56 |
+
{"role": "user", "content": "Please explain your work."},
|
57 |
+
]
|
58 |
+
```
|
59 |
+
|
60 |
+
See the example code in the included `chat_class.py` module for more details.
|
chat_class.py
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from open_lm.hf import *
|
2 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
3 |
+
|
4 |
+
|
5 |
+
class Chat:
|
6 |
+
def __init__(
|
7 |
+
self,
|
8 |
+
path="mathewhe/DCLM-7B-Chat"
|
9 |
+
device="cuda",
|
10 |
+
):
|
11 |
+
r"""
|
12 |
+
Construct :class:`Chat`\.
|
13 |
+
|
14 |
+
Args:
|
15 |
+
path (str): Model name or path.
|
16 |
+
device (str): Model device.
|
17 |
+
"""
|
18 |
+
self.tokenizer = AutoTokenizer.from_pretrained(path)
|
19 |
+
self.tokenizer.add_tokens(
|
20 |
+
["[ASST]", "[INST]", "[/ASST]", "[/INST]"],
|
21 |
+
special_tokens=True,
|
22 |
+
)
|
23 |
+
self.model = AutoModelForCausalLM.from_pretrained(path, device_map="cuda")
|
24 |
+
|
25 |
+
self.messages = list()
|
26 |
+
self.device = device
|
27 |
+
self.gen_kwargs = {
|
28 |
+
"min_new_tokens": 1,
|
29 |
+
"max_new_tokens": 2048,
|
30 |
+
"top_p": 0.8,
|
31 |
+
"temperature": 0.8,
|
32 |
+
"do_sample": True,
|
33 |
+
"repetition_penalty": 1.1,
|
34 |
+
}
|
35 |
+
|
36 |
+
def reset(self):
|
37 |
+
self.messages = list()
|
38 |
+
|
39 |
+
def _inference(self, messages):
|
40 |
+
chat = self.tokenizer.apply_chat_template(messages, tokenize=False)
|
41 |
+
inputs = {
|
42 |
+
k: v.to(self.device)
|
43 |
+
for k, v in self.tokenizer(chat, return_tensors="pt").items()
|
44 |
+
}
|
45 |
+
input_length = len(inputs["input_ids"][0])
|
46 |
+
output = self.model.generate(**inputs, **self.gen_kwargs)
|
47 |
+
response = self.tokenizer.decode(
|
48 |
+
output[0].tolist()[input_length:],
|
49 |
+
skip_special_tokens=True,
|
50 |
+
)
|
51 |
+
if response.startswith(" "): # fix this so it's handled correctly by the tokenizer
|
52 |
+
response = response[1:]
|
53 |
+
return response
|
54 |
+
|
55 |
+
def message(self, message):
|
56 |
+
r"""
|
57 |
+
Add a user message to the chat history and save and return a response.
|
58 |
+
|
59 |
+
Args:
|
60 |
+
message (str): The user message.
|
61 |
+
"""
|
62 |
+
self.messages.append({"role": "user", "content": message})
|
63 |
+
response = self._inference(self.messages)
|
64 |
+
self.messages.append({"role": "assistant", "content": response})
|
65 |
+
return response
|
66 |
+
|
67 |
+
def cli_chat(self):
|
68 |
+
r"""
|
69 |
+
For CLI-based chatting (with history).
|
70 |
+
"""
|
71 |
+
asst_prompt = "Assistant: "
|
72 |
+
user_prompt = "---> User: "
|
73 |
+
print(f"{asst_prompt}Hi! How can I help you?\n")
|
74 |
+
message = input(user_prompt)
|
75 |
+
while not (message is None or message == ""):
|
76 |
+
response = self.message(message)
|
77 |
+
print(f"\n{asst_prompt}{response}\n")
|
78 |
+
message = input(user_prompt)
|
79 |
+
|
80 |
+
def instruct(self, message):
|
81 |
+
r"""
|
82 |
+
For single instruction-response interactions (without history).
|
83 |
+
|
84 |
+
Args:
|
85 |
+
message (str): An instruction or one-off user message.
|
86 |
+
"""
|
87 |
+
messages = [{"role": "user", "content": message}]
|
88 |
+
response = self._inference(messages)
|
89 |
+
return response
|
90 |
+
|
91 |
+
|
92 |
+
if __name__ == "__main__":
|
93 |
+
chat = Chat()
|
94 |
+
chat.cli_chat()
|
config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "apple/DCLM-Baseline-7B",
|
3 |
+
"apply_qk_norm": true,
|
4 |
+
"architectures": [
|
5 |
+
"OpenLMForCausalLM"
|
6 |
+
],
|
7 |
+
"attn_activation": null,
|
8 |
+
"attn_name": "torch_attn",
|
9 |
+
"attn_seq_scalar": null,
|
10 |
+
"attn_seq_scalar_alpha": null,
|
11 |
+
"dim": 4096,
|
12 |
+
"ffn_type": "swiglu_torch",
|
13 |
+
"model": "open_lm_7b",
|
14 |
+
"model_type": "openlm",
|
15 |
+
"moe_capacity_factor": 1.25,
|
16 |
+
"moe_expert_model_parallelism": false,
|
17 |
+
"moe_freq": 0,
|
18 |
+
"moe_loss_weight": 0.1,
|
19 |
+
"moe_num_experts": null,
|
20 |
+
"moe_top_k": 2,
|
21 |
+
"moe_weight_parallelism": false,
|
22 |
+
"n_heads": 32,
|
23 |
+
"n_layers": 32,
|
24 |
+
"norm_eps": 1e-05,
|
25 |
+
"norm_type": "gain_only_lp_layer_norm",
|
26 |
+
"params": null,
|
27 |
+
"positional_embedding_type": "rotary",
|
28 |
+
"post_embed_norm": false,
|
29 |
+
"qk_norm": true,
|
30 |
+
"seq_len": 2048,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.42.4",
|
33 |
+
"vocab_size": 50432,
|
34 |
+
"weight_tying": false
|
35 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"transformers_version": "4.42.4",
|
4 |
+
"eos_token_id": 0,
|
5 |
+
"pad_token_id": 0
|
6 |
+
}
|
model-00001-of-00006.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4407c083346f4dedacbfbe71ddc38e1913e575fef3b601159231e312db460999
|
3 |
+
size 4874115416
|
model-00002-of-00006.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:200788ae42fedbf8b005d7f4ff5f052ba9507ef7b4c9f74abdcdf5fee0f49f1b
|
3 |
+
size 4857404912
|
model-00003-of-00006.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d91609e4ce09bbc6489fbaefeb67238a753acf4e378de26af0299931076292b9
|
3 |
+
size 4857404960
|
model-00004-of-00006.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:adf3854317a3d13f84d2c505be1c49aac69c674346cf09d432525f227d6d8666
|
3 |
+
size 4857404960
|
model-00005-of-00006.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:563c4f1c3bdbaa6264ef3863936586ab466056db929fa801feb9ce03c661fc00
|
3 |
+
size 4857404960
|
model-00006-of-00006.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a0843dcd98c19d253b4b4400fd8c689df071922401a67df37f243aff67613c8
|
3 |
+
size 3254996944
|
model.safetensors.index.json
ADDED
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"metadata": {
|
3 |
+
"total_size": 27558699008
|
4 |
+
},
|
5 |
+
"weight_map": {
|
6 |
+
"model.layers.0.attention.in_proj.weight": "model-00001-of-00006.safetensors",
|
7 |
+
"model.layers.0.attention.k_norm.weight": "model-00001-of-00006.safetensors",
|
8 |
+
"model.layers.0.attention.out_proj.weight": "model-00001-of-00006.safetensors",
|
9 |
+
"model.layers.0.attention.pos_embed.inv_freq": "model-00001-of-00006.safetensors",
|
10 |
+
"model.layers.0.attention.q_norm.weight": "model-00001-of-00006.safetensors",
|
11 |
+
"model.layers.0.attention_norm.weight": "model-00001-of-00006.safetensors",
|
12 |
+
"model.layers.0.feed_forward.w12.weight": "model-00001-of-00006.safetensors",
|
13 |
+
"model.layers.0.feed_forward.w3.weight": "model-00001-of-00006.safetensors",
|
14 |
+
"model.layers.0.ffn_norm.weight": "model-00001-of-00006.safetensors",
|
15 |
+
"model.layers.1.attention.in_proj.weight": "model-00001-of-00006.safetensors",
|
16 |
+
"model.layers.1.attention.k_norm.weight": "model-00001-of-00006.safetensors",
|
17 |
+
"model.layers.1.attention.out_proj.weight": "model-00001-of-00006.safetensors",
|
18 |
+
"model.layers.1.attention.pos_embed.inv_freq": "model-00001-of-00006.safetensors",
|
19 |
+
"model.layers.1.attention.q_norm.weight": "model-00001-of-00006.safetensors",
|
20 |
+
"model.layers.1.attention_norm.weight": "model-00001-of-00006.safetensors",
|
21 |
+
"model.layers.1.feed_forward.w12.weight": "model-00001-of-00006.safetensors",
|
22 |
+
"model.layers.1.feed_forward.w3.weight": "model-00001-of-00006.safetensors",
|
23 |
+
"model.layers.1.ffn_norm.weight": "model-00001-of-00006.safetensors",
|
24 |
+
"model.layers.10.attention.in_proj.weight": "model-00002-of-00006.safetensors",
|
25 |
+
"model.layers.10.attention.k_norm.weight": "model-00002-of-00006.safetensors",
|
26 |
+
"model.layers.10.attention.out_proj.weight": "model-00002-of-00006.safetensors",
|
27 |
+
"model.layers.10.attention.pos_embed.inv_freq": "model-00002-of-00006.safetensors",
|
28 |
+
"model.layers.10.attention.q_norm.weight": "model-00002-of-00006.safetensors",
|
29 |
+
"model.layers.10.attention_norm.weight": "model-00002-of-00006.safetensors",
|
30 |
+
"model.layers.10.feed_forward.w12.weight": "model-00002-of-00006.safetensors",
|
31 |
+
"model.layers.10.feed_forward.w3.weight": "model-00002-of-00006.safetensors",
|
32 |
+
"model.layers.10.ffn_norm.weight": "model-00002-of-00006.safetensors",
|
33 |
+
"model.layers.11.attention.in_proj.weight": "model-00003-of-00006.safetensors",
|
34 |
+
"model.layers.11.attention.k_norm.weight": "model-00003-of-00006.safetensors",
|
35 |
+
"model.layers.11.attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
36 |
+
"model.layers.11.attention.pos_embed.inv_freq": "model-00003-of-00006.safetensors",
|
37 |
+
"model.layers.11.attention.q_norm.weight": "model-00003-of-00006.safetensors",
|
38 |
+
"model.layers.11.attention_norm.weight": "model-00003-of-00006.safetensors",
|
39 |
+
"model.layers.11.feed_forward.w12.weight": "model-00003-of-00006.safetensors",
|
40 |
+
"model.layers.11.feed_forward.w3.weight": "model-00003-of-00006.safetensors",
|
41 |
+
"model.layers.11.ffn_norm.weight": "model-00003-of-00006.safetensors",
|
42 |
+
"model.layers.12.attention.in_proj.weight": "model-00003-of-00006.safetensors",
|
43 |
+
"model.layers.12.attention.k_norm.weight": "model-00003-of-00006.safetensors",
|
44 |
+
"model.layers.12.attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
45 |
+
"model.layers.12.attention.pos_embed.inv_freq": "model-00003-of-00006.safetensors",
|
46 |
+
"model.layers.12.attention.q_norm.weight": "model-00003-of-00006.safetensors",
|
47 |
+
"model.layers.12.attention_norm.weight": "model-00003-of-00006.safetensors",
|
48 |
+
"model.layers.12.feed_forward.w12.weight": "model-00003-of-00006.safetensors",
|
49 |
+
"model.layers.12.feed_forward.w3.weight": "model-00003-of-00006.safetensors",
|
50 |
+
"model.layers.12.ffn_norm.weight": "model-00003-of-00006.safetensors",
|
51 |
+
"model.layers.13.attention.in_proj.weight": "model-00003-of-00006.safetensors",
|
52 |
+
"model.layers.13.attention.k_norm.weight": "model-00003-of-00006.safetensors",
|
53 |
+
"model.layers.13.attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
54 |
+
"model.layers.13.attention.pos_embed.inv_freq": "model-00003-of-00006.safetensors",
|
55 |
+
"model.layers.13.attention.q_norm.weight": "model-00003-of-00006.safetensors",
|
56 |
+
"model.layers.13.attention_norm.weight": "model-00003-of-00006.safetensors",
|
57 |
+
"model.layers.13.feed_forward.w12.weight": "model-00003-of-00006.safetensors",
|
58 |
+
"model.layers.13.feed_forward.w3.weight": "model-00003-of-00006.safetensors",
|
59 |
+
"model.layers.13.ffn_norm.weight": "model-00003-of-00006.safetensors",
|
60 |
+
"model.layers.14.attention.in_proj.weight": "model-00003-of-00006.safetensors",
|
61 |
+
"model.layers.14.attention.k_norm.weight": "model-00003-of-00006.safetensors",
|
62 |
+
"model.layers.14.attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
63 |
+
"model.layers.14.attention.pos_embed.inv_freq": "model-00003-of-00006.safetensors",
|
64 |
+
"model.layers.14.attention.q_norm.weight": "model-00003-of-00006.safetensors",
|
65 |
+
"model.layers.14.attention_norm.weight": "model-00003-of-00006.safetensors",
|
66 |
+
"model.layers.14.feed_forward.w12.weight": "model-00003-of-00006.safetensors",
|
67 |
+
"model.layers.14.feed_forward.w3.weight": "model-00003-of-00006.safetensors",
|
68 |
+
"model.layers.14.ffn_norm.weight": "model-00003-of-00006.safetensors",
|
69 |
+
"model.layers.15.attention.in_proj.weight": "model-00003-of-00006.safetensors",
|
70 |
+
"model.layers.15.attention.k_norm.weight": "model-00003-of-00006.safetensors",
|
71 |
+
"model.layers.15.attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
72 |
+
"model.layers.15.attention.pos_embed.inv_freq": "model-00003-of-00006.safetensors",
|
73 |
+
"model.layers.15.attention.q_norm.weight": "model-00003-of-00006.safetensors",
|
74 |
+
"model.layers.15.attention_norm.weight": "model-00003-of-00006.safetensors",
|
75 |
+
"model.layers.15.feed_forward.w12.weight": "model-00003-of-00006.safetensors",
|
76 |
+
"model.layers.15.feed_forward.w3.weight": "model-00003-of-00006.safetensors",
|
77 |
+
"model.layers.15.ffn_norm.weight": "model-00003-of-00006.safetensors",
|
78 |
+
"model.layers.16.attention.in_proj.weight": "model-00003-of-00006.safetensors",
|
79 |
+
"model.layers.16.attention.k_norm.weight": "model-00003-of-00006.safetensors",
|
80 |
+
"model.layers.16.attention.out_proj.weight": "model-00003-of-00006.safetensors",
|
81 |
+
"model.layers.16.attention.pos_embed.inv_freq": "model-00003-of-00006.safetensors",
|
82 |
+
"model.layers.16.attention.q_norm.weight": "model-00003-of-00006.safetensors",
|
83 |
+
"model.layers.16.attention_norm.weight": "model-00003-of-00006.safetensors",
|
84 |
+
"model.layers.16.feed_forward.w12.weight": "model-00003-of-00006.safetensors",
|
85 |
+
"model.layers.16.feed_forward.w3.weight": "model-00003-of-00006.safetensors",
|
86 |
+
"model.layers.16.ffn_norm.weight": "model-00003-of-00006.safetensors",
|
87 |
+
"model.layers.17.attention.in_proj.weight": "model-00004-of-00006.safetensors",
|
88 |
+
"model.layers.17.attention.k_norm.weight": "model-00004-of-00006.safetensors",
|
89 |
+
"model.layers.17.attention.out_proj.weight": "model-00004-of-00006.safetensors",
|
90 |
+
"model.layers.17.attention.pos_embed.inv_freq": "model-00004-of-00006.safetensors",
|
91 |
+
"model.layers.17.attention.q_norm.weight": "model-00004-of-00006.safetensors",
|
92 |
+
"model.layers.17.attention_norm.weight": "model-00004-of-00006.safetensors",
|
93 |
+
"model.layers.17.feed_forward.w12.weight": "model-00004-of-00006.safetensors",
|
94 |
+
"model.layers.17.feed_forward.w3.weight": "model-00004-of-00006.safetensors",
|
95 |
+
"model.layers.17.ffn_norm.weight": "model-00004-of-00006.safetensors",
|
96 |
+
"model.layers.18.attention.in_proj.weight": "model-00004-of-00006.safetensors",
|
97 |
+
"model.layers.18.attention.k_norm.weight": "model-00004-of-00006.safetensors",
|
98 |
+
"model.layers.18.attention.out_proj.weight": "model-00004-of-00006.safetensors",
|
99 |
+
"model.layers.18.attention.pos_embed.inv_freq": "model-00004-of-00006.safetensors",
|
100 |
+
"model.layers.18.attention.q_norm.weight": "model-00004-of-00006.safetensors",
|
101 |
+
"model.layers.18.attention_norm.weight": "model-00004-of-00006.safetensors",
|
102 |
+
"model.layers.18.feed_forward.w12.weight": "model-00004-of-00006.safetensors",
|
103 |
+
"model.layers.18.feed_forward.w3.weight": "model-00004-of-00006.safetensors",
|
104 |
+
"model.layers.18.ffn_norm.weight": "model-00004-of-00006.safetensors",
|
105 |
+
"model.layers.19.attention.in_proj.weight": "model-00004-of-00006.safetensors",
|
106 |
+
"model.layers.19.attention.k_norm.weight": "model-00004-of-00006.safetensors",
|
107 |
+
"model.layers.19.attention.out_proj.weight": "model-00004-of-00006.safetensors",
|
108 |
+
"model.layers.19.attention.pos_embed.inv_freq": "model-00004-of-00006.safetensors",
|
109 |
+
"model.layers.19.attention.q_norm.weight": "model-00004-of-00006.safetensors",
|
110 |
+
"model.layers.19.attention_norm.weight": "model-00004-of-00006.safetensors",
|
111 |
+
"model.layers.19.feed_forward.w12.weight": "model-00004-of-00006.safetensors",
|
112 |
+
"model.layers.19.feed_forward.w3.weight": "model-00004-of-00006.safetensors",
|
113 |
+
"model.layers.19.ffn_norm.weight": "model-00004-of-00006.safetensors",
|
114 |
+
"model.layers.2.attention.in_proj.weight": "model-00001-of-00006.safetensors",
|
115 |
+
"model.layers.2.attention.k_norm.weight": "model-00001-of-00006.safetensors",
|
116 |
+
"model.layers.2.attention.out_proj.weight": "model-00001-of-00006.safetensors",
|
117 |
+
"model.layers.2.attention.pos_embed.inv_freq": "model-00001-of-00006.safetensors",
|
118 |
+
"model.layers.2.attention.q_norm.weight": "model-00001-of-00006.safetensors",
|
119 |
+
"model.layers.2.attention_norm.weight": "model-00001-of-00006.safetensors",
|
120 |
+
"model.layers.2.feed_forward.w12.weight": "model-00001-of-00006.safetensors",
|
121 |
+
"model.layers.2.feed_forward.w3.weight": "model-00001-of-00006.safetensors",
|
122 |
+
"model.layers.2.ffn_norm.weight": "model-00001-of-00006.safetensors",
|
123 |
+
"model.layers.20.attention.in_proj.weight": "model-00004-of-00006.safetensors",
|
124 |
+
"model.layers.20.attention.k_norm.weight": "model-00004-of-00006.safetensors",
|
125 |
+
"model.layers.20.attention.out_proj.weight": "model-00004-of-00006.safetensors",
|
126 |
+
"model.layers.20.attention.pos_embed.inv_freq": "model-00004-of-00006.safetensors",
|
127 |
+
"model.layers.20.attention.q_norm.weight": "model-00004-of-00006.safetensors",
|
128 |
+
"model.layers.20.attention_norm.weight": "model-00004-of-00006.safetensors",
|
129 |
+
"model.layers.20.feed_forward.w12.weight": "model-00004-of-00006.safetensors",
|
130 |
+
"model.layers.20.feed_forward.w3.weight": "model-00004-of-00006.safetensors",
|
131 |
+
"model.layers.20.ffn_norm.weight": "model-00004-of-00006.safetensors",
|
132 |
+
"model.layers.21.attention.in_proj.weight": "model-00004-of-00006.safetensors",
|
133 |
+
"model.layers.21.attention.k_norm.weight": "model-00004-of-00006.safetensors",
|
134 |
+
"model.layers.21.attention.out_proj.weight": "model-00004-of-00006.safetensors",
|
135 |
+
"model.layers.21.attention.pos_embed.inv_freq": "model-00004-of-00006.safetensors",
|
136 |
+
"model.layers.21.attention.q_norm.weight": "model-00004-of-00006.safetensors",
|
137 |
+
"model.layers.21.attention_norm.weight": "model-00004-of-00006.safetensors",
|
138 |
+
"model.layers.21.feed_forward.w12.weight": "model-00004-of-00006.safetensors",
|
139 |
+
"model.layers.21.feed_forward.w3.weight": "model-00004-of-00006.safetensors",
|
140 |
+
"model.layers.21.ffn_norm.weight": "model-00004-of-00006.safetensors",
|
141 |
+
"model.layers.22.attention.in_proj.weight": "model-00004-of-00006.safetensors",
|
142 |
+
"model.layers.22.attention.k_norm.weight": "model-00004-of-00006.safetensors",
|
143 |
+
"model.layers.22.attention.out_proj.weight": "model-00004-of-00006.safetensors",
|
144 |
+
"model.layers.22.attention.pos_embed.inv_freq": "model-00004-of-00006.safetensors",
|
145 |
+
"model.layers.22.attention.q_norm.weight": "model-00004-of-00006.safetensors",
|
146 |
+
"model.layers.22.attention_norm.weight": "model-00004-of-00006.safetensors",
|
147 |
+
"model.layers.22.feed_forward.w12.weight": "model-00004-of-00006.safetensors",
|
148 |
+
"model.layers.22.feed_forward.w3.weight": "model-00004-of-00006.safetensors",
|
149 |
+
"model.layers.22.ffn_norm.weight": "model-00004-of-00006.safetensors",
|
150 |
+
"model.layers.23.attention.in_proj.weight": "model-00005-of-00006.safetensors",
|
151 |
+
"model.layers.23.attention.k_norm.weight": "model-00005-of-00006.safetensors",
|
152 |
+
"model.layers.23.attention.out_proj.weight": "model-00005-of-00006.safetensors",
|
153 |
+
"model.layers.23.attention.pos_embed.inv_freq": "model-00005-of-00006.safetensors",
|
154 |
+
"model.layers.23.attention.q_norm.weight": "model-00005-of-00006.safetensors",
|
155 |
+
"model.layers.23.attention_norm.weight": "model-00005-of-00006.safetensors",
|
156 |
+
"model.layers.23.feed_forward.w12.weight": "model-00005-of-00006.safetensors",
|
157 |
+
"model.layers.23.feed_forward.w3.weight": "model-00005-of-00006.safetensors",
|
158 |
+
"model.layers.23.ffn_norm.weight": "model-00005-of-00006.safetensors",
|
159 |
+
"model.layers.24.attention.in_proj.weight": "model-00005-of-00006.safetensors",
|
160 |
+
"model.layers.24.attention.k_norm.weight": "model-00005-of-00006.safetensors",
|
161 |
+
"model.layers.24.attention.out_proj.weight": "model-00005-of-00006.safetensors",
|
162 |
+
"model.layers.24.attention.pos_embed.inv_freq": "model-00005-of-00006.safetensors",
|
163 |
+
"model.layers.24.attention.q_norm.weight": "model-00005-of-00006.safetensors",
|
164 |
+
"model.layers.24.attention_norm.weight": "model-00005-of-00006.safetensors",
|
165 |
+
"model.layers.24.feed_forward.w12.weight": "model-00005-of-00006.safetensors",
|
166 |
+
"model.layers.24.feed_forward.w3.weight": "model-00005-of-00006.safetensors",
|
167 |
+
"model.layers.24.ffn_norm.weight": "model-00005-of-00006.safetensors",
|
168 |
+
"model.layers.25.attention.in_proj.weight": "model-00005-of-00006.safetensors",
|
169 |
+
"model.layers.25.attention.k_norm.weight": "model-00005-of-00006.safetensors",
|
170 |
+
"model.layers.25.attention.out_proj.weight": "model-00005-of-00006.safetensors",
|
171 |
+
"model.layers.25.attention.pos_embed.inv_freq": "model-00005-of-00006.safetensors",
|
172 |
+
"model.layers.25.attention.q_norm.weight": "model-00005-of-00006.safetensors",
|
173 |
+
"model.layers.25.attention_norm.weight": "model-00005-of-00006.safetensors",
|
174 |
+
"model.layers.25.feed_forward.w12.weight": "model-00005-of-00006.safetensors",
|
175 |
+
"model.layers.25.feed_forward.w3.weight": "model-00005-of-00006.safetensors",
|
176 |
+
"model.layers.25.ffn_norm.weight": "model-00005-of-00006.safetensors",
|
177 |
+
"model.layers.26.attention.in_proj.weight": "model-00005-of-00006.safetensors",
|
178 |
+
"model.layers.26.attention.k_norm.weight": "model-00005-of-00006.safetensors",
|
179 |
+
"model.layers.26.attention.out_proj.weight": "model-00005-of-00006.safetensors",
|
180 |
+
"model.layers.26.attention.pos_embed.inv_freq": "model-00005-of-00006.safetensors",
|
181 |
+
"model.layers.26.attention.q_norm.weight": "model-00005-of-00006.safetensors",
|
182 |
+
"model.layers.26.attention_norm.weight": "model-00005-of-00006.safetensors",
|
183 |
+
"model.layers.26.feed_forward.w12.weight": "model-00005-of-00006.safetensors",
|
184 |
+
"model.layers.26.feed_forward.w3.weight": "model-00005-of-00006.safetensors",
|
185 |
+
"model.layers.26.ffn_norm.weight": "model-00005-of-00006.safetensors",
|
186 |
+
"model.layers.27.attention.in_proj.weight": "model-00005-of-00006.safetensors",
|
187 |
+
"model.layers.27.attention.k_norm.weight": "model-00005-of-00006.safetensors",
|
188 |
+
"model.layers.27.attention.out_proj.weight": "model-00005-of-00006.safetensors",
|
189 |
+
"model.layers.27.attention.pos_embed.inv_freq": "model-00005-of-00006.safetensors",
|
190 |
+
"model.layers.27.attention.q_norm.weight": "model-00005-of-00006.safetensors",
|
191 |
+
"model.layers.27.attention_norm.weight": "model-00005-of-00006.safetensors",
|
192 |
+
"model.layers.27.feed_forward.w12.weight": "model-00005-of-00006.safetensors",
|
193 |
+
"model.layers.27.feed_forward.w3.weight": "model-00005-of-00006.safetensors",
|
194 |
+
"model.layers.27.ffn_norm.weight": "model-00005-of-00006.safetensors",
|
195 |
+
"model.layers.28.attention.in_proj.weight": "model-00005-of-00006.safetensors",
|
196 |
+
"model.layers.28.attention.k_norm.weight": "model-00005-of-00006.safetensors",
|
197 |
+
"model.layers.28.attention.out_proj.weight": "model-00005-of-00006.safetensors",
|
198 |
+
"model.layers.28.attention.pos_embed.inv_freq": "model-00005-of-00006.safetensors",
|
199 |
+
"model.layers.28.attention.q_norm.weight": "model-00005-of-00006.safetensors",
|
200 |
+
"model.layers.28.attention_norm.weight": "model-00005-of-00006.safetensors",
|
201 |
+
"model.layers.28.feed_forward.w12.weight": "model-00005-of-00006.safetensors",
|
202 |
+
"model.layers.28.feed_forward.w3.weight": "model-00005-of-00006.safetensors",
|
203 |
+
"model.layers.28.ffn_norm.weight": "model-00005-of-00006.safetensors",
|
204 |
+
"model.layers.29.attention.in_proj.weight": "model-00006-of-00006.safetensors",
|
205 |
+
"model.layers.29.attention.k_norm.weight": "model-00006-of-00006.safetensors",
|
206 |
+
"model.layers.29.attention.out_proj.weight": "model-00006-of-00006.safetensors",
|
207 |
+
"model.layers.29.attention.pos_embed.inv_freq": "model-00006-of-00006.safetensors",
|
208 |
+
"model.layers.29.attention.q_norm.weight": "model-00006-of-00006.safetensors",
|
209 |
+
"model.layers.29.attention_norm.weight": "model-00006-of-00006.safetensors",
|
210 |
+
"model.layers.29.feed_forward.w12.weight": "model-00006-of-00006.safetensors",
|
211 |
+
"model.layers.29.feed_forward.w3.weight": "model-00006-of-00006.safetensors",
|
212 |
+
"model.layers.29.ffn_norm.weight": "model-00006-of-00006.safetensors",
|
213 |
+
"model.layers.3.attention.in_proj.weight": "model-00001-of-00006.safetensors",
|
214 |
+
"model.layers.3.attention.k_norm.weight": "model-00001-of-00006.safetensors",
|
215 |
+
"model.layers.3.attention.out_proj.weight": "model-00001-of-00006.safetensors",
|
216 |
+
"model.layers.3.attention.pos_embed.inv_freq": "model-00001-of-00006.safetensors",
|
217 |
+
"model.layers.3.attention.q_norm.weight": "model-00001-of-00006.safetensors",
|
218 |
+
"model.layers.3.attention_norm.weight": "model-00001-of-00006.safetensors",
|
219 |
+
"model.layers.3.feed_forward.w12.weight": "model-00001-of-00006.safetensors",
|
220 |
+
"model.layers.3.feed_forward.w3.weight": "model-00001-of-00006.safetensors",
|
221 |
+
"model.layers.3.ffn_norm.weight": "model-00001-of-00006.safetensors",
|
222 |
+
"model.layers.30.attention.in_proj.weight": "model-00006-of-00006.safetensors",
|
223 |
+
"model.layers.30.attention.k_norm.weight": "model-00006-of-00006.safetensors",
|
224 |
+
"model.layers.30.attention.out_proj.weight": "model-00006-of-00006.safetensors",
|
225 |
+
"model.layers.30.attention.pos_embed.inv_freq": "model-00006-of-00006.safetensors",
|
226 |
+
"model.layers.30.attention.q_norm.weight": "model-00006-of-00006.safetensors",
|
227 |
+
"model.layers.30.attention_norm.weight": "model-00006-of-00006.safetensors",
|
228 |
+
"model.layers.30.feed_forward.w12.weight": "model-00006-of-00006.safetensors",
|
229 |
+
"model.layers.30.feed_forward.w3.weight": "model-00006-of-00006.safetensors",
|
230 |
+
"model.layers.30.ffn_norm.weight": "model-00006-of-00006.safetensors",
|
231 |
+
"model.layers.31.attention.in_proj.weight": "model-00006-of-00006.safetensors",
|
232 |
+
"model.layers.31.attention.k_norm.weight": "model-00006-of-00006.safetensors",
|
233 |
+
"model.layers.31.attention.out_proj.weight": "model-00006-of-00006.safetensors",
|
234 |
+
"model.layers.31.attention.pos_embed.inv_freq": "model-00006-of-00006.safetensors",
|
235 |
+
"model.layers.31.attention.q_norm.weight": "model-00006-of-00006.safetensors",
|
236 |
+
"model.layers.31.attention_norm.weight": "model-00006-of-00006.safetensors",
|
237 |
+
"model.layers.31.feed_forward.w12.weight": "model-00006-of-00006.safetensors",
|
238 |
+
"model.layers.31.feed_forward.w3.weight": "model-00006-of-00006.safetensors",
|
239 |
+
"model.layers.31.ffn_norm.weight": "model-00006-of-00006.safetensors",
|
240 |
+
"model.layers.4.attention.in_proj.weight": "model-00001-of-00006.safetensors",
|
241 |
+
"model.layers.4.attention.k_norm.weight": "model-00001-of-00006.safetensors",
|
242 |
+
"model.layers.4.attention.out_proj.weight": "model-00001-of-00006.safetensors",
|
243 |
+
"model.layers.4.attention.pos_embed.inv_freq": "model-00001-of-00006.safetensors",
|
244 |
+
"model.layers.4.attention.q_norm.weight": "model-00001-of-00006.safetensors",
|
245 |
+
"model.layers.4.attention_norm.weight": "model-00001-of-00006.safetensors",
|
246 |
+
"model.layers.4.feed_forward.w12.weight": "model-00001-of-00006.safetensors",
|
247 |
+
"model.layers.4.feed_forward.w3.weight": "model-00001-of-00006.safetensors",
|
248 |
+
"model.layers.4.ffn_norm.weight": "model-00001-of-00006.safetensors",
|
249 |
+
"model.layers.5.attention.in_proj.weight": "model-00002-of-00006.safetensors",
|
250 |
+
"model.layers.5.attention.k_norm.weight": "model-00002-of-00006.safetensors",
|
251 |
+
"model.layers.5.attention.out_proj.weight": "model-00002-of-00006.safetensors",
|
252 |
+
"model.layers.5.attention.pos_embed.inv_freq": "model-00002-of-00006.safetensors",
|
253 |
+
"model.layers.5.attention.q_norm.weight": "model-00002-of-00006.safetensors",
|
254 |
+
"model.layers.5.attention_norm.weight": "model-00002-of-00006.safetensors",
|
255 |
+
"model.layers.5.feed_forward.w12.weight": "model-00002-of-00006.safetensors",
|
256 |
+
"model.layers.5.feed_forward.w3.weight": "model-00002-of-00006.safetensors",
|
257 |
+
"model.layers.5.ffn_norm.weight": "model-00002-of-00006.safetensors",
|
258 |
+
"model.layers.6.attention.in_proj.weight": "model-00002-of-00006.safetensors",
|
259 |
+
"model.layers.6.attention.k_norm.weight": "model-00002-of-00006.safetensors",
|
260 |
+
"model.layers.6.attention.out_proj.weight": "model-00002-of-00006.safetensors",
|
261 |
+
"model.layers.6.attention.pos_embed.inv_freq": "model-00002-of-00006.safetensors",
|
262 |
+
"model.layers.6.attention.q_norm.weight": "model-00002-of-00006.safetensors",
|
263 |
+
"model.layers.6.attention_norm.weight": "model-00002-of-00006.safetensors",
|
264 |
+
"model.layers.6.feed_forward.w12.weight": "model-00002-of-00006.safetensors",
|
265 |
+
"model.layers.6.feed_forward.w3.weight": "model-00002-of-00006.safetensors",
|
266 |
+
"model.layers.6.ffn_norm.weight": "model-00002-of-00006.safetensors",
|
267 |
+
"model.layers.7.attention.in_proj.weight": "model-00002-of-00006.safetensors",
|
268 |
+
"model.layers.7.attention.k_norm.weight": "model-00002-of-00006.safetensors",
|
269 |
+
"model.layers.7.attention.out_proj.weight": "model-00002-of-00006.safetensors",
|
270 |
+
"model.layers.7.attention.pos_embed.inv_freq": "model-00002-of-00006.safetensors",
|
271 |
+
"model.layers.7.attention.q_norm.weight": "model-00002-of-00006.safetensors",
|
272 |
+
"model.layers.7.attention_norm.weight": "model-00002-of-00006.safetensors",
|
273 |
+
"model.layers.7.feed_forward.w12.weight": "model-00002-of-00006.safetensors",
|
274 |
+
"model.layers.7.feed_forward.w3.weight": "model-00002-of-00006.safetensors",
|
275 |
+
"model.layers.7.ffn_norm.weight": "model-00002-of-00006.safetensors",
|
276 |
+
"model.layers.8.attention.in_proj.weight": "model-00002-of-00006.safetensors",
|
277 |
+
"model.layers.8.attention.k_norm.weight": "model-00002-of-00006.safetensors",
|
278 |
+
"model.layers.8.attention.out_proj.weight": "model-00002-of-00006.safetensors",
|
279 |
+
"model.layers.8.attention.pos_embed.inv_freq": "model-00002-of-00006.safetensors",
|
280 |
+
"model.layers.8.attention.q_norm.weight": "model-00002-of-00006.safetensors",
|
281 |
+
"model.layers.8.attention_norm.weight": "model-00002-of-00006.safetensors",
|
282 |
+
"model.layers.8.feed_forward.w12.weight": "model-00002-of-00006.safetensors",
|
283 |
+
"model.layers.8.feed_forward.w3.weight": "model-00002-of-00006.safetensors",
|
284 |
+
"model.layers.8.ffn_norm.weight": "model-00002-of-00006.safetensors",
|
285 |
+
"model.layers.9.attention.in_proj.weight": "model-00002-of-00006.safetensors",
|
286 |
+
"model.layers.9.attention.k_norm.weight": "model-00002-of-00006.safetensors",
|
287 |
+
"model.layers.9.attention.out_proj.weight": "model-00002-of-00006.safetensors",
|
288 |
+
"model.layers.9.attention.pos_embed.inv_freq": "model-00002-of-00006.safetensors",
|
289 |
+
"model.layers.9.attention.q_norm.weight": "model-00002-of-00006.safetensors",
|
290 |
+
"model.layers.9.attention_norm.weight": "model-00002-of-00006.safetensors",
|
291 |
+
"model.layers.9.feed_forward.w12.weight": "model-00002-of-00006.safetensors",
|
292 |
+
"model.layers.9.feed_forward.w3.weight": "model-00002-of-00006.safetensors",
|
293 |
+
"model.layers.9.ffn_norm.weight": "model-00002-of-00006.safetensors",
|
294 |
+
"model.norm.weight": "model-00006-of-00006.safetensors",
|
295 |
+
"model.output.weight": "model-00006-of-00006.safetensors",
|
296 |
+
"model.tok_embeddings.weight": "model-00001-of-00006.safetensors"
|
297 |
+
}
|
298 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<|endoftext|>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": false,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<|endoftext|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<|padding|>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"50254": {
|
23 |
+
"content": " ",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": true,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": false
|
29 |
+
},
|
30 |
+
"50255": {
|
31 |
+
"content": " ",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false,
|
36 |
+
"special": false
|
37 |
+
},
|
38 |
+
"50256": {
|
39 |
+
"content": " ",
|
40 |
+
"lstrip": false,
|
41 |
+
"normalized": true,
|
42 |
+
"rstrip": false,
|
43 |
+
"single_word": false,
|
44 |
+
"special": false
|
45 |
+
},
|
46 |
+
"50257": {
|
47 |
+
"content": " ",
|
48 |
+
"lstrip": false,
|
49 |
+
"normalized": true,
|
50 |
+
"rstrip": false,
|
51 |
+
"single_word": false,
|
52 |
+
"special": false
|
53 |
+
},
|
54 |
+
"50258": {
|
55 |
+
"content": " ",
|
56 |
+
"lstrip": false,
|
57 |
+
"normalized": true,
|
58 |
+
"rstrip": false,
|
59 |
+
"single_word": false,
|
60 |
+
"special": false
|
61 |
+
},
|
62 |
+
"50259": {
|
63 |
+
"content": " ",
|
64 |
+
"lstrip": false,
|
65 |
+
"normalized": true,
|
66 |
+
"rstrip": false,
|
67 |
+
"single_word": false,
|
68 |
+
"special": false
|
69 |
+
},
|
70 |
+
"50260": {
|
71 |
+
"content": " ",
|
72 |
+
"lstrip": false,
|
73 |
+
"normalized": true,
|
74 |
+
"rstrip": false,
|
75 |
+
"single_word": false,
|
76 |
+
"special": false
|
77 |
+
},
|
78 |
+
"50261": {
|
79 |
+
"content": " ",
|
80 |
+
"lstrip": false,
|
81 |
+
"normalized": true,
|
82 |
+
"rstrip": false,
|
83 |
+
"single_word": false,
|
84 |
+
"special": false
|
85 |
+
},
|
86 |
+
"50262": {
|
87 |
+
"content": " ",
|
88 |
+
"lstrip": false,
|
89 |
+
"normalized": true,
|
90 |
+
"rstrip": false,
|
91 |
+
"single_word": false,
|
92 |
+
"special": false
|
93 |
+
},
|
94 |
+
"50263": {
|
95 |
+
"content": " ",
|
96 |
+
"lstrip": false,
|
97 |
+
"normalized": true,
|
98 |
+
"rstrip": false,
|
99 |
+
"single_word": false,
|
100 |
+
"special": false
|
101 |
+
},
|
102 |
+
"50264": {
|
103 |
+
"content": " ",
|
104 |
+
"lstrip": false,
|
105 |
+
"normalized": true,
|
106 |
+
"rstrip": false,
|
107 |
+
"single_word": false,
|
108 |
+
"special": false
|
109 |
+
},
|
110 |
+
"50265": {
|
111 |
+
"content": " ",
|
112 |
+
"lstrip": false,
|
113 |
+
"normalized": true,
|
114 |
+
"rstrip": false,
|
115 |
+
"single_word": false,
|
116 |
+
"special": false
|
117 |
+
},
|
118 |
+
"50266": {
|
119 |
+
"content": " ",
|
120 |
+
"lstrip": false,
|
121 |
+
"normalized": true,
|
122 |
+
"rstrip": false,
|
123 |
+
"single_word": false,
|
124 |
+
"special": false
|
125 |
+
},
|
126 |
+
"50267": {
|
127 |
+
"content": " ",
|
128 |
+
"lstrip": false,
|
129 |
+
"normalized": true,
|
130 |
+
"rstrip": false,
|
131 |
+
"single_word": false,
|
132 |
+
"special": false
|
133 |
+
},
|
134 |
+
"50268": {
|
135 |
+
"content": " ",
|
136 |
+
"lstrip": false,
|
137 |
+
"normalized": true,
|
138 |
+
"rstrip": false,
|
139 |
+
"single_word": false,
|
140 |
+
"special": false
|
141 |
+
},
|
142 |
+
"50269": {
|
143 |
+
"content": " ",
|
144 |
+
"lstrip": false,
|
145 |
+
"normalized": true,
|
146 |
+
"rstrip": false,
|
147 |
+
"single_word": false,
|
148 |
+
"special": false
|
149 |
+
},
|
150 |
+
"50270": {
|
151 |
+
"content": " ",
|
152 |
+
"lstrip": false,
|
153 |
+
"normalized": true,
|
154 |
+
"rstrip": false,
|
155 |
+
"single_word": false,
|
156 |
+
"special": false
|
157 |
+
},
|
158 |
+
"50271": {
|
159 |
+
"content": " ",
|
160 |
+
"lstrip": false,
|
161 |
+
"normalized": true,
|
162 |
+
"rstrip": false,
|
163 |
+
"single_word": false,
|
164 |
+
"special": false
|
165 |
+
},
|
166 |
+
"50272": {
|
167 |
+
"content": " ",
|
168 |
+
"lstrip": false,
|
169 |
+
"normalized": true,
|
170 |
+
"rstrip": false,
|
171 |
+
"single_word": false,
|
172 |
+
"special": false
|
173 |
+
},
|
174 |
+
"50273": {
|
175 |
+
"content": " ",
|
176 |
+
"lstrip": false,
|
177 |
+
"normalized": true,
|
178 |
+
"rstrip": false,
|
179 |
+
"single_word": false,
|
180 |
+
"special": false
|
181 |
+
},
|
182 |
+
"50274": {
|
183 |
+
"content": " ",
|
184 |
+
"lstrip": false,
|
185 |
+
"normalized": true,
|
186 |
+
"rstrip": false,
|
187 |
+
"single_word": false,
|
188 |
+
"special": false
|
189 |
+
},
|
190 |
+
"50275": {
|
191 |
+
"content": " ",
|
192 |
+
"lstrip": false,
|
193 |
+
"normalized": true,
|
194 |
+
"rstrip": false,
|
195 |
+
"single_word": false,
|
196 |
+
"special": false
|
197 |
+
},
|
198 |
+
"50276": {
|
199 |
+
"content": " ",
|
200 |
+
"lstrip": false,
|
201 |
+
"normalized": true,
|
202 |
+
"rstrip": false,
|
203 |
+
"single_word": false,
|
204 |
+
"special": false
|
205 |
+
},
|
206 |
+
"50277": {
|
207 |
+
"content": "[ASST]",
|
208 |
+
"lstrip": false,
|
209 |
+
"normalized": false,
|
210 |
+
"rstrip": false,
|
211 |
+
"single_word": false,
|
212 |
+
"special": true
|
213 |
+
},
|
214 |
+
"50278": {
|
215 |
+
"content": "[INST]",
|
216 |
+
"lstrip": false,
|
217 |
+
"normalized": false,
|
218 |
+
"rstrip": false,
|
219 |
+
"single_word": false,
|
220 |
+
"special": true
|
221 |
+
},
|
222 |
+
"50279": {
|
223 |
+
"content": "[/ASST]",
|
224 |
+
"lstrip": false,
|
225 |
+
"normalized": false,
|
226 |
+
"rstrip": false,
|
227 |
+
"single_word": false,
|
228 |
+
"special": true
|
229 |
+
},
|
230 |
+
"50280": {
|
231 |
+
"content": "[/INST]",
|
232 |
+
"lstrip": false,
|
233 |
+
"normalized": false,
|
234 |
+
"rstrip": false,
|
235 |
+
"single_word": false,
|
236 |
+
"special": true
|
237 |
+
},
|
238 |
+
"50281": {
|
239 |
+
"content": "[PAD]",
|
240 |
+
"lstrip": false,
|
241 |
+
"normalized": false,
|
242 |
+
"rstrip": false,
|
243 |
+
"single_word": false,
|
244 |
+
"special": true
|
245 |
+
}
|
246 |
+
},
|
247 |
+
"bos_token": "<|endoftext|>",
|
248 |
+
"chat_template": "\n{%- for message in messages %}\n {%- if message['role'] == 'user' %}\n {{- bos_token + '[INST] ' + message['content'].strip() + ' [/INST]' }}\n {%- elif message['role'] == 'assistant' %}\n {{- '[ASST] ' + message['content'] + ' [/ASST]' + eos_token }}\n {%- endif %}\n{%- endfor %}\n",
|
249 |
+
"clean_up_tokenization_spaces": true,
|
250 |
+
"eos_token": "<|endoftext|>",
|
251 |
+
"model_max_length": 2048,
|
252 |
+
"pad_token": "[PAD]",
|
253 |
+
"padding_side": "right",
|
254 |
+
"tokenizer_class": "GPTNeoXTokenizer",
|
255 |
+
"unk_token": "<|endoftext|>"
|
256 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4895dcb3fb309f7434d4ef72c8cb9e37d5d4192ba7352ea9e3a79bd6d2f86af
|
3 |
+
size 5432
|