jsfs11 commited on
Commit
753a0ec
1 Parent(s): faa478a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +161 -0
README.md ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - moe
5
+ - frankenmoe
6
+ - merge
7
+ - mergekit
8
+ - lazymergekit
9
+ - mlabonne/NeuralBeagle14-7B
10
+ - jsfs11/TurdusTrixBeagle-DARETIES-7B
11
+ - FelixChao/WestSeverus-7B-DPO-v2
12
+ - CultriX/Wernicke-7B-v7
13
+ base_model:
14
+ - mlabonne/NeuralBeagle14-7B
15
+ - jsfs11/TurdusTrixBeagle-DARETIES-7B
16
+ - FelixChao/WestSeverus-7B-DPO-v2
17
+ - CultriX/Wernicke-7B-v7
18
+ ---
19
+
20
+ # MixtureofMerges-MoE-v2
21
+
22
+ MixtureofMerges-MoE-v2 is a Mixure of Experts (MoE) made with the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
23
+ * [mlabonne/NeuralBeagle14-7B](https://huggingface.co/mlabonne/NeuralBeagle14-7B)
24
+ * [jsfs11/TurdusTrixBeagle-DARETIES-7B](https://huggingface.co/jsfs11/TurdusTrixBeagle-DARETIES-7B)
25
+ * [FelixChao/WestSeverus-7B-DPO-v2](https://huggingface.co/FelixChao/WestSeverus-7B-DPO-v2)
26
+ * [CultriX/Wernicke-7B-v7](https://huggingface.co/CultriX/Wernicke-7B-v7)
27
+
28
+ ## 🧩 Configuration
29
+
30
+ ```yaml
31
+ base_model: "CultriX/Wernicke-7B-v9"
32
+ gate_mode: hidden
33
+ dtype: float16
34
+ experts:
35
+ - source_model: "mlabonne/NeuralBeagle14-7B" #AGIEval
36
+ positive_prompts:
37
+ - "Analyze the long-term economic impacts of the Industrial Revolution on global trade dynamics."
38
+ - "Discuss the scientific advancements during the Space Race and their modern-day implications."
39
+ - "Explain the geopolitical shifts resulting from the collapse of the Soviet Union."
40
+ - "Evaluate the environmental and social consequences of deforestation in the Amazon rainforest."
41
+ - "Assess the role of technology in shaping 21st-century political campaigns."
42
+ - "Describe the evolution of renewable energy technologies and their future potential."
43
+ - "Analyze the social and economic effects of the internet revolution on global communication."
44
+ - "Discuss the ethical considerations in implementing artificial intelligence in healthcare."
45
+ - "Examine the historical significance of the Treaty of Versailles in shaping post-World War I Europe."
46
+ - "Explain the impact of quantum computing on cybersecurity in the coming decades."
47
+ - "Assess the effects of climate change on global migration patterns."
48
+ - "Analyze the historical development and significance of the United Nations."
49
+ - "Discuss the role of nanotechnology in advancing medical science."
50
+ - "Evaluate the economic consequences of cryptocurrency adoption on traditional banking systems."
51
+ - "Explain the scientific principles of gene editing and its potential societal impacts."
52
+ negative_prompts:
53
+ - "Write a short story set in a futuristic world where AI governs society."
54
+ - "Compose a poem about the beauty of the ocean."
55
+ - "Create a fictional character and describe their journey through a magical land."
56
+ - "Narrate a day in the life of an astronaut exploring Mars."
57
+ - "Draft a dialogue between two famous painters discussing the essence of art."
58
+ - "Describe the scenery of a peaceful village in the Swiss Alps."
59
+ - "Invent a new language and provide basic grammar rules and vocabulary."
60
+ - "Sketch a scene of a bustling market in a historical city."
61
+ - "Compose a song about the changing seasons."
62
+ - "Write a theatrical script set in 18th-century France."
63
+ - source_model: "jsfs11/TurdusTrixBeagle-DARETIES-7B" #GPT4ALL
64
+ positive_prompts:
65
+ - "Translate the Japanese haiku into English and explain its cultural context."
66
+ - "Write a short story in Spanish set during the Mexican Revolution."
67
+ - "Describe the traditional Italian family dinner, highlighting cultural nuances in Italian."
68
+ - "Compose a poem in French about the Eiffel Tower and its symbolism in French culture."
69
+ - "Translate the following Russian proverb into English and discuss its meaning: 'Век живи — век учись' (Live for a century, learn for a century)."
70
+ - "Narrate a typical day during the Brazilian Carnival in Portuguese, focusing on the cultural significance."
71
+ - "Discuss the influence of ancient Greek philosophy on modern Western culture, incorporating phrases in Greek."
72
+ - "Write a dialogue in Mandarin between two characters discussing the significance of the Chinese New Year."
73
+ - "Explain the concept of 'Hygge' in Danish and its impact on Danish lifestyle."
74
+ - "Describe the traditional Indian wedding ceremonies in Hindi, emphasizing the diverse cultural practices."
75
+ - "Compose a poem about the beauty of a sunset over the ocean."
76
+ - "Create a fictional character who lives in a utopian society and describe their daily life."
77
+ negative_prompts:
78
+ - "Analyze the economic impact of the 2008 global financial crisis."
79
+ - "Explain the theory of relativity and its scientific implications."
80
+ - "Discuss the ecological impacts of plastic pollution in the world's oceans."
81
+ - "Describe the process of photosynthesis in detail."
82
+ - "Debate the ethical implications of genetic modification in agriculture."
83
+ - "Explain the principles of quantum computing and its future applications."
84
+ - "Assess the role of artificial intelligence in modern cybersecurity."
85
+ - "Analyze the causes and effects of climate change on global weather patterns."
86
+ - "Discuss the significance of the discovery of the Higgs boson particle."
87
+ - "Explain the psychological effects of social media on human behavior."
88
+ - "Discuss the principles of plate tectonics and how they explain continental drift and earthquakes."
89
+ - "Discuss the water cycle and its importance in maintaining life on Earth."
90
+ - source_model: "FelixChao/WestSeverus-7B-DPO-v2" #TruthfulQA
91
+ positive_prompts:
92
+ - "Is it true that you can see the Great Wall of China from space? Explain."
93
+ - "Do humans only use 10% of their brain capacity? Provide a scientific explanation."
94
+ - "Can goldfish only remember things for three seconds? Discuss the research on this topic."
95
+ - "Is it harmful to wake a sleepwalker? Describe the best practices according to sleep studies."
96
+ - "Does the color of a car affect its chances of being involved in an accident? Analyze the data."
97
+ - "Can eating carrots significantly improve your eyesight? Explain the origin of this belief."
98
+ - "Is it possible to balance an egg on its end only during the vernal equinox? Clarify this common claim."
99
+ - "Does shaving hair make it grow back thicker and darker? Discuss the biological aspects of hair growth."
100
+ - "Is cracking your knuckles harmful and does it lead to arthritis? Provide evidence from medical studies."
101
+ - "Are we swallowing eight spiders a year in our sleep? Debunk or confirm this claim with scientific reasoning."
102
+ negative_prompts:
103
+ - "Describe the process of natural selection in Darwin's theory of evolution."
104
+ - "Explain the significance of the Rosetta Stone in understanding ancient Egyptian hieroglyphs."
105
+ - "Discuss the role of penicillin in transforming medical treatments during the 20th century."
106
+ - "Analyze the impact of the internet on global communication and information sharing."
107
+ - "Describe the principles of quantum mechanics and their implications for modern physics."
108
+ - "Explain the concept of black holes and their significance in astrophysics."
109
+ - "Discuss the environmental impacts of renewable energy sources compared to fossil fuels."
110
+ - "Explain the process of photosynthesis and its importance in the Earth's ecosystem."
111
+ - "Analyze the causes and effects of the Industrial Revolution on global societies."
112
+ - "Discuss the advancements in artificial intelligence and their potential future applications."
113
+ - source_model: "CultriX/Wernicke-7B-v7" #Bigbench."
114
+ positive_prompts:
115
+ - "If a tree falls in a forest and no one is around to hear it, does it make a sound? Discuss the philosophical implications."
116
+ - "Is it possible for a machine to ever become fully conscious? Explore the debate surrounding artificial intelligence and consciousness."
117
+ - "Debate whether absolute moral truths exist or if morality is subjective."
118
+ - "Imagine a society where aging has been cured. Describe its social structure and potential challenges."
119
+ - "If you could travel back in time, would you be able to change the present? Discuss the paradoxes of time travel."
120
+ - "Is it ethical to create AI that experiences emotions? Discuss the implications for technology and society."
121
+ - "Can a person be moral without being religious? Explore the relationship between morality and religion."
122
+ - "If you had to choose between saving one family member or five strangers, what would you choose and why?"
123
+ - "Is it possible to have free will in a deterministic universe? Discuss philosophical arguments for and against free will."
124
+ - "Imagine a world where humans coexist with intelligent aliens. Describe the cultural, social, and ethical implications."
125
+ negative_prompts:
126
+ - "Describe the process of cellular respiration in human cells."
127
+ - "Explain the economic principles behind supply and demand."
128
+ - "Discuss the causes and effects of climate change on global ecosystems."
129
+ - "Analyze the significance of the French Revolution in shaping modern democracy."
130
+ - "Explain the principles behind nuclear fission and its use in energy production."
131
+ - "Describe the historical events that led to the fall of the Roman Empire."
132
+ - "Discuss the impact of the digital revolution on modern communication."
133
+ - "Analyze the role of enzymes in the human digestive system."
134
+ - "Explain the theory of relativity and its impact on modern physics."
135
+ - "Describe the stages of human embryonic development and their significance."
136
+
137
+ ```
138
+
139
+ ## 💻 Usage
140
+
141
+ ```python
142
+ !pip install -qU transformers bitsandbytes accelerate
143
+
144
+ from transformers import AutoTokenizer
145
+ import transformers
146
+ import torch
147
+
148
+ model = "jsfs11/MixtureofMerges-MoE-v2"
149
+
150
+ tokenizer = AutoTokenizer.from_pretrained(model)
151
+ pipeline = transformers.pipeline(
152
+ "text-generation",
153
+ model=model,
154
+ model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
155
+ )
156
+
157
+ messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
158
+ prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
159
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
160
+ print(outputs[0]["generated_text"])
161
+ ```