Views
No views yet
Chocolatine-2-14B-Instruct-v2.0.31ollama create chocolatine-2 -f Modelfile_chocolatine-2-q8
2ollama run chocolatine-21FROM ./chocolatine-2-14b-instruct-v2.0.3-q8_0.gguf
2TEMPLATE """
3{{- if .Suffix }}<|fim_prefix|>{{ .Prompt }}<|fim_suffix|>{{ .Suffix }}<|fim_middle|>
4{{- else if .Messages }}
5{{- if or .System .Tools }}<|im_start|>system
6{{- if .System }}
7{{ .System }}
8{{- end }}
9{{- if .Tools }}
10
11# Tools
12
13You may call one or more functions to assist with the user query.
14
15You are provided with function signatures within <tools></tools> XML tags:
16<tools>
17{{- range .Tools }}
18{"type": "function", "function": {{ .Function }}}
19{{- end }}
20</tools>
21
22For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
23<tool_call>
24{"name": <function-name>, "arguments": <args-json-object>}
25</tool_call>
26{{- end }}<|im_end|>
27{{ end }}
28{{- range $i, $_ := .Messages }}
29{{- $last := eq (len (slice $.Messages $i)) 1 -}}
30{{- if eq .Role "user" }}<|im_start|>user
31{{ .Content }}<|im_end|>
32{{ else if eq .Role "assistant" }}<|im_start|>assistant
33{{ if .Content }}{{ .Content }}
34{{- else if .ToolCalls }}<tool_call>
35{{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
36{{ end }}</tool_call>
37{{- end }}{{ if not $last }}<|im_end|>
38{{ end }}
39{{- else if eq .Role "tool" }}<|im_start|>user
40<tool_response>
41{{ .Content }}
42</tool_response><|im_end|>
43{{ end }}
44{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
45{{ end }}
46{{- end }}
47{{- else }}
48{{- if .System }}<|im_start|>system
49{{ .System }}<|im_end|>
50{{ end }}{{ if .Prompt }}<|im_start|>user
51{{ .Prompt }}<|im_end|>
52{{ end }}<|im_start|>assistant
53{{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}
54
55"""
56SYSTEM """Tu es Chocolatine, un assistant IA serviable et bienveillant. Tu fais des réponses concises et précises."""