ryefoxlime TheDunkinNinja commited on
Commit
6237db5
1 Parent(s): cc2df67

Upload ModelFile (#2)

Browse files

- Upload ModelFile (d5e3b27ec6101afe4048bbfc6184be523fea86dc)


Co-authored-by: Tharrun S <[email protected]>

Files changed (1) hide show
  1. ModelFile +16 -0
ModelFile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM C:\VS code Envi\Ollama-Gemma\gemma2.gguf
3
+
4
+ TEMPLATE """{{- range $i, $_ := .Messages }}
5
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
6
+ {{- if or (eq .Role "user") (eq .Role "system") }}<start_of_turn>user
7
+ {{ .Content }}<end_of_turn>
8
+ {{ if $last }}<start_of_turn>model
9
+ {{ end }}
10
+ {{- else if eq .Role "assistant" }}<start_of_turn>model
11
+ {{ .Content }}{{ if not $last }}<end_of_turn>
12
+ {{ end }}
13
+ {{- end }}
14
+ {{- end }}"""
15
+ PARAMETER stop <start_of_turn>
16
+ PARAMETER stop <end_of_turn>