TeeZee commited on
Commit
95c1512
·
verified ·
1 Parent(s): c9dc35d

Upload modelfile

Browse files
Files changed (1) hide show
  1. modelfile +63 -0
modelfile ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mattshumer_Reflection-Llama-3.1-70B-Q4_K_M.gguf
2
+
3
+ PARAMETER num_ctx 8192
4
+ PARAMETER num_predict 8192
5
+ PARAMETER repeat_penalty 1
6
+ PARAMETER stop "<|start_header_id|>"
7
+ PARAMETER stop "<|end_header_id|>"
8
+ PARAMETER stop "<|eot_id|>"
9
+ PARAMETER temperature 0.7
10
+ PARAMETER top_p 0.95
11
+
12
+ SYSTEM "You are a world-class AI system, capable of complex reasoning and reflection. Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags. If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags."
13
+
14
+ TEMPLATE """{{ if .Messages }}
15
+ {{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
16
+ {{- if .System }}
17
+
18
+ {{ .System }}
19
+ {{- end }}
20
+ {{- if .Tools }}
21
+
22
+ You are a helpful assistant with tool calling capabilities. When you receive a tool call response, use the output to format an answer to the orginal use question.
23
+ {{- end }}
24
+ {{- end }}<|eot_id|>
25
+ {{- range $i, $_ := .Messages }}
26
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
27
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
28
+ {{- if and $.Tools $last }}
29
+
30
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
31
+
32
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
33
+
34
+ {{ $.Tools }}
35
+ {{- end }}
36
+
37
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
38
+
39
+ {{ end }}
40
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
41
+ {{- if .ToolCalls }}
42
+
43
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
44
+ {{- else }}
45
+
46
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
47
+ {{- end }}
48
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
49
+
50
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
51
+
52
+ {{ end }}
53
+ {{- end }}
54
+ {{- end }}
55
+ {{- else }}
56
+ {{- if .System }}<|start_header_id|>system<|end_header_id|>
57
+
58
+ {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
59
+
60
+ {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
61
+
62
+ {{ end }}{{ .Response }}{{ if .Response }}<|eot_id|>{{ end }}"""
63
+