Stark2008 commited on
Commit
b1dc9e5
·
verified ·
1 Parent(s): 7febc02

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +70 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - Nitral-AI/Visual-LaylelemonMaidRP-7B
4
+ - flammenai/flammen15-gutenberg-DPO-v1-7B
5
+ - Eric111/CatunaLaserPi
6
+ tags:
7
+ - merge
8
+ - mergekit
9
+ - lazymergekit
10
+ - Nitral-AI/Visual-LaylelemonMaidRP-7B
11
+ - flammenai/flammen15-gutenberg-DPO-v1-7B
12
+ - Eric111/CatunaLaserPi
13
+ ---
14
+
15
+ # LayleleFlamPi
16
+
17
+ LayleleFlamPi is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
18
+ * [Nitral-AI/Visual-LaylelemonMaidRP-7B](https://huggingface.co/Nitral-AI/Visual-LaylelemonMaidRP-7B)
19
+ * [flammenai/flammen15-gutenberg-DPO-v1-7B](https://huggingface.co/flammenai/flammen15-gutenberg-DPO-v1-7B)
20
+ * [Eric111/CatunaLaserPi](https://huggingface.co/Eric111/CatunaLaserPi)
21
+
22
+ ## 🧩 Configuration
23
+
24
+ ```yaml
25
+ models:
26
+ - model: Nitral-AI/Visual-LaylelemonMaidRP-7B
27
+ parameters:
28
+ density: 0.5
29
+ weight: 0.8
30
+ - model: flammenai/flammen15-gutenberg-DPO-v1-7B
31
+ parameters:
32
+ density: 0.5
33
+ weight: 1.02272727255
34
+ - model: Eric111/CatunaLaserPi
35
+ parameters:
36
+ density: 0.5
37
+ weight: 0.875
38
+
39
+ merge_method: ties
40
+ base_model: flammenai/flammen15-gutenberg-DPO-v1-7B
41
+ parameters:
42
+ normalize: true
43
+ int8_mask: true
44
+ dtype: bfloat16
45
+ ```
46
+
47
+ ## 💻 Usage
48
+
49
+ ```python
50
+ !pip install -qU transformers accelerate
51
+
52
+ from transformers import AutoTokenizer
53
+ import transformers
54
+ import torch
55
+
56
+ model = "Stark2008/LayleleFlamPi"
57
+ messages = [{"role": "user", "content": "What is a large language model?"}]
58
+
59
+ tokenizer = AutoTokenizer.from_pretrained(model)
60
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
61
+ pipeline = transformers.pipeline(
62
+ "text-generation",
63
+ model=model,
64
+ torch_dtype=torch.float16,
65
+ device_map="auto",
66
+ )
67
+
68
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
69
+ print(outputs[0]["generated_text"])
70
+ ```