nitky commited on
Commit
a9c89a9
1 Parent(s): 698a41c

Upload 11 files

Browse files
README.md ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - tokyotech-llm/Swallow-13b-instruct-hf
4
+ - allenai/tulu-2-dpo-13b
5
+ tags:
6
+ - mergekit
7
+ - merge
8
+ language:
9
+ - en
10
+ - ja
11
+ library_name: transformers
12
+ pipeline_tag: text-generation
13
+ license: llama2
14
+ model_type: llama
15
+ ---
16
+ # Superswallow-13b-v0.2
17
+
18
+ **Important Notice:**
19
+
20
+ This model partially utilizes the parameters of Tulu V2 DPO finetuned based on Llama 2, so it may inherit the AI2 ImpACT license. Please use the model keeping in mind that there may be changes regarding the license if AI2 contacts me.
21
+
22
+ The [AI2 ImpACT license](https://allenai.org/impact-license) includes information about data artifacts and model artifacts, but does not cover the case of directly applying parts of the LLM parameters of a model artifact to other models. However, I respect their research and great work, so I will change the license immediately if AI2 contacts me.
23
+
24
+ ## Description
25
+
26
+ This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit). The model was created by injecting the ability to follow user intent from [Tulu 2 DPO](https://arxiv.org/abs/2311.10702) into the [Swallow](https://zenn.dev/tokyotech_lm/articles/d6cb3a8fdfc907) instract model.
27
+
28
+ It was a proof of concept for merging LLMs trained in other languages, and paid close attention to preserving the linguistic capabilities of the merge-based model.
29
+
30
+ As far as I know, Swallow is the full set Llama 2 model(7B, 13B, 70B) that can output the most beautiful Japanese. Therefore, I used it as the base model for merging this time. Thank you for their wonderful work.
31
+
32
+ ## Test environment
33
+
34
+ This model was tested using [text-generation-webui](https://github.com/oobabooga/text-generation-webui/tree/main). I use preset `simple-1` and `Null preset` for Generation.
35
+
36
+ ### Recommendation
37
+
38
+ Use `simple-1` settings:
39
+ - temperature: 0.7
40
+ - top_p: 0.9
41
+ - repetition_penalty: 1.15
42
+ - top_k: 20
43
+
44
+ ### Tested `temperature` Range
45
+
46
+ - temperature: 0.3 - 1.0
47
+
48
+ It works fine in most cases, but depending on the prompt, the output may become unstable at temperatures around 1.0.
49
+
50
+ ### Tested `repetition_penalty` Range
51
+
52
+ - repetition_penalty: 1.0 - 1.15
53
+
54
+ It works fine in most cases, but depending on the prompt, the output may become repetition at repetition_penalty around 1.0.
55
+
56
+ ## Prompt template: Swallow (Alpaca format)
57
+
58
+ ```
59
+ 以下に、あるタスクを説明する指示があり、それに付随する入力が更なる文脈を提供しています。リクエストを適切に完了するための回答を記述してください。
60
+
61
+ ### 指示:
62
+ {instruction}
63
+
64
+ ### 応答:
65
+ ```
66
+
67
+ ## Use the instruct model
68
+
69
+ ```
70
+ import torch
71
+ from transformers import AutoTokenizer, AutoModelForCausalLM
72
+
73
+ model_name = "nitky/Superswallow-13b-v0.2"
74
+
75
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
76
+ model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, low_cpu_mem_usage=True, device_map="auto")
77
+
78
+
79
+ PROMPT_DICT = {
80
+ "prompt_input": (
81
+ "以下に、あるタスクを説明する指示があり、それに付随する入力が更なる文脈を提供しています。"
82
+ "リクエストを適切に完了するための回答を記述してください。\n\n"
83
+ "### 指示:\n{instruction}\n\n### 入力:\n{input}\n\n### 応答:"
84
+
85
+ ),
86
+ "prompt_no_input": (
87
+ "以下に、あるタスクを説明する指示があります。"
88
+ "リクエストを適切に完了するための回答を記述してください。\n\n"
89
+ "### 指示:\n{instruction}\n\n### 応答:"
90
+ ),
91
+ }
92
+
93
+ def create_prompt(instruction, input=None):
94
+ """
95
+ Generates a prompt based on the given instruction and an optional input.
96
+ If input is provided, it uses the 'prompt_input' template from PROMPT_DICT.
97
+ If no input is provided, it uses the 'prompt_no_input' template.
98
+
99
+ Args:
100
+ instruction (str): The instruction describing the task.
101
+ input (str, optional): Additional input providing context for the task. Default is None.
102
+
103
+ Returns:
104
+ str: The generated prompt.
105
+ """
106
+ if input:
107
+ # Use the 'prompt_input' template when additional input is provided
108
+ return PROMPT_DICT["prompt_input"].format(instruction=instruction, input=input)
109
+ else:
110
+ # Use the 'prompt_no_input' template when no additional input is provided
111
+ return PROMPT_DICT["prompt_no_input"].format(instruction=instruction)
112
+
113
+ # Example usage
114
+ instruction_example = "以下のトピックに関する詳細な情報を提供してください。"
115
+ input_example = "東京工業大学の主なキャンパスについて教えてください"
116
+ prompt = create_prompt(instruction_example, input_example)
117
+
118
+ input_ids = tokenizer.encode(
119
+ prompt,
120
+ add_special_tokens=False,
121
+ return_tensors="pt"
122
+ )
123
+
124
+ tokens = model.generate(
125
+ input_ids.to(device=model.device),
126
+ max_new_tokens=200,
127
+ temperature=0.7,
128
+ top_p=0.9,
129
+ repetition_penalty=1.15,
130
+ top_k=20,
131
+ do_sample=True,
132
+ )
133
+
134
+ out = tokenizer.decode(tokens[0], skip_special_tokens=True)
135
+ print(out)
136
+
137
+ ```
138
+
139
+ ## Merge Details
140
+ ### Merge Method
141
+
142
+ This model was merged using the [DARE](https://arxiv.org/abs/2311.03099) [TIES](https://arxiv.org/abs/2306.01708) and the SLERP merge method using [tokyotech-llm/Swallow-13b-instruct-hf](https://huggingface.co/tokyotech-llm/Swallow-13b-instruct-hf) as a base.
143
+
144
+ ### Models Merged
145
+
146
+ The following models were included in the merge:
147
+ * [allenai/tulu-2-dpo-13b](https://huggingface.co/allenai/tulu-2-dpo-13b)
148
+
149
+ ### Configuration
150
+
151
+ The following YAML configuration was used to produce this model:
152
+
153
+ ```yaml
154
+ models:
155
+ - model: tokyotech-llm/Swallow-13b-instruct-hf
156
+ # no parameters necessary for base model
157
+ - model: allenai/tulu-2-dpo-13b # follow user intent
158
+ parameters:
159
+ density: 1
160
+ weight:
161
+ - filter: mlp.down_proj
162
+ value: [0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.10]
163
+ - filter: mlp.gate_proj
164
+ value: [0.70, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.10]
165
+ - filter: mlp.up_proj
166
+ value: [0.70, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.10]
167
+ - filter: self_attn
168
+ value: [0.70, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.45]
169
+ - value: 0 # fallback for rest of tensors.
170
+ merge_method: dare_ties
171
+ base_model: tokyotech-llm/Swallow-13b-instruct-hf
172
+ dtype: bfloat16
173
+ tokenizer_source: union
174
+ name: Superswallow-13b-v0.2-flavor
175
+ ---
176
+ slices:
177
+ - sources:
178
+ - model: nitky/Superswallow-13b-baseline
179
+ layer_range: [0, 40]
180
+ - model: Superswallow-13b-v0.2-flavor
181
+ layer_range: [0, 40]
182
+ merge_method: slerp
183
+ base_model: nitky/Superswallow-13b-baseline
184
+ parameters:
185
+ t: # model stabilization
186
+ - filter: self_attn
187
+ value: [0, 0.5, 0.3, 0.7, 1]
188
+ - filter: mlp
189
+ value: [1, 0.5, 0.7, 0.3, 0]
190
+ - value: 0.5 # fallback for rest of tensors
191
+ dtype: bfloat16
192
+ name: Superswallow-13b-v0.2
193
+
194
+ ```
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nitky/Superswallow-13b-baseline",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 5120,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 13824,
14
+ "max_position_embeddings": 4096,
15
+ "max_sequence_length": 4096,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 40,
18
+ "num_hidden_layers": 40,
19
+ "num_key_value_heads": 40,
20
+ "pad_token_id": 0,
21
+ "pretraining_tp": 1,
22
+ "rms_norm_eps": 1e-05,
23
+ "rope_scaling": null,
24
+ "rope_theta": 10000.0,
25
+ "tie_word_embeddings": false,
26
+ "torch_dtype": "bfloat16",
27
+ "transformers_version": "4.36.2",
28
+ "use_cache": true,
29
+ "vocab_size": 43176
30
+ }
mergekit_config.yml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ models:
2
+ - model: tokyotech-llm/Swallow-13b-instruct-hf
3
+ # no parameters necessary for base model
4
+ - model: allenai/tulu-2-dpo-13b # follow user intent
5
+ parameters:
6
+ density: 1
7
+ weight:
8
+ - filter: mlp.down_proj
9
+ value: [0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.10]
10
+ - filter: mlp.gate_proj
11
+ value: [0.70, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.10]
12
+ - filter: mlp.up_proj
13
+ value: [0.70, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.10]
14
+ - filter: self_attn
15
+ value: [0.70, 0.45, 0.10, 0.45, 0.10, 0.45, 0.10, 0.45, 0.45]
16
+ - value: 0 # fallback for rest of tensors.
17
+ merge_method: dare_ties
18
+ base_model: tokyotech-llm/Swallow-13b-instruct-hf
19
+ dtype: bfloat16
20
+ tokenizer_source: union
21
+ name: Superswallow-13b-v0.2-flavor
22
+ ---
23
+ slices:
24
+ - sources:
25
+ - model: nitky/Superswallow-13b-baseline
26
+ layer_range: [0, 40]
27
+ - model: Superswallow-13b-v0.2-flavor
28
+ layer_range: [0, 40]
29
+ merge_method: slerp
30
+ base_model: nitky/Superswallow-13b-baseline
31
+ parameters:
32
+ t: # model stabilization
33
+ - filter: self_attn
34
+ value: [0, 0.5, 0.3, 0.7, 1]
35
+ - filter: mlp
36
+ value: [1, 0.5, 0.7, 0.3, 0]
37
+ - value: 0.5 # fallback for rest of tensors
38
+ dtype: bfloat16
39
+ name: Superswallow-13b-v0.2
model-00001-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:187b8533c20370859b109f8f5f690e69f6413a82874be48b90b1073e7329f043
3
+ size 9958282792
model-00002-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50627b22b7d1e83818f82307394ebdd02933b2f773442656c26dd00e26af649e
3
+ size 9867423728
model-00003-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f81e735967edc0dc83aa5d2e309c705cfda54342bed95062ad41fdca387d2c41
3
+ size 6434948896
model.safetensors.index.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"metadata": {"mergekit_version": "0.0.3.2"}, "weight_map": {"model.embed_tokens.weight": "model-00001-of-00003.safetensors", "model.layers.0.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.0.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.0.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.1.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.1.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.1.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.10.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.10.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.10.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.10.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.10.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.10.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.10.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.10.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.10.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.11.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.11.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.11.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.11.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.11.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.11.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.11.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.11.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.11.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.12.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.12.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.12.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.12.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.12.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.12.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.12.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.12.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.12.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.13.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.13.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.13.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.13.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.13.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.13.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.13.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.13.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.13.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.14.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.14.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.14.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.14.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.14.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.14.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.14.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.14.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.14.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.15.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.2.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.2.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.2.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.3.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.3.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.3.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.4.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.4.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.4.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.5.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.5.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.5.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.6.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.6.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.6.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.7.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.7.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.7.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.8.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.8.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.8.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.8.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.8.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.9.input_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.9.mlp.down_proj.weight": "model-00001-of-00003.safetensors", "model.layers.9.mlp.gate_proj.weight": "model-00001-of-00003.safetensors", "model.layers.9.mlp.up_proj.weight": "model-00001-of-00003.safetensors", "model.layers.9.post_attention_layernorm.weight": "model-00001-of-00003.safetensors", "model.layers.9.self_attn.k_proj.weight": "model-00001-of-00003.safetensors", "model.layers.9.self_attn.o_proj.weight": "model-00001-of-00003.safetensors", "model.layers.9.self_attn.q_proj.weight": "model-00001-of-00003.safetensors", "model.layers.9.self_attn.v_proj.weight": "model-00001-of-00003.safetensors", "model.layers.15.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.15.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.15.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.15.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.15.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.15.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.15.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.15.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.16.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.16.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.16.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.16.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.16.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.16.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.16.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.16.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.16.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.17.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.17.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.17.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.17.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.17.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.17.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.17.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.17.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.17.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.18.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.18.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.18.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.18.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.18.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.18.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.18.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.18.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.18.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.19.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.19.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.19.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.19.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.19.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.19.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.19.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.19.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.19.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.20.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.20.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.20.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.20.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.20.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.20.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.20.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.20.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.20.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.21.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.21.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.21.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.21.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.21.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.21.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.21.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.21.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.21.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.22.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.22.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.22.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.22.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.22.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.22.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.22.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.22.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.22.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.23.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.23.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.23.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.23.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.23.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.23.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.23.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.23.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.23.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.24.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.24.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.24.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.24.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.24.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.24.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.24.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.24.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.24.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.25.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.25.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.25.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.25.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.25.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.25.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.25.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.25.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.25.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.26.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.26.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.26.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.26.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.26.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.26.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.26.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.26.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.26.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.27.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.27.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.27.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.27.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.27.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.27.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.27.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.27.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.27.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.28.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.28.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.28.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.28.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.28.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.28.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.28.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.28.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.28.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.29.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.29.mlp.down_proj.weight": "model-00002-of-00003.safetensors", "model.layers.29.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.29.mlp.up_proj.weight": "model-00002-of-00003.safetensors", "model.layers.29.post_attention_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.29.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.29.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.29.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.29.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "model.layers.30.input_layernorm.weight": "model-00002-of-00003.safetensors", "model.layers.30.mlp.gate_proj.weight": "model-00002-of-00003.safetensors", "model.layers.30.self_attn.k_proj.weight": "model-00002-of-00003.safetensors", "model.layers.30.self_attn.o_proj.weight": "model-00002-of-00003.safetensors", "model.layers.30.self_attn.q_proj.weight": "model-00002-of-00003.safetensors", "model.layers.30.self_attn.v_proj.weight": "model-00002-of-00003.safetensors", "lm_head.weight": "model-00003-of-00003.safetensors", "model.layers.30.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.30.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.30.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.31.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.31.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.31.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.31.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.31.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.31.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.31.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.31.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.31.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.32.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.32.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.32.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.32.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.32.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.32.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.32.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.32.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.32.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.33.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.33.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.33.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.33.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.33.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.33.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.33.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.33.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.33.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.34.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.34.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.34.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.34.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.34.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.34.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.34.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.34.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.34.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.35.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.35.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.35.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.35.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.35.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.35.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.35.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.35.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.35.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.36.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.36.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.36.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.36.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.36.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.36.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.36.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.36.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.36.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.37.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.37.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.37.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.37.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.37.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.37.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.37.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.37.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.37.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.38.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.38.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.38.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.38.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.38.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.38.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.38.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.38.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.38.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.layers.39.input_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.39.mlp.down_proj.weight": "model-00003-of-00003.safetensors", "model.layers.39.mlp.gate_proj.weight": "model-00003-of-00003.safetensors", "model.layers.39.mlp.up_proj.weight": "model-00003-of-00003.safetensors", "model.layers.39.post_attention_layernorm.weight": "model-00003-of-00003.safetensors", "model.layers.39.self_attn.k_proj.weight": "model-00003-of-00003.safetensors", "model.layers.39.self_attn.o_proj.weight": "model-00003-of-00003.safetensors", "model.layers.39.self_attn.q_proj.weight": "model-00003-of-00003.safetensors", "model.layers.39.self_attn.v_proj.weight": "model-00003-of-00003.safetensors", "model.norm.weight": "model-00003-of-00003.safetensors"}}
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c877c5ca885bad5c19d1b1706a2703f8b30de90f03c1f834f8bdb9faf79821e8
3
+ size 914000
tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": false,
34
+ "model_max_length": 1000000000000000019884624838656,
35
+ "pad_token": null,
36
+ "padding_side": "right",
37
+ "sp_model_kwargs": {},
38
+ "spaces_between_special_tokens": false,
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }