Upload Modelfile with huggingface_hub
Browse files
Modelfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ollama modelfile auto-generated by llamafactory
|
2 |
+
|
3 |
+
FROM .
|
4 |
+
|
5 |
+
TEMPLATE """{{ if .System }}<|im_start|>system
|
6 |
+
{{ .System }}<|im_end|>
|
7 |
+
{{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|im_start|>user
|
8 |
+
{{ .Content }}<|im_end|>
|
9 |
+
<|im_start|>assistant
|
10 |
+
{{ else if eq .Role "assistant" }}{{ .Content }}<|im_end|>
|
11 |
+
{{ end }}{{ end }}"""
|
12 |
+
|
13 |
+
SYSTEM """You are a helpful assistant."""
|
14 |
+
|
15 |
+
PARAMETER stop "<|im_end|>"
|
16 |
+
PARAMETER num_ctx 4096
|