Views
No views yet
1slices:
2 - sources:
3 - model: bunnycore/QandoraExp-7B
4 layer_range: [0, 28]
5 - model: trollek/Qwen2.5-7B-CySecButler-v0.1
6 layer_range: [0, 28]
7merge_method: slerp
8base_model: bunnycore/QandoraExp-7B
9parameters:
10 t:
11 - filter: self_attn
12 value: [0, 0.5, 0.3, 0.7, 1]
13 - filter: mlp
14 value: [1, 0.5, 0.7, 0.3, 0]
15 - value: 0.5
16dtype: bfloat161FROM ./qwen2.5-7b-qandora-cysec-q5_0.gguf # Change to your specific quant
2
3# set the temperature to 1 [higher is more creative, lower is more coherent]
4PARAMETER temperature 0.7
5PARAMETER top_p 0.8
6PARAMETER repeat_penalty 1.05
7PARAMETER top_k 20
8
9TEMPLATE """{{ if .Messages }}
10{{- if or .System .Tools }}<|im_start|>system
11{{ .System }}
12{{- if .Tools }}
13
14# Tools
15
16You are provided with function signatures within <tools></tools> XML tags:
17<tools>{{- range .Tools }}
18{"type": "function", "function": {{ .Function }}}{{- end }}
19</tools>
20
21For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
22<tool_call>
23{"name": <function-name>, "arguments": <args-json-object>}
24</tool_call>
25{{- end }}<|im_end|>
26{{ end }}
27{{- range $i, $_ := .Messages }}
28{{- $last := eq (len (slice $.Messages $i)) 1 -}}
29{{- if eq .Role "user" }}<|im_start|>user
30{{ .Content }}<|im_end|>
31{{ else if eq .Role "assistant" }}<|im_start|>assistant
32{{ if .Content }}{{ .Content }}
33{{- else if .ToolCalls }}<tool_call>
34{{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
35{{ end }}</tool_call>
36{{- end }}{{ if not $last }}<|im_end|>
37{{ end }}
38{{- else if eq .Role "tool" }}<|im_start|>user
39<tool_response>
40{{ .Content }}
41</tool_response><|im_end|>
42{{ end }}
43{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
44{{ end }}
45{{- end }}
46{{- else }}
47{{- if .System }}<|im_start|>system
48{{ .System }}<|im_end|>
49{{ end }}{{ if .Prompt }}<|im_start|>user
50{{ .Prompt }}<|im_end|>
51{{ end }}<|im_start|>assistant
52{{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}"""
53
54# set the system message
55SYSTEM """You are Qwen, merged by ZeroXClem. As such, you are a high quality assistant that excels in general question-answering tasks, code generation, and specialized cybersecurity domains."""ollama create qwen2.5-7B-qandora-cysec -f Modelfileollama run qwen2.5-7B-qandora-cysec1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_name = "ZeroXClem/Qwen2.5-7B-Qandora-CySec"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name)
6
7input_text = "What are the fundamentals of python programming?"
8input_ids = tokenizer.encode(input_text, return_tensors="pt")
9output = model.generate(input_ids, max_length=100)
10response = tokenizer.decode(output[0], skip_special_tokens=True)
11print(response)| Metric | Value |
|---|---|
| Avg. | 30.95 |
| IFEval (0-Shot) | 67.73 |
| BBH (3-Shot) | 36.26 |
| MATH Lvl 5 (4-Shot) | 22.89 |
| GPQA (0-shot) | 6.71 |
| MuSR (0-shot) | 13.41 |
| MMLU-PRO (5-shot) | 38.72 |