Views
No views yet

| Metric |MonarchCoder-Moe-2x7B||MonarchCoder-7B||AlphaMonarch|
|---------------------------------|---------------------|-----------------|------------|
|Avg. | 74.23 | 71.17 | 75.99 |
|HumanEval | 41.15 | 39.02 | 34.14 |
|HumanEval+ | 29.87 | 31.70 | 29.26 |
|MBPP | 40.60 | * | * |
|AI2 Reasoning Challenge (25-Shot)| 70.99 | 68.52 | 73.04 |
|HellaSwag (10-Shot) | 87.99 | 87.30 | 89.18 |
|MMLU (5-Shot) | 65.11 | 64.65 | 64.40 |
|TruthfulQA (0-shot) | 71.25 | 61.21 | 77.91 |
|Winogrande (5-shot) | 80.66 | 80.19 .| 84.69 |
|GSM8k (5-shot) . | 69.37 | 65.13 | 66.72 | 1base_model: paulml/OGNO-7B
2gate_mode: hidden
3dtype: bfloat16
4experts:
5 - source_model: mlabonne/AlphaMonarch-7B
6 positive_prompts:
7 - "Mathematics"
8 - "Logical Reasoning"
9 - "Intelligent Conversations"
10 - "Thoughtful Analysis"
11 - "Biology"
12 - "Medicine"
13 - "Problem-solving Dialogue"
14 - "Physics"
15 - "Emotional intelligence"
16
17 negative_prompts:
18 - "History"
19 - "Philosophy"
20 - "Linguistics"
21 - "Literature"
22 - "Art and Art History"
23 - "Music Theory and Composition"
24 - "Performing Arts (Theater, Dance)"
25
26 - source_model: Syed-Hasan-8503/Tess-Coder-7B-Mistral-v1.0
27 positive_prompts:
28 - "Coding"
29 - "Algorithm Design"
30 - "Problem Solving"
31 - "Software Development"
32 - "Computer"
33 - "Code Refactoring"
34 - "Web development"
35 - "Machine learning"
36 negative_prompts:
37 - "Education"
38 - "Law"
39 - "Theology and Religious Studies"
40 - "Communication Studies"
41 - "Business and Management"
42 - "Agricultural Sciences"
43 - "Nutrition and Food Science"
44 - "Sports Science"
451!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "abideen/MonarchCoder-MoE-2x7B"
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"])