File size: 4,408 Bytes
dbf6b9d
 
 
 
 
 
 
 
 
 
 
 
e5fb2f7
dbf6b9d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
---
base_model:
- meta-llama/Meta-Llama-3-70B-Instruct
license: llama3
language:
- en
pipeline_tag: text-generation
tags:
- merge
- frankenmerge
- 96b
---
# BigWeave v31 96b

<img src="https://cdn-uploads.huggingface.co/production/uploads/65a6db055c58475cf9e6def1/4CbbAN-X7ZWj702JrcCGH.png" width=600>

The BigWeave models aim to experimentally identify merge settings for increasing model performance. The version number merely tracks various attempts and is not a quality indicator. Only results demonstrating good performance are retained and shared.

# Prompting Format
llamav3

# Merge process
This is a self-merge of meta-llama/Meta-Llama-3-70B-Instruct. Middle layers are duplicated and various matrices are scaled according to the template by jukofyork as shown here: https://github.com/arcee-ai/mergekit/issues/198#issuecomment-2079950009

Merge configuration:
```
const_tag: &MODEL meta-llama/Meta-Llama-3-70B-Instruct

const_tag: &RESIDUAL_SCALE_FACTOR 0.5
const_tag: &QK_ATTENUATION_FACTOR 0.7071067812
const_tag: &OUT_FACTOR 0.9

scale-filter-env: &scale_filter_env
  parameters:
    scale:
      - filter: o_proj
        value: *RESIDUAL_SCALE_FACTOR
      - filter: down_proj
        value: *RESIDUAL_SCALE_FACTOR
      - filter: q_proj
        value: *QK_ATTENUATION_FACTOR
      - filter: k_proj
        value: *QK_ATTENUATION_FACTOR
      - filter: v_proj
        value: *OUT_FACTOR
      - filter: up_proj
        value: *OUT_FACTOR
      - value: 1.0

slices:
  - sources:
    - model: *MODEL
      layer_range: [0, 25]

  - sources:
    - model: *MODEL
      layer_range: [25, 26]
      <<: *scale_filter_env

  - sources:
    - model: *MODEL
      layer_range: [25, 27]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [26, 28]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [27, 29]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [28, 30]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [29, 31]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [30, 32]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [31, 33]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [32, 34]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [33, 35]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [34, 36]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [35, 37]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [36, 38]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [37, 39]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [38, 40]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [39, 41]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [40, 42]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [41, 43]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [42, 44]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [43, 45]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [44, 46]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [45, 47]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [46, 48]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [47, 49]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [48, 50]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [49, 51]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [50, 52]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [51, 53]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [52, 54]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [53, 55]
      <<: *scale_filter_env

  - sources:
    - model: *MODEL
      layer_range: [54, 55]
      <<: *scale_filter_env
  - sources:
    - model: *MODEL
      layer_range: [55, 80]

merge_method: passthrough
dtype: float16
```