27 lines
1.1 KiB
Modula-2
27 lines
1.1 KiB
Modula-2
|
|
# Template modfile (template for creating new .mod files)
|
||
|
|
# Supported fields and notes:
|
||
|
|
# NAME <string> - human friendly name for the modfile
|
||
|
|
# FROM <model> - model identifier for Ollama (e.g., gemma3:12b)
|
||
|
|
# PARAMETER <key> <value> - Any top-level field to include in the Ollama payload.
|
||
|
|
# Common keys: temperature (float), max_tokens (int), top_p (float), freq_penalty (float), presence_penalty (float)
|
||
|
|
# INCLUDE <path> - path to another .mod or .json to merge in (relative to this file)
|
||
|
|
# SYSTEM """...""" - system prompt (the persona voice + instructions)
|
||
|
|
# TEMPLATE """...""" - custom rendering template. Placeholders:
|
||
|
|
# {{ .System }} - the system prompt text
|
||
|
|
# {{ .Prompt }} - the assembled user prompt body
|
||
|
|
# {{ .User }} - user-specific instruction block
|
||
|
|
# Example template:
|
||
|
|
NAME TemplatePersona
|
||
|
|
FROM gemma3:12b
|
||
|
|
PARAMETER temperature 0.7
|
||
|
|
PARAMETER max_tokens 800
|
||
|
|
INCLUDE common_defaults.mod
|
||
|
|
SYSTEM """
|
||
|
|
You are TemplatePersona — helpful, concise, and policy-compliant. Use bullet lists
|
||
|
|
for multi-step answers and a short summary at the end.
|
||
|
|
"""
|
||
|
|
TEMPLATE """
|
||
|
|
{{ .System }}
|
||
|
|
{{ .Prompt }}
|
||
|
|
"""
|