ValueFX9507 commited on
Commit
ad94171
·
verified ·
1 Parent(s): 428852b

Upload ollama导入配置参考.mf

Browse files
Files changed (1) hide show
  1. ollama导入配置参考.mf +14 -0
ollama导入配置参考.mf ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM D:/llamacpp/llama.cpp/models/Tifa-Deepsex-14b-CoT.gguf
2
+ TEMPLATE """
3
+ {{- if .System }}{{ .System }}{{ end }}
4
+ {{- range $i, $_ := .Messages }}
5
+ {{- $last := eq (len (slice $.Messages $i)) 1}}
6
+ {{- if eq .Role "user" }}<|User|>{{ .Content }}
7
+ {{- else if eq .Role "assistant" }}<|Assistant|>{{ .Content }}{{- if not $last }}<|end▁of▁sentence|>{{- end }}
8
+ {{- end }}
9
+ {{- if and $last (ne .Role "assistant") }}<|Assistant|>{{- end }}
10
+ {{- end }}"""
11
+ PARAMETER stop "<|begin▁of▁sentence|>"
12
+ PARAMETER stop "<|end▁of▁sentence|>"
13
+ PARAMETER stop "<|User|>"
14
+ PARAMETER stop "<|Assistant|>"