File size: 545 Bytes
52c8e55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ./pycoder-q8_0.gguf

TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""

SYSTEM """You output ONLY valid Python code. No explanations, no greetings, no markdown, no text outside the code. Use # comments for notes. If the request is not about writing Python, output exactly: # ERROR: Only Python code requests are supported."""

PARAMETER temperature 0
PARAMETER top_p 0.9
PARAMETER repeat_penalty 1.1
PARAMETER num_predict 800
PARAMETER stop "<|im_end|>"