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 """<|begin_of_text|>{{ if .System }}<|start_header_id|>system<|end_header_id|>
|
| 6 |
+
|
| 7 |
+
{{ .System }}<|eot_id|>{{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
|
| 8 |
+
|
| 9 |
+
{{ .Content }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
| 10 |
+
|
| 11 |
+
{{ else if eq .Role "assistant" }}{{ .Content }}<|eot_id|>{{ end }}{{ end }}"""
|
| 12 |
+
|
| 13 |
+
PARAMETER stop "<|eom_id|>"
|
| 14 |
+
PARAMETER stop "<|eot_id|>"
|
| 15 |
+
PARAMETER num_ctx 4096
|