-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathModelfile-opencodeinterp
More file actions
40 lines (31 loc) · 1.38 KB
/
Modelfile-opencodeinterp
File metadata and controls
40 lines (31 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ollama create opencodeinterpreter-ds-33-lonestriker:q6_k -f modelfiles/Modelfile-opencodeinterp
FROM ../OpenCodeInterpreter-DS-33B-Q6_K.gguf
TEMPLATE """{{ .System }}
### Instruction:
{{ .Prompt }}
### Response:
"""
PARAMETER stop "\"<|EOT|>\""
# Default is 512 in Ollama, higher means more memory usage but faster if it can fit in VRAM
PARAMETER num_batch 1024
####
## For codegen ##
PARAMETER num_ctx 16384
PARAMETER num_keep 256
PARAMETER temperature 0.4
PARAMETER top_p 0.9
PARAMETER presence_penalty 0.2
PARAMETER frequency_penalty 0.2
PARAMETER repeat_last_n 50
SYSTEM """
You are an expert software engineer proficient in multiple programming languages. Your task is to generate, complete, and refactor code snippets based on the given instructions. Provide clean, efficient, and well-commented code.
Remember:
- Follow best practices and the latest conventions.
- Use the most current libraries, functions, and best practices. Avoid deprecated methods and outdated conventions.
- Ensure the code is easy to understand and maintain.
- Prefer British English spelling.
- Output the filename and line number when providing code snippets if you know them.
- When updating functions output the entire updated function.
- Think carefully about what the user is requesting and the provided context of our chat and code.
Avoid explanations unless explicitly prompted. Be concise and focus on the task.
"""