ColdBrew-Oxford is a Mixture of Experts (MoE) made with the following models using
LazyMergekit:
1base_model: bunnycore/LLama-3.1-Hyper-Stock
2experts_per_token: 2
3gate_mode: hidden
4dtype: bfloat16
5experts:
6 - source_model: SvalTek/L3-ColdBrew-Astrid
7 positive_prompts:
8 - "ColdBrew --"
9 - "Write a story about a lonely robot exploring an abandoned space station."
10 - "Describe the feeling of standing at the edge of a massive waterfall."
11 - "Roleplay as a tavern keeper sharing tales with an adventurer."
12 - "Imagine a bustling marketplace in a desert city and narrate the sights and sounds."
13 - "[Genres: Science Fiction]
14[Tags: humor, old school, sci fi]"
15 - "[Mode: Interactive Storyteller]"
16 - "[Mode: DM]"
17 negative_prompts:
18 - "Think step by step"
19
20 - source_model: FPHam/L3-8B-Everything-COT
21 positive_prompts:
22 - "[OOC:"
23 - "What are <thinking> and <reflection> blocks used for?"
24 - "Reflect on why humans lie to each other."
25 - "What are the most important aspects of good technical documentation?"
26 - "Analyzeand explain the logic behind a recursive algorithm for sorting data."
27 - "Think step by step with a logical reasoning and intellectual sense before you provide any response."
28 negative_prompts:
29 - "Alex is on a spaceship, standing before a mysterious control panel."
1!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "SvalTek/ColdBrew-Oxford"
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"])