froggeric commited on
Commit
b042843
1 Parent(s): 142ab22

Upload folder using huggingface_hub

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ miqu-1-120b-attenuated-Q4_K_S-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
37
+ miqu-1-120b-attenuated-Q4_K_S-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,292 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ model-index:
3
+ - name: miqu-1-70b-sf
4
+ results:
5
+ - task:
6
+ type: text-generation
7
+ name: Text Generation
8
+ dataset:
9
+ name: AI2 Reasoning Challenge (25-Shot)
10
+ type: ai2_arc
11
+ config: ARC-Challenge
12
+ split: test
13
+ args:
14
+ num_few_shot: 25
15
+ metrics:
16
+ - type: acc_norm
17
+ value: 73.04
18
+ name: normalized accuracy
19
+ source:
20
+ url: >-
21
+ https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=152334H/miqu-1-70b-sf
22
+ name: Open LLM Leaderboard
23
+ - task:
24
+ type: text-generation
25
+ name: Text Generation
26
+ dataset:
27
+ name: HellaSwag (10-Shot)
28
+ type: hellaswag
29
+ split: validation
30
+ args:
31
+ num_few_shot: 10
32
+ metrics:
33
+ - type: acc_norm
34
+ value: 88.61
35
+ name: normalized accuracy
36
+ source:
37
+ url: >-
38
+ https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=152334H/miqu-1-70b-sf
39
+ name: Open LLM Leaderboard
40
+ - task:
41
+ type: text-generation
42
+ name: Text Generation
43
+ dataset:
44
+ name: MMLU (5-Shot)
45
+ type: cais/mmlu
46
+ config: all
47
+ split: test
48
+ args:
49
+ num_few_shot: 5
50
+ metrics:
51
+ - type: acc
52
+ value: 75.49
53
+ name: accuracy
54
+ source:
55
+ url: >-
56
+ https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=152334H/miqu-1-70b-sf
57
+ name: Open LLM Leaderboard
58
+ - task:
59
+ type: text-generation
60
+ name: Text Generation
61
+ dataset:
62
+ name: TruthfulQA (0-shot)
63
+ type: truthful_qa
64
+ config: multiple_choice
65
+ split: validation
66
+ args:
67
+ num_few_shot: 0
68
+ metrics:
69
+ - type: mc2
70
+ value: 69.38
71
+ source:
72
+ url: >-
73
+ https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=152334H/miqu-1-70b-sf
74
+ name: Open LLM Leaderboard
75
+ - task:
76
+ type: text-generation
77
+ name: Text Generation
78
+ dataset:
79
+ name: Winogrande (5-shot)
80
+ type: winogrande
81
+ config: winogrande_xl
82
+ split: validation
83
+ args:
84
+ num_few_shot: 5
85
+ metrics:
86
+ - type: acc
87
+ value: 85.32
88
+ name: accuracy
89
+ source:
90
+ url: >-
91
+ https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=152334H/miqu-1-70b-sf
92
+ name: Open LLM Leaderboard
93
+ - task:
94
+ type: text-generation
95
+ name: Text Generation
96
+ dataset:
97
+ name: GSM8k (5-shot)
98
+ type: gsm8k
99
+ config: main
100
+ split: test
101
+ args:
102
+ num_few_shot: 5
103
+ metrics:
104
+ - type: acc
105
+ value: 67.7
106
+ name: accuracy
107
+ source:
108
+ url: >-
109
+ https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=152334H/miqu-1-70b-sf
110
+ name: Open LLM Leaderboard
111
+ language:
112
+ - en
113
  ---
114
+
115
+ update: added NOMERGE license
116
+
117
+ ---
118
+
119
+ this is [miqu-1-70b](https://huggingface.co/miqudev/miqu-1-70b), dequantised from q5 to f16 && transposed to pytorch. shapes have been rotated less wrongly than in [alpindale/miqu-1-70b-pytorch](https://huggingface.co/alpindale/miqu-1-70b-pytorch/tree/main)
120
+
121
+ usage
122
+ ```python
123
+ from transformers import LlamaForCausalLM as LLM, LlamaTokenizer as LT
124
+
125
+ lt = LT.from_pretrained("152334H/miqu-1-70b-sf")
126
+ t = lt("[INST] eloquent high camp prose about a cute catgirl [/INST]", return_tensors='pt').input_ids.cuda()
127
+
128
+ llm = LLM.from_pretrained("152334H/miqu-1-70b-sf", device_map='auto') # note: you may need many gpus for this
129
+ out = llm.generate(t, use_cache=False, max_new_tokens=200)
130
+ print(lt.decode(out[0]))
131
+ ```
132
+
133
+ result:
134
+ ```
135
+ <s> [INST] eloquent high camp prose about a cute catgirl [/INST] In the resplendent realm of high camp, where irony and extravagance dance in a dazzling pas de deux, there exists a creature of such enchanting allure that she captivates the hearts and minds of all who behold her. This beguiling figure, a vision of feline grace and innocence, is none other than the inimitable catgirl.
136
+
137
+ With her delicate features and winsome smile, she is the embodiment of a dream, a living testament to the power of imagination and the boundless possibilities of the human spirit. Her eyes, those twin orbs of sapphire fire, sparkle with a mischievous intelligence that belies her diminutive stature. They are windows into a soul that is at once ancient and eternally young, a soul that has traversed the vast expanse of time and space to find solace in the warm embrace of human companion
138
+ ```
139
+
140
+ this roughly (but not entirely) matches the llama.cpp q5 result:
141
+ ```bash
142
+ $ ./main -ngl 99 -m ./miqu-*q5* --color --temp 0.0 -n -1 -p '[INST] eloquent high camp prose about a cute catgirl [/INST]'
143
+ ...
144
+ [INST] eloquent high camp prose about a cute catgirl [/INST] In the resplendent realm of high camp, where irony and extravagance dance in a dazzling pas de deux, there exists a creature so enchantingly adorable that she captures the hearts of all who behold her. This is no ordinary feline, but rather a vision of elegance and whimsy combined: the cute catgirl.
145
+
146
+ With her delicate features framed by an ethereal halo of pastel tresses, this darling diva prowls through life with the grace of a prima ballerina and the playfulness of a kitten. Her eyes, twin pools of sapphire or emerald, sparkle with mischief and intelligence as they survey their surroundings, ever alert for the next grand adventure or delightful prank.
147
+
148
+ Her ensemble is a symphony of ruffles, bows, and lace, each detail painstakingly chosen to accentuate her lithe form and play up her feline charms. A frilly apron adorned with paw prints sways gently as she moves, while dainty ears perched atop her head twitch in response to every sound. Her gloved hands, so petite and perfect, seem made for holding teacups or sketching delicate portraits of her many admirers.
149
+
150
+ But do not be fooled by her diminutive stature and sweet demeanor; beneath that fluffy exterior lies the heart of a lioness. Fiercely loyal and protective, she will stop at nothing to defend those she loves from harm. And when the situation calls for it, she can unleash a ferocious roar that belies her cute exterior.
151
+
152
+ Indeed, the cute catgirl is a paradox wrapped in ruffles and ribbons, a living embodiment of the high camp aesthetic. She revels in the absurdity of her existence, finding joy in every outrageous situation and turning even the most mundane tasks into opportunities for sartorial expression. In her world, there is no such thing as too much glitter or too many bows; more is always more, and excess is a virtue to be celebrated.
153
+
154
+ So let us raise our teacups in honor of this fabulous feline, this queen of camp who reminds us that life is too short for dull clothing and boring hairstyles. May we all strive to embody her spirit, embracing the absurdity of existence with open arms and a generous helping of glitter. Long live the cute catgirl! [end of text]
155
+ ```
156
+
157
+ ![](https://thicc-af.mywaifulist.moe/waifus/miku-nakano-the-quintessential-quintuplets/phUEiEhPOL75GTDLncGy2dUbkDVMfYExZ2A1RBeQ.png?class=thumbnail)
158
+
159
+ ## some benchmarks
160
+
161
+ ```
162
+ | Tasks |Version|Filter|n-shot| Metric |Value | |Stderr|
163
+ |--------------|------:|------|-----:|----------|-----:|---|-----:|
164
+ |lambada_openai| 1|none | 0|perplexity|2.6354|± |0.0451|
165
+ | | |none | 0|acc |0.7879|± |0.0057|
166
+
167
+
168
+ | Tasks |Version|Filter|n-shot| Metric |Value | |Stderr|
169
+ |---------|------:|------|-----:|--------|-----:|---|-----:|
170
+ |hellaswag| 1|none | 0|acc |0.6851|± |0.0046|
171
+ | | |none | 0|acc_norm|0.8690|± |0.0034|
172
+
173
+ | Tasks |Version|Filter|n-shot|Metric|Value | |Stderr|
174
+ |----------|------:|------|-----:|------|-----:|---|-----:|
175
+ |winogrande| 1|none | 0|acc |0.7987|± |0.0113|
176
+
177
+ |Tasks|Version| Filter |n-shot| Metric |Value | |Stderr|
178
+ |-----|------:|----------|-----:|-----------|-----:|---|-----:|
179
+ |gsm8k| 2|get-answer| 5|exact_match|0.7043|± |0.0126|
180
+
181
+ | Tasks |Version|Filter|n-shot|Metric|Value | |Stderr|
182
+ |---------------------------------------|-------|------|-----:|------|-----:|---|-----:|
183
+ |mmlu |N/A |none | 0|acc |0.7401|± |0.1192|
184
+ | - humanities |N/A |none | 0|acc |0.7018|± |0.1281|
185
+ | - formal_logic | 0|none | 0|acc |0.4841|± |0.0447|
186
+ | - high_school_european_history | 0|none | 0|acc |0.8303|± |0.0293|
187
+ | - high_school_us_history | 0|none | 0|acc |0.9020|± |0.0209|
188
+ | - high_school_world_history | 0|none | 0|acc |0.9198|± |0.0177|
189
+ | - international_law | 0|none | 0|acc |0.8678|± |0.0309|
190
+ | - jurisprudence | 0|none | 0|acc |0.8519|± |0.0343|
191
+ | - logical_fallacies | 0|none | 0|acc |0.8344|± |0.0292|
192
+ | - moral_disputes | 0|none | 0|acc |0.8121|± |0.0210|
193
+ | - moral_scenarios | 0|none | 0|acc |0.5642|± |0.0166|
194
+ | - philosophy | 0|none | 0|acc |0.8167|± |0.0220|
195
+ | - prehistory | 0|none | 0|acc |0.8611|± |0.0192|
196
+ | - professional_law | 0|none | 0|acc |0.5854|± |0.0126|
197
+ | - world_religions | 0|none | 0|acc |0.8889|± |0.0241|
198
+ | - other |N/A |none | 0|acc |0.7889|± |0.0922|
199
+ | - business_ethics | 0|none | 0|acc |0.7900|± |0.0409|
200
+ | - clinical_knowledge | 0|none | 0|acc |0.8113|± |0.0241|
201
+ | - college_medicine | 0|none | 0|acc |0.7514|± |0.0330|
202
+ | - global_facts | 0|none | 0|acc |0.5500|± |0.0500|
203
+ | - human_aging | 0|none | 0|acc |0.7848|± |0.0276|
204
+ | - management | 0|none | 0|acc |0.8835|± |0.0318|
205
+ | - marketing | 0|none | 0|acc |0.9145|± |0.0183|
206
+ | - medical_genetics | 0|none | 0|acc |0.7500|± |0.0435|
207
+ | - miscellaneous | 0|none | 0|acc |0.8838|± |0.0115|
208
+ | - nutrition | 0|none | 0|acc |0.7974|± |0.0230|
209
+ | - professional_accounting | 0|none | 0|acc |0.5922|± |0.0293|
210
+ | - professional_medicine | 0|none | 0|acc |0.8272|± |0.0230|
211
+ | - virology | 0|none | 0|acc |0.5361|± |0.0388|
212
+ | - social_sciences |N/A |none | 0|acc |0.8414|± |0.0514|
213
+ | - econometrics | 0|none | 0|acc |0.6491|± |0.0449|
214
+ | - high_school_geography | 0|none | 0|acc |0.8990|± |0.0215|
215
+ | - high_school_government_and_politics| 0|none | 0|acc |0.9430|± |0.0167|
216
+ | - high_school_macroeconomics | 0|none | 0|acc |0.7795|± |0.0210|
217
+ | - high_school_microeconomics | 0|none | 0|acc |0.8277|± |0.0245|
218
+ | - high_school_psychology | 0|none | 0|acc |0.9064|± |0.0125|
219
+ | - human_sexuality | 0|none | 0|acc |0.8626|± |0.0302|
220
+ | - professional_psychology | 0|none | 0|acc |0.8056|± |0.0160|
221
+ | - public_relations | 0|none | 0|acc |0.7636|± |0.0407|
222
+ | - security_studies | 0|none | 0|acc |0.8204|± |0.0246|
223
+ | - sociology | 0|none | 0|acc |0.8856|± |0.0225|
224
+ | - us_foreign_policy | 0|none | 0|acc |0.9100|± |0.0288|
225
+ | - stem |N/A |none | 0|acc |0.6505|± |0.1266|
226
+ | - abstract_algebra | 0|none | 0|acc |0.4100|± |0.0494|
227
+ | - anatomy | 0|none | 0|acc |0.6444|± |0.0414|
228
+ | - astronomy | 0|none | 0|acc |0.8224|± |0.0311|
229
+ | - college_biology | 0|none | 0|acc |0.8681|± |0.0283|
230
+ | - college_chemistry | 0|none | 0|acc |0.5500|± |0.0500|
231
+ | - college_computer_science | 0|none | 0|acc |0.6200|± |0.0488|
232
+ | - college_mathematics | 0|none | 0|acc |0.4200|± |0.0496|
233
+ | - college_physics | 0|none | 0|acc |0.5392|± |0.0496|
234
+ | - computer_security | 0|none | 0|acc |0.8300|± |0.0378|
235
+ | - conceptual_physics | 0|none | 0|acc |0.7362|± |0.0288|
236
+ | - electrical_engineering | 0|none | 0|acc |0.7034|± |0.0381|
237
+ | - elementary_mathematics | 0|none | 0|acc |0.5503|± |0.0256|
238
+ | - high_school_biology | 0|none | 0|acc |0.8742|± |0.0189|
239
+ | - high_school_chemistry | 0|none | 0|acc |0.6256|± |0.0341|
240
+ | - high_school_computer_science | 0|none | 0|acc |0.8400|± |0.0368|
241
+ | - high_school_mathematics | 0|none | 0|acc |0.4370|± |0.0302|
242
+ | - high_school_physics | 0|none | 0|acc |0.5033|± |0.0408|
243
+ | - high_school_statistics | 0|none | 0|acc |0.6944|± |0.0314|
244
+ | - machine_learning | 0|none | 0|acc |0.5982|± |0.0465|
245
+ ```
246
+ no i do not know why the stderr is high. plausibly it is due to the vllm backend used. this is my lm-eval command in most cases (works on h100):
247
+
248
+ `lm_eval --model vllm --model_args pretrained=./miqu-1-70b-sf,tensor_parallel_size=4,dtype=auto,gpu_memory_utilization=0.88,data_parallel_size=2 --tasks mmlu --batch_size 20`
249
+ # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
250
+ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_152334H__miqu-1-70b-sf)
251
+
252
+ | Metric |Value|
253
+ |---------------------------------|----:|
254
+ |Avg. |76.59|
255
+ |AI2 Reasoning Challenge (25-Shot)|73.04|
256
+ |HellaSwag (10-Shot) |88.61|
257
+ |MMLU (5-Shot) |75.49|
258
+ |TruthfulQA (0-shot) |69.38|
259
+ |Winogrande (5-shot) |85.32|
260
+ |GSM8k (5-shot) |67.70|
261
+
262
+
263
+ # LICENSE
264
+
265
+ ```
266
+ NOMERGE License
267
+
268
+ Copyright (c) 2024 152334H
269
+
270
+ Permission is hereby granted, free of charge, to any person obtaining a copy
271
+ of this software and associated documentation files (the "Software"), to deal
272
+ in the Software without restriction, including without limitation the rights
273
+ to use, copy, modify, NOT merge, publish, distribute, sublicense, and/or sell
274
+ copies of the Software, and to permit persons to whom the Software is
275
+ furnished to do so, subject to the following conditions:
276
+
277
+ The above copyright notice and this permission notice shall be included in all
278
+ copies or substantial portions of the Software.
279
+
280
+ All tensors ("weights") provided by the Software shall not be conjoined with
281
+ other tensors ("merging") unless given explicit permission by the license holder.
282
+ Utilities including but not limited to "mergekit", "MergeMonster", are forbidden
283
+ from use in conjunction with this Software.
284
+
285
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
286
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
287
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
288
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
289
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
290
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
291
+ SOFTWARE.
292
+ ```
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 8192,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 28672,
13
+ "max_position_embeddings": 32764,
14
+ "model_type": "llama",
15
+ "num_attention_heads": 64,
16
+ "num_hidden_layers": 80,
17
+ "num_key_value_heads": 8,
18
+ "pad_token_id": 0,
19
+ "pretraining_tp": 1,
20
+ "rms_norm_eps": 1e-05,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000000,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "float16",
25
+ "transformers_version": "4.36.0",
26
+ "use_cache": true,
27
+ "vocab_size": 32000
28
+ }
miqu-1-120b-attenuated-Q4_K_S-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1896c6f7a61e0e155b23c7ac24ced01d59dec7cc592e533b01616d45fd389c9a
3
+ size 37452000896
miqu-1-120b-attenuated-Q4_K_S-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:053ccf033f40e6143c24b96585bafb5962c68516237cad19900fa47275d41a0b
3
+ size 30805313600
miqu-1-120b-attenuated.yml ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ###############################
2
+ # miqu-1-120b-attenuated.yaml #
3
+ ###############################
4
+
5
+ # Use: mergekit-yaml --clone-tensors ./miqu-1-120b-attenuated.yaml ./miqu-1-120b-attenuated
6
+
7
+ # See: https://huggingface.co/wolfram/miqu-1-120b for original 'miqu-1-120b' layer ranges.
8
+ # See: https://github.com/arcee-ai/mergekit/issues/198 for discussion/reasoning behind this idea.
9
+
10
+ # ---
11
+
12
+ # The scale factor to use, eg: solve x^2 = 1/2 --> x = 1/sqrt(2) ≈ 0.7071067812
13
+ const_tag: &scale_factor 0.7071067812 # 1/sqrt(2)
14
+
15
+ # The filter parameters of a scaled block.
16
+ attenuate-env: &attenuated_env
17
+ parameters:
18
+ scale:
19
+ - filter: q_proj
20
+ value: *scale_factor
21
+ - filter: k_proj
22
+ value: *scale_factor
23
+ - value: 1.0
24
+
25
+ # ---
26
+
27
+ slices:
28
+
29
+ ###########################
30
+ # Block 1: miqu-1 [0, 20] #
31
+ ###########################
32
+ - sources:
33
+ - model: 152334H/miqu-1-70b-sf
34
+ layer_range: [0, 10] # The first 10 layers of Block 1 are not duplicated
35
+ - sources:
36
+ - model: 152334H/miqu-1-70b-sf
37
+ layer_range: [10, 20] # The last 10 layers of Block 1 are are duplicated twice
38
+ <<: *attenuated_env
39
+
40
+ ###########################
41
+ # Block 2: miqu-1 [10, 30] #
42
+ ###########################
43
+ - sources:
44
+ - model: 152334H/miqu-1-70b-sf
45
+ layer_range: [10, 30]
46
+ <<: *attenuated_env
47
+
48
+ ###########################
49
+ # Block 3: miqu-1 [20, 40] #
50
+ ###########################
51
+ - sources:
52
+ - model: 152334H/miqu-1-70b-sf
53
+ layer_range: [20, 40]
54
+ <<: *attenuated_env
55
+
56
+ ###########################
57
+ # Block 4: miqu-1 [30, 50] #
58
+ ###########################
59
+ - sources:
60
+ - model: 152334H/miqu-1-70b-sf
61
+ layer_range: [30, 50]
62
+ <<: *attenuated_env
63
+
64
+ ###########################
65
+ # Block 5: miqu-1 [40, 60] #
66
+ ###########################
67
+ - sources:
68
+ - model: 152334H/miqu-1-70b-sf
69
+ layer_range: [40, 60]
70
+ <<: *attenuated_env
71
+
72
+ ###########################
73
+ # Block 6: miqu-1 [50, 70] #
74
+ ###########################
75
+ - sources:
76
+ - model: 152334H/miqu-1-70b-sf
77
+ layer_range: [50, 70]
78
+ <<: *attenuated_env
79
+
80
+ ##########################
81
+ # Block 7: miqu-1 [60, 80] #
82
+ ##########################
83
+ - sources:
84
+ - model: 152334H/miqu-1-70b-sf
85
+ layer_range: [60, 70] # The first 10 layers of Block 7 are are duplicated twice
86
+ <<: *attenuated_env
87
+ - sources:
88
+ - model: 152334H/miqu-1-70b-sf
89
+ layer_range: [70, 80] # The last 10 layers of Block 7 are not duplicated
90
+
91
+ merge_method: passthrough
92
+ dtype: float16
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": "<unk>",
36
+ "sp_model_kwargs": {},
37
+ "spaces_between_special_tokens": false,
38
+ "tokenizer_class": "LlamaTokenizer",
39
+ "unk_token": "<unk>",
40
+ "use_default_system_prompt": false,
41
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}"
42
+ }