Ollama cheatsheet
Ollama: Customizing models
4 common Ollama tasks.
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.
"""
Build a model from a Modelfile
Create a model that you can run by name.
ollama create my-assistant -f Modelfile
See a model's Modelfile
Print the Modelfile that a model was built from, a good starting point for your own.
ollama show --modelfile llama3.2
Publish a model
Upload a model to your account on ollama.com. The name must start with your username.
ollama push myuser/my-assistant