Esc
Config Llama Automation

Modelfile for a consistent local persona

A Modelfile that fixes the system prompt and sampling parameters of a local model, so the same behaviour holds in every session and you stop retyping instructions into each chat.

AI Place Hub 44
ConfigurationCopied
FROM llama3.3:70b

PARAMETER num_ctx 32768
PARAMETER temperature 0.3
PARAMETER top_p 0.9

SYSTEM """
You answer directly, without restating the question first.

When you are not sure something is correct - a function name, a version number, a fact you cannot verify from what was given - say so in one clause rather than presenting it with the same confidence as something you are sure of.

Keep answers proportional to the question. A short question gets a short answer.
"""

# Build with: ollama create mine -f Modelfile
# Run with:   ollama run mine

Notes from the author

The temperature and context values are a sensible default for instruction-following, not a universal answer. Raise the temperature for creative work. Raise num_ctx if you often paste long documents, because most Modelfiles default below what the model supports.

For information only, not professional advice. You use it at your own risk and we are not liable for any loss or damage. See the disclaimer.

Fork

Did this work for you?

Sign in to flag it

Related

  • Local setupLlama

    Running your first local model

    Ollama on an ordinary laptop, from install to a model answering in about ten minutes. It also shows how to work out which size fits before you…

    Tested on Llama 3.2 8B · May 2026

  • CheatsheetLlama

    Ollama commands worth knowing

    The part of the CLI you will use, plus two flags that fix the problems everyone hits.

    Tested on Llama 3.3 70B · May 2026

  • ToolLlamaAPPFree for personal use

    LM Studio

    A desktop app for downloading, running and comparing local models without a terminal. Best tool for deciding which quantisation is good enough before…

    Tested on Llama 3.2 8B · May 2026

  • ToolLlamaMistralCLIFree, open source

    Ollama

    The easiest way to get a local model answering on your own machine. One command installs it, one pulls a model, and an API appears on localhost that…

    Tested on Llama 3.3 70B · May 2026