limin(gate) commited on
Commit
70bc649
1 Parent(s): 264d834

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +73 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - merge
5
+ - mergekit
6
+ - lazymergekit
7
+ - s3nh/Sonya-Panda-7B-slerp
8
+ - argilla/distilabeled-Marcoro14-7B-slerp
9
+ - Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-v3-3-Slerp
10
+ base_model:
11
+ - s3nh/Sonya-Panda-7B-slerp
12
+ - argilla/distilabeled-Marcoro14-7B-slerp
13
+ - Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-v3-3-Slerp
14
+ ---
15
+
16
+ # Blur-7b-v1.22
17
+
18
+ Blur-7b-v1.22 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
19
+ * [s3nh/Sonya-Panda-7B-slerp](https://huggingface.co/s3nh/Sonya-Panda-7B-slerp)
20
+ * [argilla/distilabeled-Marcoro14-7B-slerp](https://huggingface.co/argilla/distilabeled-Marcoro14-7B-slerp)
21
+ * [Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-v3-3-Slerp](https://huggingface.co/Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-v3-3-Slerp)
22
+
23
+ ## 🧩 Configuration
24
+
25
+ ```yaml
26
+ models:
27
+ - model: s3nh/Sonya-Panda-7B-slerp
28
+ parameters:
29
+ density: [1, 0.7, 0.1] # density gradient
30
+ weight: 1.0
31
+ - model: argilla/distilabeled-Marcoro14-7B-slerp
32
+ parameters:
33
+ density: 0.5
34
+ weight: [0, 0.3, 0.7, 1] # weight gradient
35
+ - model: Weyaxi/MetaMath-OpenHermes-2.5-neural-chat-v3-3-Slerp
36
+ parameters:
37
+ density: 0.33
38
+ weight:
39
+ - filter: mlp
40
+ value: 0.5
41
+ - value: 0
42
+ merge_method: ties
43
+ base_model: Blur-7b-v1.21
44
+ parameters:
45
+ normalize: true
46
+ int8_mask: true
47
+ dtype: bfloat16
48
+ ```
49
+
50
+ ## 💻 Usage
51
+
52
+ ```python
53
+ !pip install -qU transformers accelerate
54
+
55
+ from transformers import AutoTokenizer
56
+ import transformers
57
+ import torch
58
+
59
+ model = "liminerity/Blur-7b-v1.22"
60
+ messages = [{"role": "user", "content": "What is a large language model?"}]
61
+
62
+ tokenizer = AutoTokenizer.from_pretrained(model)
63
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
64
+ pipeline = transformers.pipeline(
65
+ "text-generation",
66
+ model=model,
67
+ torch_dtype=torch.float16,
68
+ device_map="auto",
69
+ )
70
+
71
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
72
+ print(outputs[0]["generated_text"])
73
+ ```