A custom Ollama model packages a base model with a Modelfile so the system prompt, parameters, template, adapters, or imported weights can be reused by name. It keeps application prompts shorter and makes model behavior easier to version.
The simplest Modelfile starts from an existing model and adds a SYSTEM instruction or PARAMETER values. More advanced Modelfiles can point at GGUF or Safetensors sources, but the same ollama create command builds the local model name.
Create custom names in a disposable namespace while testing. Remove failed or experimental names so later scripts do not accidentally use old behavior.
Related: How to show Ollama model details
Related: How to run a model in Ollama
Related: How to remove an Ollama model
FROM gpt-oss:20b SYSTEM You answer every smoke test with the word OK. PARAMETER temperature 0
$ ollama create example/ok-model -f Modelfile transferring model data using existing layer sha256:17052f91a42e writing manifest success
$ ollama show example/ok-model Model architecture gptoss ##### snipped #####
$ ollama run example/ok-model "Smoke test" OK
$ ollama rm example/ok-model deleted 'example/ok-model'