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