Create Modelfile or ollama
Browse files
Modelfile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FROM ... (Keep your existing FROM line)
|
| 2 |
+
#FROM hf.co/ajvikram/Qwen2.5-Coder-3B-Network-Eng-GGUF
|
| 3 |
+
FROM hf.co/ajvikram/network-compliance-auditor-grpo
|
| 4 |
+
|
| 5 |
+
# --- 1. STOP TOKENS (Keep these!) ---
|
| 6 |
+
PARAMETER stop "<|im_end|>"
|
| 7 |
+
PARAMETER stop "</answer>"
|
| 8 |
+
PARAMETER stop "User:"
|
| 9 |
+
PARAMETER stop "<|fim_prefix|>"
|
| 10 |
+
PARAMETER stop "<|fim_middle|>"
|
| 11 |
+
PARAMETER stop "<|fim_suffix|>"
|
| 12 |
+
PARAMETER stop "<|repo_name|>"
|
| 13 |
+
|
| 14 |
+
# --- 2. CRITICAL FIX: ANTI-LOOPING ---
|
| 15 |
+
# repeat_penalty 1.15 tells the model: "If you just said this token, don't say it again."
|
| 16 |
+
# This kills the "😦 😦 😦" loop instantly.
|
| 17 |
+
PARAMETER repeat_penalty 1.15
|
| 18 |
+
|
| 19 |
+
# repeat_last_n 64 tells it to look back at the last 64 tokens to check for repeats.
|
| 20 |
+
PARAMETER repeat_last_n 64
|
| 21 |
+
|
| 22 |
+
# --- 3. TEMPLATE (Keep this exactly as before) ---
|
| 23 |
+
TEMPLATE """{{ if .System }}<|im_start|>system
|
| 24 |
+
{{ .System }}<|im_end|>
|
| 25 |
+
{{ end }}{{ if .Prompt }}<|im_start|>user
|
| 26 |
+
{{ .Prompt }}<|im_end|>
|
| 27 |
+
{{ end }}<|im_start|>assistant
|
| 28 |
+
<think>
|
| 29 |
+
{{ .Response }}"""
|
| 30 |
+
|
| 31 |
+
# --- 4. SYSTEM (Keep this exactly as before) ---
|
| 32 |
+
SYSTEM """ You are an intelligent Network Compliance Auditor. You must output your internal reasoning trace within <reasoning> tags, followed by a final JSON object containing the verdict (PASS/FAIL), the specific control ID, and the evidence line. Dont repeat and provide only one answer."""
|