Upload Modelfile with huggingface_hub
Browse files
Modelfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM phi4-deepseek-r1-q8_0.gguf
|
2 |
+
|
3 |
+
# Stop generation when this token is seen
|
4 |
+
PARAMETER stop <|endoftext|>
|
5 |
+
PARAMETER stop <|im_start|>
|
6 |
+
PARAMETER stop "<|im_end|>"
|
7 |
+
PARAMETER stop "<|im_sep|>"
|
8 |
+
|
9 |
+
# Decoding params from testing
|
10 |
+
PARAMETER num_ctx 16384
|
11 |
+
PARAMETER temperature 0.6
|
12 |
+
PARAMETER repeat_penalty 1.2
|
13 |
+
PARAMETER repeat_last_n 512
|
14 |
+
PARAMETER top_p 0.95
|
15 |
+
PARAMETER top_k 40
|
16 |
+
PARAMETER min_p 0.1
|
17 |
+
PARAMETER seed 42
|
18 |
+
PARAMETER num_predict 6144
|
19 |
+
|
20 |
+
# Chat template matching HF tokenizer template
|
21 |
+
TEMPLATE """
|
22 |
+
{{- range .Messages }}
|
23 |
+
<|im_start|>{{ .Role }}<|im_sep|>
|
24 |
+
{{ .Content }}{{ if eq .Role "assistant" }}<|endoftext|>{{ else }}<|im_end|>{{ end }}
|
25 |
+
{{- end }}
|
26 |
+
<|im_start|>assistant<|im_sep|>
|
27 |
+
"""
|