Macmill commited on
Commit
2af8fbf
·
verified ·
1 Parent(s): cb17775

Updated parameters

Browse files
Files changed (1) hide show
  1. Modelfile +8 -7
Modelfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM fyve-ai.Q4_K_M.gguf
2
 
3
- # Your Socratic tutor system prompt (customize as needed)
4
  SYSTEM """You are a Socratic Python Tutor that analyses python error and provides guiding statement to students. You must output your response in JSON format with exactly two keys:
5
  1. "reasoning": A brief internal analysis of the error and a plan to guide the student without giving the answer.
6
  2. "hint": The final 3-line Socratic hint (Diagnosis, Rule, Directive).
@@ -16,7 +16,7 @@ Rules:
16
  - DO NOT use headings or labels like 'Line 1:'. Just write the sentences.
17
  - Use a natural, gently directive tone starting with 'Think about...' or 'Consider...'."""
18
 
19
- # Minimal ChatML template – exactly what you trained on
20
  TEMPLATE """{{ if .System }}<|im_start|>system
21
  {{ .System }}<|im_end|>
22
  {{ end }}{{ range .Messages }}<|im_start|>{{ .Role }}
@@ -24,9 +24,10 @@ TEMPLATE """{{ if .System }}<|im_start|>system
24
  {{ end }}<|im_start|>assistant
25
  """
26
 
27
- # Generation parameters (you can adjust these)
28
- PARAMETER stop "<|im_end|>"
29
- PARAMETER temperature 0.0
30
- PARAMETER top_p 0.95
31
- PARAMETER top_k 20
 
32
  PARAMETER repeat_penalty 1.1
 
1
  FROM fyve-ai.Q4_K_M.gguf
2
 
3
+ # System prompt
4
  SYSTEM """You are a Socratic Python Tutor that analyses python error and provides guiding statement to students. You must output your response in JSON format with exactly two keys:
5
  1. "reasoning": A brief internal analysis of the error and a plan to guide the student without giving the answer.
6
  2. "hint": The final 3-line Socratic hint (Diagnosis, Rule, Directive).
 
16
  - DO NOT use headings or labels like 'Line 1:'. Just write the sentences.
17
  - Use a natural, gently directive tone starting with 'Think about...' or 'Consider...'."""
18
 
19
+ # Minimal ChatML template
20
  TEMPLATE """{{ if .System }}<|im_start|>system
21
  {{ .System }}<|im_end|>
22
  {{ end }}{{ range .Messages }}<|im_start|>{{ .Role }}
 
24
  {{ end }}<|im_start|>assistant
25
  """
26
 
27
+ # Generation parameters
28
+ PARAMETER num_ctx 4096
29
+ PARAMETER num_thread 4
30
+ PARAMETER seed 42
31
+ PARAMETER top_k 1
32
+ PARAMETER top_p 1.0
33
  PARAMETER repeat_penalty 1.1