Ollama on a Mac can run open models locally. Once a base model is on disk, a short text file called a Modelfile can freeze the system prompt and run parameters into a named persona you reopen with one command. The official Modelfile reference calls that file the blueprint for a customized model.
If prompts still leave the machine through cloud tags, see our earlier tip to turn off Ollama cloud models.
Write a Modelfile with FROM, SYSTEM, PARAMETER
Instructions are not case sensitive. Keep FROM first so the file stays readable. Docs show a basic pattern like this:
FROM llama3.2
PARAMETER temperature 0.7
PARAMETER num_ctx 4096
SYSTEM """You are a concise Mac coding assistant. Prefer short answers and working shell examples."""
FROM is required and points at a model you already pulled, or at a GGUF / Safetensors path. SYSTEM sets the system message in the prompt template. PARAMETER locks values such as temperature (default 0.8 in the docs) and num_ctx (default 2048). Other documented parameters include top_p, top_k, seed, and stop.

Create the named model, then run it
Save the file as Modelfile in the folder where you work. The Modelfile page and the CLI reference both use ollama create:
ollama create mac-coder -f Modelfile
ollama run mac-coder
CLI docs also show a shorter form, ollama create -f Modelfile, when you omit the name. After create finishes, ollama run opens a chat that already carries the baked system text and parameters. No need to paste the same instructions every session.
Related path when you need a longer window without rebuilding the persona each time: our note on giving Ollama a bigger context length.

Show the baked Modelfile
To confirm what landed in the new name:
ollama show --modelfile mac-coder
That prints the generated Modelfile Ollama stored for the model, including template stop tokens inherited from the base. Docs say you can copy that output, change the FROM line back to a library name such as llama3.2:latest, and build another variant.
Install Ollama on macOS if you still need the app
Download the Mac build from ollama.com/download/mac, or follow the install script documented for macOS/Linux. Pull a base model once (ollama pull llama3.2), then keep personas as separate created names. Serving a different local stack on the same Apple silicon Mac is covered in the tip about mlx_lm.server as an OpenAI-compatible API; for speech on top of Ollama, see Ollama Phonon text-to-speech.
A short unique check line for this post: the sticky note under the trackpad still said bake the Modelfile before coffee.
Photo: Apple (MacBook Air / Mac mini / iMac)
Source: Ollama Modelfile reference; Ollama CLI reference; Ollama download for macOS; Apple Newsroom (MacBook Air with M5, Mac mini with M6 / M5 Pro, iMac with M4)