kainatq commited on
Commit
0686252
·
verified ·
1 Parent(s): 4f23eb4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +95 -0
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-7b-v3-1-7B-Linear
4
+ - icefog72/IceMoonshineRP-7b
5
+ - Weyaxi/MetaMath-neural-chat-7b-v3-2-Slerp
6
+ - VAGOsolutions/SauerkrautLM-7b-HerO
7
+ - mrfakename/NeuralOrca-7B-v1
8
+ tags:
9
+ - merge
10
+ - mergekit
11
+ - lazymergekit
12
+ - Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-7b-v3-1-7B-Linear
13
+ - icefog72/IceMoonshineRP-7b
14
+ - Weyaxi/MetaMath-neural-chat-7b-v3-2-Slerp
15
+ - VAGOsolutions/SauerkrautLM-7b-HerO
16
+ - mrfakename/NeuralOrca-7B-v1
17
+ ---
18
+
19
+ # kangaroo_7B_test01
20
+
21
+ kangaroo_7B_test01 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
22
+ * [Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-7b-v3-1-7B-Linear](https://huggingface.co/Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-7b-v3-1-7B-Linear)
23
+ * [icefog72/IceMoonshineRP-7b](https://huggingface.co/icefog72/IceMoonshineRP-7b)
24
+ * [Weyaxi/MetaMath-neural-chat-7b-v3-2-Slerp](https://huggingface.co/Weyaxi/MetaMath-neural-chat-7b-v3-2-Slerp)
25
+ * [VAGOsolutions/SauerkrautLM-7b-HerO](https://huggingface.co/VAGOsolutions/SauerkrautLM-7b-HerO)
26
+ * [mrfakename/NeuralOrca-7B-v1](https://huggingface.co/mrfakename/NeuralOrca-7B-v1)
27
+
28
+ ## 🧩 Configuration
29
+
30
+ ```yaml
31
+ models:
32
+ - model: BioMistral/BioMistral-7B-DARE
33
+ # No parameters necessary for base model
34
+ - model: Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-7b-v3-1-7B-Linear
35
+ parameters:
36
+ density: 0.5
37
+ weight: 0.2
38
+
39
+
40
+ - model: icefog72/IceMoonshineRP-7b
41
+ parameters:
42
+ density: 0.5
43
+ weight: 0.2
44
+
45
+
46
+ - model: Weyaxi/MetaMath-neural-chat-7b-v3-2-Slerp
47
+ parameters:
48
+ density: 0.5
49
+ weight: 0.2
50
+
51
+
52
+ - model: VAGOsolutions/SauerkrautLM-7b-HerO
53
+ parameters:
54
+ density: 0.5
55
+ weight: 0.2
56
+
57
+
58
+ - model: mrfakename/NeuralOrca-7B-v1
59
+ parameters:
60
+ density: 0.5
61
+ weight: 0.2
62
+
63
+
64
+ merge_method: dare_ties
65
+ base_model: BioMistral/BioMistral-7B-DARE
66
+ parameters:
67
+ int8_mask: true
68
+ dtype: bfloat16
69
+
70
+ ```
71
+
72
+ ## 💻 Usage
73
+
74
+ ```python
75
+ !pip install -qU transformers accelerate
76
+
77
+ from transformers import AutoTokenizer
78
+ import transformers
79
+ import torch
80
+
81
+ model = "kainatq/kangaroo_7B_test01"
82
+ messages = [{"role": "user", "content": "What is a large language model?"}]
83
+
84
+ tokenizer = AutoTokenizer.from_pretrained(model)
85
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
86
+ pipeline = transformers.pipeline(
87
+ "text-generation",
88
+ model=model,
89
+ torch_dtype=torch.float16,
90
+ device_map="auto",
91
+ )
92
+
93
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
94
+ print(outputs[0]["generated_text"])
95
+ ```