rkevan commited on
Commit
fe55686
·
verified ·
1 Parent(s): b60e902

Upload Modelfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Modelfile +33 -0
Modelfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM c:/Work/AI Experiments/projects/apoc6-mud-ai/models/mud-judgment-lora/manual-gguf/mud-judgment-q4km.gguf
2
+ TEMPLATE """{{ if .Messages }}
3
+ {{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
4
+ {{- if .System }}
5
+
6
+ {{ .System }}
7
+ {{- end }}
8
+ {{- end }}<|eot_id|>
9
+ {{- range $i, $_ := .Messages }}
10
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
11
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
12
+
13
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
14
+
15
+ {{ end }}
16
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
17
+
18
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
19
+ {{- end }}
20
+ {{- end }}
21
+ {{- else }}
22
+ {{- if .System }}<|start_header_id|>system<|end_header_id|>
23
+
24
+ {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
25
+
26
+ {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
27
+
28
+ {{ end }}{{ .Response }}{{ if .Response }}<|eot_id|>{{ end }}"""
29
+ PARAMETER stop "<|start_header_id|>"
30
+ PARAMETER stop "<|end_header_id|>"
31
+ PARAMETER stop "<|eot_id|>"
32
+ PARAMETER temperature 0.3
33
+ PARAMETER top_p 0.9