mayurmadnani commited on
Commit
b747a9d
·
verified ·
1 Parent(s): 34f6c23

Trained with Unsloth - Ollama Modelfile

Browse files
Files changed (1) hide show
  1. Modelfile +22 -0
Modelfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM gemma-3-270m-it.Q8_0.gguf
3
+ TEMPLATE """{{- $systemPromptAdded := false }}
4
+ {{- range $i, $_ := .Messages }}
5
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
6
+ {{- if eq .Role "user" }}<start_of_turn>user
7
+ {{- if (and (not $systemPromptAdded) $.System) }}
8
+ {{- $systemPromptAdded = true }}
9
+ {{ $.System }}
10
+ {{ end }}
11
+ {{ .Content }}<end_of_turn>
12
+ {{ if $last }}<start_of_turn>model
13
+ {{ end }}
14
+ {{- else if eq .Role "assistant" }}<start_of_turn>model
15
+ {{ .Content }}{{ if not $last }}<end_of_turn>
16
+ {{ end }}
17
+ {{- end }}
18
+ {{- end }}
19
+ """
20
+ PARAMETER stop "<end_of_turn>"
21
+ PARAMETER top_k 64
22
+ PARAMETER top_p 0.95