1merge_method: linear # use linear so we can include multiple models, albeit at a zero weight2parameters:3weight:1.0# weight everything as 1 unless specified otherwise - linear with one model weighted at 1 is a no-op like passthrough4slices:5-sources:6-model: openchat/openchat-3.5-01067layer_range:[0,1]8-model: teknium/OpenHermes-2.5-Mistral-7B
9layer_range:[0,1]10parameters:11weight:012-sources:13-model: bardsai/jaskier-7b-dpo-v6.1
14layer_range:[1,10]15-sources:16-model: senseable/WestLake-7B-v2
17layer_range:[10,20]18-sources:19-model: NousResearch/Nous-Hermes-2-Mistral-7B-DPO
20layer_range:[20,30]21-sources:22-model: paulml/OGNO-7B
23layer_range:[15,25]24-sources:25-model: paulml/DPOB-INMTOB-7B
26layer_range:[22,32]27-sources:28-model: mlabonne/AlphaMonarch-7B
29layer_range:[5,15]30-sources:31-model: openchat/openchat-3.5-010632layer_range:[31,32]33-model: teknium/OpenHermes-2.5-Mistral-7B
34layer_range:[31,32]35parameters:36weight:037dtype: float16
38tokenizer_source: model:openchat/openchat-3.5-0106
An example
User: Sally (a girl) has 3 brothers. Each brother has 2 sisters. How many sisters does Sally have?
Think step by step and the result MUST BE A NUMBER
djinn:
In this family structure, we know there are 4 aka '1 + 3-brothers' (1 being initially for Sally) existing individuals who are
also the siblings of the 3-brother-group. As each of the 3-brothers has 2-sisters each, that sums up to 6 total sister- roles. Since
we already accounted for one of the sisters (assuming to be the oldest or in alphabetical order, as names were not given) to be part
of the 3-brother group, we subtract one from the 6-sisters total. So, considering the provided information, Sally would have 6 - 1 = 5
remaining younger or alphabetically-wise- placed, biological-sisters. However, note that this problem statement might not perfectly align
with real-life complexities, such as same-sex twins, adoption, etc., but within the given context, the solution is 5.
Remember, in more intricate or unclear family tree scenarios, it'd be best to directly ask for clarifications or consider additional data
points. In short, with the given constraints, Sally has 5 known, direct, biological, and likely-in-age-order, younger/alphabetically-placed,
sister-siblings.(To reiterate the core result in a concise manner: 5).
(Please excuse the verbosity, aiming for thoroughness and clarity.)
This response maintains the initial request's numerical focus while providing a detailed explanation to ensure understanding.
💻 Usage
python
1!pip install -qU transformers accelerate
23from transformers import AutoTokenizer
4import transformers
5import torch
67model ="mayacinka/djinn"8messages =[{"role":"user","content":"What is a large language model?"}]910tokenizer = AutoTokenizer.from_pretrained(model)11prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)12pipeline = transformers.pipeline(13"text-generation",14 model=model,15 torch_dtype=torch.float16,16 device_map="auto",17)1819outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)20print(outputs[0]["generated_text"])