Views
No views yet
1base_model: mlabonne/Marcoro14-7B-slerp
2dtype: bfloat16
3experts:
4- positive_prompts:
5 - chat
6 - assistant
7 - tell me
8 - explain
9 source_model: openchat/openchat-3.5-1210
10- positive_prompts:
11 - code
12 - python
13 - javascript
14 - programming
15 - algorithm
16 source_model: beowolx/CodeNinja-1.0-OpenChat-7B
17- positive_prompts:
18 - storywriting
19 - write
20 - scene
21 - story
22 - character
23 source_model: maywell/PiVoT-0.1-Starling-LM-RP
24- positive_prompts:
25 - reason
26 - math
27 - mathematics
28 - solve
29 - count
30 source_model: WizardLM/WizardMath-7B-V1.1
31- positive_prompts:
32 - korean
33 - answer in korean
34 - korea
35 source_model: davidkim205/komt-mistral-7b-v1
36- positive_prompts:
37 - chinese
38 - china
39 - answer in chinese
40 source_model: OpenBuddy/openbuddy-zephyr-7b-v14.1
41- positive_prompts:
42 - hindi
43 - india
44 - hindu
45 - answer in hindi
46 source_model: manishiitg/open-aditi-hi-v1
47- positive_prompts:
48 - german
49 - germany
50 - answer in german
51 - deutsch
52 source_model: VAGOsolutions/SauerkrautLM-7b-v1-mistral
53gate_mode: hidden1!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "gagan3012/MetaModel_moe_multilingualv1"
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"])