Views
No views yet
temp 0.8, top_k 40, top_p 0.95, min_p 0.05, repeat_penalty 1.1.| Model | Average | AGIEval | GPT4All | TruthfulQA | Bigbench |
|---|---|---|---|---|---|
| mlabonne/AlphaMonarch-7B 📄 | 62.74 | 45.37 | 77.01 | 78.39 | 50.2 |
| mlabonne/Beyonder-4x7B-v3 📄 | 61.91 | 45.85 | 76.67 | 74.98 | 50.12 |
| mlabonne/NeuralDaredevil-7B 📄 | 59.39 | 45.23 | 76.2 | 67.61 | 48.52 |
| SanjiWatsuki/Kunoichi-DPO-v2-7B 📄 | 58.29 | 44.79 | 75.05 | 65.68 | 47.65 |
| mlabonne/Beyonder-4x7B-v2 📄 | 57.13 | 45.29 | 75.95 | 60.86 | 46.4 |
| beowolx/CodeNinja-1.0-OpenChat-7B 📄 | 50.35 | 39.98 | 71.77 | 48.73 | 40.92 |
1base_model: mlabonne/AlphaMonarch-7B
2experts:
3 - source_model: mlabonne/AlphaMonarch-7B
4 positive_prompts:
5 - "chat"
6 - "assistant"
7 - "tell me"
8 - "explain"
9 - "I want"
10 - source_model: beowolx/CodeNinja-1.0-OpenChat-7B
11 positive_prompts:
12 - "code"
13 - "python"
14 - "javascript"
15 - "programming"
16 - "algorithm"
17 - source_model: SanjiWatsuki/Kunoichi-DPO-v2-7B
18 positive_prompts:
19 - "storywriting"
20 - "write"
21 - "scene"
22 - "story"
23 - "character"
24 - source_model: mlabonne/NeuralDaredevil-7B
25 positive_prompts:
26 - "reason"
27 - "math"
28 - "mathematics"
29 - "solve"
30 - "count"1!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "mlabonne/Beyonder-4x7B-v3"
8
9tokenizer = AutoTokenizer.from_pretrained(model)
10pipeline = transformers.pipeline(
11 "text-generation",
12 model=model,
13 model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
14)
15
16messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
17prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
18outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
19print(outputs[0]["generated_text"])A Mixture of Experts (MoE) is a neural network architecture that tackles complex tasks by dividing them into simpler subtasks, delegating each to specialized expert modules. These experts learn to independently handle specific problem aspects. The MoE structure combines their outputs, leveraging their expertise for improved overall performance. This approach promotes modularity, adaptability, and scalability, allowing for better generalization in various applications.