Views
No views yet

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: FPHam/Karen_TheEditor_V2_STRICT_Mistral_7B
11 positive_prompts:
12 - "edit"
13 - "rewrite"
14 - "evaluate"
15 - "spelling"
16 - "grammer"
17 - source_model: SanjiWatsuki/Kunoichi-DPO-v2-7B
18 positive_prompts:
19 - "storywriting"
20 - "write"
21 - "scene"
22 - "prose"
23 - "character"
24 - source_model: OmnicromsBrain/NeuralStar-7b-Lazy
25 positive_prompts:
26 - "codex"
27 - "plot"
28 - "outline"
29 - "scenebeat"
30 - "count"1!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "OmnicromsBrain/NeuralStar_AlphaWriter_4x7b"
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"])| Metric | Value |
|---|---|
| Avg. | 73.31 |
| AI2 Reasoning Challenge (25-Shot) | 70.22 |
| HellaSwag (10-Shot) | 88.31 |
| MMLU (5-Shot) | 64.60 |
| TruthfulQA (0-shot) | 71.70 |
| Winogrande (5-shot) | 82.00 |
| GSM8k (5-shot) | 63.00 |