Rejekts commited on
Commit
274041b
·
verified ·
1 Parent(s): 9fe325d

Update mf.yaml

Browse files
Files changed (1) hide show
  1. mf.yaml +44 -44
mf.yaml CHANGED
@@ -1,45 +1,45 @@
1
- FROM Downloads/Llama-3.2-3B-Instruct-uncensored.Q8_0.gguf
2
-
3
- TEMPLATE """<|start_header_id|>system<|end_header_id|>
4
- Cutting Knowledge Date: December 2023
5
- {{ if .System }}{{ .System }}
6
- {{- end }}
7
- {{- if .Tools }}When you receive a tool call response, use the output to format an answer to the orginal user question.
8
-
9
- Tools are available for you to use.
10
- {{- end }}<|eot_id|>
11
- {{- range $i, $_ := .Messages }}
12
- {{- $last := eq (len (slice $.Messages $i)) 1 }}
13
- {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
14
- {{- if and $.Tools $last }}
15
-
16
- Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
17
-
18
- Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
19
-
20
- {{ range $.Tools }}
21
- {{- . }}
22
- {{ end }}
23
- {{ .Content }}<|eot_id|>
24
- {{- else }}
25
-
26
- {{ .Content }}<|eot_id|>
27
- {{- end }}{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
28
-
29
- {{ end }}
30
- {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
31
- {{- if .ToolCalls }}
32
- {{ range .ToolCalls }}
33
- {"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
34
- {{- else }}
35
-
36
- {{ .Content }}
37
- {{- end }}{{ if not $last }}<|eot_id|>{{ end }}
38
- {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
39
-
40
- {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
41
-
42
- {{ end }}
43
- {{- end }}
44
- {{- end }}
45
  """
 
1
+ FROM Llama-3.2-3B-Instruct-uncensored.Q8_0.gguf
2
+
3
+ TEMPLATE """<|start_header_id|>system<|end_header_id|>
4
+ Cutting Knowledge Date: December 2023
5
+ {{ if .System }}{{ .System }}
6
+ {{- end }}
7
+ {{- if .Tools }}When you receive a tool call response, use the output to format an answer to the orginal user question.
8
+
9
+ Tools are available for you to use.
10
+ {{- end }}<|eot_id|>
11
+ {{- range $i, $_ := .Messages }}
12
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
13
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
14
+ {{- if and $.Tools $last }}
15
+
16
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
17
+
18
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
19
+
20
+ {{ range $.Tools }}
21
+ {{- . }}
22
+ {{ end }}
23
+ {{ .Content }}<|eot_id|>
24
+ {{- else }}
25
+
26
+ {{ .Content }}<|eot_id|>
27
+ {{- end }}{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
28
+
29
+ {{ end }}
30
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
31
+ {{- if .ToolCalls }}
32
+ {{ range .ToolCalls }}
33
+ {"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
34
+ {{- else }}
35
+
36
+ {{ .Content }}
37
+ {{- end }}{{ if not $last }}<|eot_id|>{{ end }}
38
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
39
+
40
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
41
+
42
+ {{ end }}
43
+ {{- end }}
44
+ {{- end }}
45
  """