KaraKaraWitch
commited on
Commit
•
7b0131a
1
Parent(s):
0b8027f
Add files using upload-large-folder tool
Browse files
.ipynb_checkpoints/README-checkpoint.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model:
|
3 |
+
- NousResearch/Hermes-3-Llama-3.1-70B
|
4 |
+
- Fizzarolli/L3.1-70b-glitz-v0.2
|
5 |
+
- cyberagent/Llama-3.1-70B-Japanese-Instruct-2407
|
6 |
+
- Sao10K/L3-70B-Euryale-v2.1
|
7 |
+
tags:
|
8 |
+
- merge
|
9 |
+
- mergekit
|
10 |
+
- lazymergekit
|
11 |
+
- NousResearch/Hermes-3-Llama-3.1-70B
|
12 |
+
- Fizzarolli/L3.1-70b-glitz-v0.2
|
13 |
+
- cyberagent/Llama-3.1-70B-Japanese-Instruct-2407
|
14 |
+
- Sao10K/L3-70B-Euryale-v2.1
|
15 |
+
---
|
16 |
+
|
17 |
+
# L3.1-70b-Ginny
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
L3.1-70b-Ginny is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
22 |
+
* [NousResearch/Hermes-3-Llama-3.1-70B](https://huggingface.co/NousResearch/Hermes-3-Llama-3.1-70B)
|
23 |
+
* [Fizzarolli/L3.1-70b-glitz-v0.2](https://huggingface.co/Fizzarolli/L3.1-70b-glitz-v0.2)
|
24 |
+
* [cyberagent/Llama-3.1-70B-Japanese-Instruct-2407](https://huggingface.co/cyberagent/Llama-3.1-70B-Japanese-Instruct-2407)
|
25 |
+
* [Sao10K/L3-70B-Euryale-v2.1](https://huggingface.co/Sao10K/L3-70B-Euryale-v2.1)
|
26 |
+
|
27 |
+
I really liked Glitz and Euryale. Though they can get kinda wish-washy and don't follow structure well enough.
|
28 |
+
I used Hermes as a base as it has rather good instruct following but it's way too instruct focused.
|
29 |
+
I find myself running into Japanese text too. Which neither 3 models are like superb at, so I used cyberagent's Japanese Instruct to give it a boost.
|
30 |
+
|
31 |
+
## 🧩 Configuration
|
32 |
+
|
33 |
+
```yaml
|
34 |
+
|
35 |
+
models:
|
36 |
+
- model: NousResearch/Hermes-3-Llama-3.1-70B
|
37 |
+
parameters:
|
38 |
+
density: 0.33
|
39 |
+
weight: 0.25
|
40 |
+
- model: Fizzarolli/L3.1-70b-glitz-v0.2
|
41 |
+
parameters:
|
42 |
+
density: 0.7
|
43 |
+
weight: 0.5
|
44 |
+
- model: cyberagent/Llama-3.1-70B-Japanese-Instruct-2407
|
45 |
+
parameters:
|
46 |
+
density: 0.5
|
47 |
+
weight: 0.25
|
48 |
+
- model: Sao10K/L3-70B-Euryale-v2.1
|
49 |
+
parameters:
|
50 |
+
density: 0.7
|
51 |
+
weight: 0.5
|
52 |
+
|
53 |
+
merge_method: ties
|
54 |
+
base_model: NousResearch/Hermes-3-Llama-3.1-70B
|
55 |
+
parameters:
|
56 |
+
normalize: true
|
57 |
+
dtype: bfloat16
|
58 |
+
```
|
59 |
+
|
60 |
+
## 💻 Usage
|
61 |
+
|
62 |
+
```python
|
63 |
+
!pip install -qU transformers accelerate
|
64 |
+
|
65 |
+
from transformers import AutoTokenizer
|
66 |
+
import transformers
|
67 |
+
import torch
|
68 |
+
|
69 |
+
model = "KaraKaraWitch/L3.1-70b-Ginny"
|
70 |
+
messages = [{"role": "user", "content": "What is a large language model?"}]
|
71 |
+
|
72 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
73 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
74 |
+
pipeline = transformers.pipeline(
|
75 |
+
"text-generation",
|
76 |
+
model=model,
|
77 |
+
torch_dtype=torch.float16,
|
78 |
+
device_map="auto",
|
79 |
+
)
|
80 |
+
|
81 |
+
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
82 |
+
print(outputs[0]["generated_text"])
|
83 |
+
```
|
model-00142-of-00162.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec757766303c830606e8defe3a52308f07aa0eb96c0427497c1f97edacbc1c89
|
3 |
+
size 771785544
|