File size: 1,402 Bytes
4794c86
c123450
 
4794c86
 
 
 
 
 
 
c123450
 
 
4794c86
 
 
 
 
 
 
 
d198c52
 
d6c0e1e
d198c52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4794c86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- ko
license: cc-by-nc-4.0
tags:
- merge
- mergekit
- lazymergekit
- LDCC/LDCC-SOLAR-10.7B
- upstage/SOLAR-10.7B-Instruct-v1.0
base_model:
- LDCC/LDCC-SOLAR-10.7B
- upstage/SOLAR-10.7B-Instruct-v1.0
---

# SOLAR-10.7B-slerp

SOLAR-10.7B-slerp is a merge of the following models using [mergekit](https://github.com/cg123/mergekit):
* [LDCC/LDCC-SOLAR-10.7B](https://huggingface.co/LDCC/LDCC-SOLAR-10.7B)
* [upstage/SOLAR-10.7B-Instruct-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0)

## Github

[https://github.com/sunjin7725/SOLAR-10.7b-slerp](https://github.com/sunjin7725/SOLAR-10.7b-slerp)


## How to use

```Python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = 'SJ-Donald/SOLAR-10.7B-slerp'

tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(
    repo,
    return_dict=True,
    torch_dtype=torch.float16,
    device_map='auto'
)
```


## 🧩 Configuration

```yaml
slices:
  - sources:
      - model: LDCC/LDCC-SOLAR-10.7B
        layer_range: [0, 48]
      - model: upstage/SOLAR-10.7B-Instruct-v1.0
        layer_range: [0, 48]
merge_method: slerp
base_model: upstage/SOLAR-10.7B-Instruct-v1.0
parameters:
  t:
    - filter: self_attn
      value: [0, 0.5, 0.3, 0.7, 1]
    - filter: mlp
      value: [1, 0.5, 0.7, 0.3, 0]
    - value: 0.5
tokenizer_source: union
dtype: float16

```