File size: 2,282 Bytes
ee7f534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
base_model:
- kuotient/Meta-Llama-3-8B-Instruct
library_name: transformers
tags:
- mergekit
- merge

---
# meta-llama-15b-2

This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).

## Merge Details
### Merge Method

This model was merged using the passthrough merge method.

### Models Merged

The following models were included in the merge:
* [kuotient/Meta-Llama-3-8B-Instruct](https://huggingface.co/kuotient/Meta-Llama-3-8B-Instruct)

### Configuration

The following YAML configuration was used to produce this model:

```yaml
###############################
# llama-3-attenuated.yaml #
###############################

# Use: mergekit-yaml --clone-tensors ./llama-3-attenuated.yaml ./llama-3-attenuated
# See: https://github.com/arcee-ai/mergekit/issues/198 for discussion/reasoning behind this idea.

# ---

# The scale factor to use, eg: solve x^2 = 1/2 --> x = 1/sqrt(2) ≈ 0.7071067812
const_tag: &scale_factor 0.7071067812 # 1/sqrt(2)

# The filter parameters of a scaled block. 
attenuate-env: &attenuated_env
  parameters:
    scale:
      - filter: q_proj
        value: *scale_factor
      - filter: k_proj
        value: *scale_factor
      - value: 1.0

# ---

slices:
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [0, 4] 
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [4, 8] 
      <<: *attenuated_env
      
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [4, 12] 
      <<: *attenuated_env
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [8, 16] 
      <<: *attenuated_env
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [12, 20] 
      <<: *attenuated_env
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [16, 24] 
      <<: *attenuated_env
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [20, 28] 
      <<: *attenuated_env
      
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [24, 28]
      <<: *attenuated_env
  - sources:
    - model: kuotient/Meta-Llama-3-8B-Instruct
      layer_range: [28, 32]

merge_method: passthrough
dtype: bfloat16

```