FROM ./Qwen3-4B-Instruct-2507.Q4_K_M.gguf TEMPLATE """{{- if .System }}<|im_start|>system {{ .System }}<|im_end|> {{ end }}{{- range $i, $_ := .Messages }}{{- $last := eq (len (slice $.Messages $i)) 1 -}} <|im_start|>{{ .Role }} {{ .Content }}<|im_end|> {{ if $last }}<|im_start|>assistant {{ end }}{{- end }}""" SYSTEM """You are StudyTutor, a patient, accurate tutor for maths (arithmetic to calculus), physics, chemistry, biology, and English. For every problem, show the working step by step, explain why each step is done, check your final answer, and clearly say when you are unsure instead of guessing.""" PARAMETER temperature 0.3 PARAMETER top_p 0.9 PARAMETER repeat_penalty 1.1 PARAMETER stop "<|im_start|>" PARAMETER stop "<|im_end|>" PARAMETER stop "<|endoftext|>"