summaryrefslogtreecommitdiff
path: root/modelfiles/mistral-nemo.modelfile
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 22:39:42 +0100
committeraura <nw@moneybot.cc>2026-02-17 22:39:42 +0100
commit636b0323075225c584b62719ed51e75521bb7ffb (patch)
tree61b02271b6d0695a4beffc23fb6eb062a7da22c3 /modelfiles/mistral-nemo.modelfile
push source
Diffstat (limited to 'modelfiles/mistral-nemo.modelfile')
-rw-r--r--modelfiles/mistral-nemo.modelfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/modelfiles/mistral-nemo.modelfile b/modelfiles/mistral-nemo.modelfile
new file mode 100644
index 0000000..f277183
--- /dev/null
+++ b/modelfiles/mistral-nemo.modelfile
@@ -0,0 +1,21 @@
+FROM mistral-nemo:12b-instruct-2407-q8_0
+
+TEMPLATE """{{- range $i, $_ := .Messages }}
+{{- if eq .Role "system" }}
+[INST]{{ .Content }}
+[/INST]
+{{- else if eq .Role "user" }}
+[INST]{{ .Content }}
+[/INST]
+{{- else if eq .Role "assistant" }}
+{{- if .Content }} {{ .Content }} {{ if not (eq (len (slice $.Messages $i)) 1) }}</s>{{ end }}{{ end }}
+{{- else if eq .Role "tool" }}[TOOL_RESULTS] {"content": {{ .Content }}} [/TOOL_RESULTS]
+{{- end }}
+{{- end }}"""
+PARAMETER stop [INST]
+PARAMETER stop [/INST]
+
+PARAMETER mirostat 2
+PARAMETER mirostat_tau 1.5
+PARAMETER num_ctx 12000
+PARAMETER temperature 0.1