Model details and merge details
Browse files
README.md
CHANGED
@@ -1,292 +1,125 @@
|
|
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 |
-
|
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 |
-
|
169 |
-
|---------|------:|------|-----:|--------|-----:|---|-----:|
|
170 |
-
|hellaswag| 1|none | 0|acc |0.6851|± |0.0046|
|
171 |
-
| | |none | 0|acc_norm|0.8690|± |0.0034|
|
172 |
|
173 |
-
|
174 |
-
|
175 |
-
|winogrande| 1|none | 0|acc |0.7987|± |0.0113|
|
176 |
|
177 |
-
|
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 |
-
|
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 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
language:
|
3 |
- en
|
4 |
+
license: apache-2.0
|
5 |
---
|
6 |
|
7 |
+
This is an experimental self-merge of [miqu-1-70b-sf](https://huggingface.co/152334H/miqu-1-70b-sf)
|
8 |
+
using @jukofyork idea of [Downscaling the K and/or Q matrices for repeated layers in franken-merges](https://github.com/arcee-ai/mergekit/issues/198).
|
9 |
+
More info about the _attenuation_ is available in this [discussion](https://huggingface.co/wolfram/miqu-1-120b/discussions/4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
In my own [LLM Creativity benchmark](https://huggingface.co/datasets/froggeric/creativity) it performs sightly
|
12 |
+
better than the original [wolfram/miqu-1-120b](https://huggingface.co/wolfram/miqu-1-120b). Specifically,
|
13 |
+
I noticed some **improvements at creative writing, producing longer, more details, and unrushed text**.
|
14 |
+
Like wolfram/miqu-1-120b though, there is some degradation over miqu-1-70b, with longer text, as it starts
|
15 |
+
deviating from instructions and requires some effort to keep it on track.
|
16 |
|
17 |
+
## Model Details
|
|
|
|
|
|
|
18 |
|
19 |
+
- Max Context: 32764 tokens (kept the weird number from the original/base model)
|
20 |
+
- Layers: 140
|
|
|
21 |
|
22 |
+
### Prompt template: Mistral
|
|
|
|
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
```
|
25 |
+
<s>[INST] {prompt} [/INST]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
```
|
|
|
|
|
|
|
27 |
|
28 |
+
See also: [🐺🐦⬛ LLM Prompt Format Comparison/Test: Mixtral 8x7B Instruct with **17** different instruct templates : LocalLLaMA](https://www.reddit.com/r/LocalLLaMA/comments/18ljvxb/llm_prompt_format_comparisontest_mixtral_8x7b/)
|
29 |
+
|
30 |
+
## Merge details with mergekit
|
31 |
+
|
32 |
+
```yaml
|
33 |
+
###############################
|
34 |
+
# miqu-1-120b-attenuated.yaml #
|
35 |
+
###############################
|
36 |
+
|
37 |
+
# Use: mergekit-yaml --clone-tensors ./miqu-1-120b-attenuated.yaml ./miqu-1-120b-attenuated
|
38 |
+
|
39 |
+
# See: https://huggingface.co/wolfram/miqu-1-120b for original 'miqu-1-120b' layer ranges.
|
40 |
+
# See: https://github.com/arcee-ai/mergekit/issues/198 for discussion/reasoning behind this idea.
|
41 |
+
|
42 |
+
# ---
|
43 |
+
|
44 |
+
# The scale factor to use, eg: solve x^2 = 1/2 --> x = 1/sqrt(2) ≈ 0.7071067812
|
45 |
+
const_tag: &scale_factor 0.7071067812 # 1/sqrt(2)
|
46 |
+
|
47 |
+
# The filter parameters of a scaled block.
|
48 |
+
attenuate-env: &attenuated_env
|
49 |
+
parameters:
|
50 |
+
scale:
|
51 |
+
- filter: q_proj
|
52 |
+
value: *scale_factor
|
53 |
+
- filter: k_proj
|
54 |
+
value: *scale_factor
|
55 |
+
- value: 1.0
|
56 |
+
|
57 |
+
# ---
|
58 |
+
|
59 |
+
slices:
|
60 |
+
|
61 |
+
###########################
|
62 |
+
# Block 1: miqu-1 [0, 20] #
|
63 |
+
###########################
|
64 |
+
- sources:
|
65 |
+
- model: miqu-1-70b-sf
|
66 |
+
layer_range: [0, 10] # The first 10 layers of Block 1 are not duplicated
|
67 |
+
- sources:
|
68 |
+
- model: miqu-1-70b-sf
|
69 |
+
layer_range: [10, 20] # The last 10 layers of Block 1 are are duplicated twice
|
70 |
+
<<: *attenuated_env
|
71 |
+
|
72 |
+
###########################
|
73 |
+
# Block 2: miqu-1 [10, 30] #
|
74 |
+
###########################
|
75 |
+
- sources:
|
76 |
+
- model: miqu-1-70b-sf
|
77 |
+
layer_range: [10, 30]
|
78 |
+
<<: *attenuated_env
|
79 |
+
|
80 |
+
###########################
|
81 |
+
# Block 3: miqu-1 [20, 40] #
|
82 |
+
###########################
|
83 |
+
- sources:
|
84 |
+
- model: miqu-1-70b-sf
|
85 |
+
layer_range: [20, 40]
|
86 |
+
<<: *attenuated_env
|
87 |
+
|
88 |
+
###########################
|
89 |
+
# Block 4: miqu-1 [30, 50] #
|
90 |
+
###########################
|
91 |
+
- sources:
|
92 |
+
- model: miqu-1-70b-sf
|
93 |
+
layer_range: [30, 50]
|
94 |
+
<<: *attenuated_env
|
95 |
+
|
96 |
+
###########################
|
97 |
+
# Block 5: miqu-1 [40, 60] #
|
98 |
+
###########################
|
99 |
+
- sources:
|
100 |
+
- model: miqu-1-70b-sf
|
101 |
+
layer_range: [40, 60]
|
102 |
+
<<: *attenuated_env
|
103 |
+
|
104 |
+
###########################
|
105 |
+
# Block 6: miqu-1 [50, 70] #
|
106 |
+
###########################
|
107 |
+
- sources:
|
108 |
+
- model: miqu-1-70b-sf
|
109 |
+
layer_range: [50, 70]
|
110 |
+
<<: *attenuated_env
|
111 |
+
|
112 |
+
##########################
|
113 |
+
# Block 7: miqu-1 [60, 80] #
|
114 |
+
##########################
|
115 |
+
- sources:
|
116 |
+
- model: miqu-1-70b-sf
|
117 |
+
layer_range: [60, 70] # The first 10 layers of Block 7 are are duplicated twice
|
118 |
+
<<: *attenuated_env
|
119 |
+
- sources:
|
120 |
+
- model: miqu-1-70b-sf
|
121 |
+
layer_range: [70, 80] # The last 10 layers of Block 7 are not duplicated
|
122 |
+
|
123 |
+
merge_method: passthrough
|
124 |
+
dtype: float16
|
125 |
+
```
|