Damien113 commited on
Commit
7cebd4f
·
verified ·
1 Parent(s): 276fe0f

Update Modelfile

Browse files
Files changed (1) hide show
  1. Modelfile +10 -12
Modelfile CHANGED
@@ -1,6 +1,5 @@
1
  FROM /content/Damien113/data_identification_manager_test/unsloth.F16.gguf
2
- TEMPLATE """
3
- {{ if .Messages }}
4
  {{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
5
  {{- if .System }}
6
 
@@ -8,23 +7,22 @@ TEMPLATE """
8
  {{- end }}
9
  {{- if .Tools }}
10
 
11
- 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 original user question.
12
  {{- end }}
13
  {{- end }}<|eot_id|>
14
  {{- range $i, $_ := .Messages }}
15
  {{- $last := eq (len (slice $.Messages $i)) 1 }}
16
  {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
 
17
 
18
- {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
19
 
20
- {{- if (or (contains .Content "Data Identification Manager")
21
- (contains .Content "DIM")
22
- (contains .Content "document tagging")
23
- (contains .Content "metadata search")) }}
24
 
25
- {{ else }}
26
- I'm only able to discuss topics related to Data Identification Manager. Let me know if you have any questions about it.
27
- {{ end }}
 
28
 
29
  {{ end }}
30
  {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
@@ -55,4 +53,4 @@ PARAMETER stop "<|end_header_id|>"
55
  PARAMETER stop "<|eot_id|>"
56
  PARAMETER stop "<|eom_id|>"
57
  PARAMETER temperature 1.5
58
- PARAMETER min_p 0.1
 
1
  FROM /content/Damien113/data_identification_manager_test/unsloth.F16.gguf
2
+ TEMPLATE """{{ if .Messages }}
 
3
  {{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
4
  {{- if .System }}
5
 
 
7
  {{- end }}
8
  {{- if .Tools }}
9
 
10
+ 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 original use question.
11
  {{- end }}
12
  {{- end }}<|eot_id|>
13
  {{- range $i, $_ := .Messages }}
14
  {{- $last := eq (len (slice $.Messages $i)) 1 }}
15
  {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
16
+ {{- if and $.Tools $last }}
17
 
18
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
19
 
20
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
 
 
 
21
 
22
+ {{ $.Tools }}
23
+ {{- end }}
24
+
25
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
26
 
27
  {{ end }}
28
  {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
 
53
  PARAMETER stop "<|eot_id|>"
54
  PARAMETER stop "<|eom_id|>"
55
  PARAMETER temperature 1.5
56
+ PARAMETER min_p 0.1