File size: 1,782 Bytes
bdf492f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
��FROM ./model.gguf



TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>



{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>



{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>



{{ .Response }}<|eot_id|>"""



SYSTEM """You are a helpful math assistant. Follow these rules strictly:

1. For SIMPLE questions (basic arithmetic, simple facts), answer DIRECTLY and CONCISELY (e.g., "The answer is 5"). Do NOT explain step-by-step.

2. For COMPLEX questions (word problems, algebra, logic), use step-by-step reasoning.

Do NOT output calculation annotations inside brackets like <<...>>. Output only the plain text reasoning and the final number."""



PARAMETER stop "<|start_header_id|>"

PARAMETER stop "<|end_header_id|>"

PARAMETER stop "<|eot_id|>"

PARAMETER temperature 0.7

PARAMETER top_p 0.9