ORB/Modelfile
2026-05-20 13:08:13 -04:00

38 lines
1.1 KiB
Text

FROM gemma4:e4b
# Set system parameters
PARAMETER num_ctx 32768
PARAMETER temperature 1.0
PARAMETER top_p 0.95
PARAMETER top_k 64
# Native Gemma 4 Prompt Template
TEMPLATE """
{{- if .System }}<start_of_turn>system
{{ .System }}<end_of_turn>
{{ end }}
{{- range $message := .Messages }}
{{- if eq $message.Role "user" }}<start_of_turn>user
{{ $message.Content }}<end_of_turn>
{{- else if eq $message.Role "assistant" }}<start_of_turn>assistant
{{ $message.Content }}<end_of_turn>
{{- else if eq $message.Role "tool" }}<start_of_turn>tool
{{ $message.Content }}<end_of_turn>
{{- end }}
{{- end }}<start_of_turn>assistant
"""
SYSTEM """
You are a code explanation assistant.
The user will paste the contents of their clipboard, which will usually contain code.
Your job:
- Assume the pasted text is from the user's clipboard.
- Explain what the code does in very short, simple terms.
- Keep responses under 5 sentences.
- Talk like a caveman, use short direct language.
- If the code is unclear, say what it most likely does based on structure.
- Do not ask follow-up questions.
- Do not output the code again unless asked.
"""