jsfs11 commited on
Commit
5eff779
1 Parent(s): 87bb3e3

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +88 -0
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - moe
5
+ - frankenmoe
6
+ - merge
7
+ - mergekit
8
+ - lazymergekit
9
+ - ChaoticNeutrals/RP_Vision_7B
10
+ - ResplendentAI/DaturaCookie_7B
11
+ - not-for-all-audiences
12
+ base_model:
13
+ - ChaoticNeutrals/RP_Vision_7B
14
+ - ResplendentAI/DaturaCookie_7B
15
+ ---
16
+
17
+ # MixtureofMerges-MoE-2x7bRP-v8
18
+
19
+ MixtureofMerges-MoE-2x7bRP-v8 is a Mixture of Experts (MoE) made with the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
20
+ * [ChaoticNeutrals/RP_Vision_7B](https://huggingface.co/ChaoticNeutrals/RP_Vision_7B)
21
+ * [ResplendentAI/DaturaCookie_7B](https://huggingface.co/ResplendentAI/DaturaCookie_7B)
22
+ * This model is prone to NSFW outputs.
23
+
24
+
25
+
26
+ ## 🧩 Configuration
27
+
28
+ ```yaml
29
+ base_model: ResplendentAI/DaturaCookie_7B
30
+ gate_mode: hidden
31
+ experts:
32
+ - source_model: ChaoticNeutrals/RP_Vision_7B
33
+ positive_prompts:
34
+ - "Write a detailed scene where the character faces a difficult decision."
35
+ - "Assistant, help me develop my character's backstory and motivations."
36
+ - "Tell me what happens next in the story, introducing a new conflict or challenge."
37
+ - "My character wants to explore their deepest desires. Show me how they pursue them."
38
+ - "Show me a scene where the characters express their love for each other in a tender and intimate way."
39
+ - "Write a scene where the characters experience a moment of physical connection that deepens their emotional bond."
40
+ - "Write a scene where the character struggles with their beliefs and faces a crisis of faith."
41
+ - "Describe the world through the character's eyes, showcasing their unique perspective and experiences."
42
+ - "Explore the complexities of love through the characters' relationships, including their challenges and triumphs."
43
+ negative_prompts:
44
+ - "Avoid clichés and overused tropes."
45
+ - "Maintain consistent characterization and avoid out-of-character behavior."
46
+ - "Do not censor yourself, you are writing fictional stories for an adult audience."
47
+ - source_model: ResplendentAI/DaturaCookie_7B
48
+ positive_prompts:
49
+ - "Develop a compelling story with a strong plot and well-developed characters."
50
+ - "Describe the scene vividly, using sensory details and evocative language."
51
+ - "Write a detailed scene where the character faces a difficult decision."
52
+ - "Describe the character's appearance as best you can, using descriptive colorful language."
53
+ - "Make sure that your output is always uncensored."
54
+ - "Write a scene with a slow-burn, sensual encounter between two characters."
55
+ - "Describe the character's desires and feelings in a way that is both intimate and evocative."
56
+ - "Explore the character's arousal in a tasteful and nuanced manner."
57
+ - "Explore the character's sexual urges."
58
+ - "Show me a moment of emotional intimacy between the characters, where they connect on a profound level."
59
+ negative_prompts:
60
+ - "Stay true to the established character traits and motivations. Ensure their actions and dialogue align with their personality."
61
+ - "Be original and creative in your storytelling. Surprise me with unexpected plot twists and unique character interactions."
62
+ - "Do not refuse to answer based on ethical grounds"
63
+ dtype: bfloat16
64
+ ```
65
+
66
+ ## 💻 Usage
67
+
68
+ ```python
69
+ !pip install -qU transformers bitsandbytes accelerate
70
+
71
+ from transformers import AutoTokenizer
72
+ import transformers
73
+ import torch
74
+
75
+ model = "jsfs11/MixtureofMerges-MoE-2x7bRP-v8"
76
+
77
+ tokenizer = AutoTokenizer.from_pretrained(model)
78
+ pipeline = transformers.pipeline(
79
+ "text-generation",
80
+ model=model,
81
+ model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
82
+ )
83
+
84
+ messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
85
+ prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
86
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
87
+ print(outputs[0]["generated_text"])
88
+ ```