Working Merge in my Profile
Collection
29 items • Updated • 3
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("djuna/G2-GSHT")
model = AutoModelForCausalLM.from_pretrained("djuna/G2-GSHT")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))This is a merge of pre-trained language models created using mergekit.
This model was merged using the SLERP merge method.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
models:
- model: Nekuromento/Hematoma-Gemma-Model-Stock-9B
- model: TheDrummer/Gemmasutra-9B-v1
merge_method: slerp
base_model: TheDrummer/Gemmasutra-9B-v1
parameters:
t:
- filter: self_attn
value: [0.3, 0.4, 0.3, 0.5, 0.6]
- filter: mlp
value: [0.6, 0.5, 0.6, 0.5, 0.5, 0.4, 0.5]
- value: [0.6, 0.6, 0.4, 0.6, 0.7, 0.4, 0.4]
dtype: bfloat16
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 21.95 |
| IFEval (0-Shot) | 56.30 |
| BBH (3-Shot) | 30.99 |
| MATH Lvl 5 (4-Shot) | 3.17 |
| GPQA (0-shot) | 10.07 |
| MuSR (0-shot) | 8.17 |
| MMLU-PRO (5-shot) | 23.00 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="djuna/G2-GSHT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)