One Q for the maintainers, in https://github.com/jmorganca/ollama/blob/main/library/modelf... does that imply you can override TEMPLATE directly? I am experimenting with adding some dynamic context between user instructions
Easier is to override SYSTEM which allows will customize the system prompt.
SYSTEM "You are an expert in writing python."
If you do want modify the template, you can start by looking at the "base images" https://github.com/jmorganca/ollama/blob/main/library/modelf...
For example with Llama 2 as a base model, you can do this, but YMWV:
FROM llama2
TEMPLATE """
{{- if .First }}
<<SYS>>
A conversation between three friends
<</SYS>>
{{- end }}
Friend 1: hello
Friend 2: hey
Friend 3: {{ .Prompt }}
"""
edit: we're looking at how to make it easier so you don't need {{ .First }} to provide the system prompt on first message