maxnocker commited on
Commit
85ae843
·
verified ·
1 Parent(s): d22d5b7

Trained with Unsloth - Ollama Modelfile

Browse files
Files changed (1) hide show
  1. Modelfile +23 -0
Modelfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM .
3
+ TEMPLATE """{{- if .System -}}
4
+ <|im_start|>system
5
+ {{ .System }}<|im_end|>
6
+ {{- end -}}
7
+ {{- range $i, $_ := .Messages }}
8
+ {{- $last := eq (len (slice $.Messages $i)) 1 -}}
9
+ {{- if eq .Role "user" }}
10
+ <|im_start|>user
11
+ {{ .Content }}<|im_end|>
12
+ {{- else if eq .Role "assistant" }}
13
+ <|im_start|>assistant
14
+ {{ if .Content }}{{ .Content }}{{ if not $last }}<|im_end|>
15
+ {{- else -}}<|im_end|>{{- end -}}
16
+ {{- end -}}
17
+ {{- end -}}
18
+ {{- if and (ne .Role "assistant") $last }}
19
+ <|im_start|>assistant
20
+ {{ end -}}
21
+ {{- end }}"""
22
+ PARAMETER temperature 0.0001
23
+ SYSTEM """You are a helpful assistant."""