Ollama · Customizing models

Write a Modelfile

Define a custom model from a base model, with a system prompt and parameters.

FROM llama3.2
PARAMETER temperature 0.3
PARAMETER num_ctx 8192
SYSTEM """
You are a helpful assistant that answers briefly.
"""

Official Ollama documentation

More customizing models commands

All customizing models commands · Ollama cheatsheet

Was this page helpful?