Ollama Modelfile: create a named model for release notes
Save a base model, parameters and system message, create a separate model name, then check its definition and a synthetic input.
Prepare an available model and a separate directory · Store the task, parameters and base model together · Create a new name and read its definition
At a glance
An Ollama Modelfile stores a base model, runtime parameters and a system message. ollama create turns it into a named model. This task builds a release-notes assistant from synthetic changes and delivers the file, a separate name and a verification record. These instructions reuse existing weights; they do not train new ones. The article follows the official Modelfile documentation. No download, creation or inference was performed.
Creation and verification flow
Save the task definition
Save a
Modelfilein a new demonstration directory with the base model and task constraints.Create a separate name
Have
ollama createread the file, then inspect the new definition.Run and inspect
Submit synthetic changes and check facts, missing information and output length.
Prepare an available model and a separate directory
You need a working Ollama command and an already available llama3.2 model. If it is missing, resolve installation and model acquisition through the official instructions first; this task does not claim they are complete. Use a new demonstration directory you control and save the file without replacing an existing definition. The filename Modelfile is not required by the documentation; this example uses it for convenience.
Store the task, parameters and base model together
FROM is required. This example uses the model name from the official example. temperature 0.2, num_ctx 4096 and num_predict 256 are teaching choices for randomness, context size and the generated-token limit. They are not optimal settings for every model, and lower randomness does not guarantee accuracy. SYSTEM sets a system message when applicable to the model. This task keeps the base template rather than replacing its special tokens.
FROM llama3.2
PARAMETER temperature 0.2
PARAMETER num_ctx 4096
PARAMETER num_predict 256
SYSTEM """You organize release notes from the supplied changes.
Write sections named Changes, Risks, and Missing information.
Do not invent test results or fill in missing facts.
"""
Create a new name and read its definition
Run each command separately in the demonstration directory: inspect the base, create release-notes-demo, inspect the new model, then enter its interactive session. If that name already exists, choose an unused name rather than replace it. The relative path points to the file in the current directory. Stop after a failed creation so a pre-existing model is not mistaken for this task’s result.
ollama show --modelfile llama3.2
ollama create release-notes-demo -f ./Modelfile
ollama show --modelfile release-notes-demo
ollama run release-notes-demo
ollama show --modelfile returns the definition. Check the base source, parameters and system message for the new name. The generated definition may use an internal path or blob for the base, so its FROM line need not match the source byte for byte. If the new definition cannot be read, record the failure and stop. Base-model output does not prove creation succeeded.
Try synthetic changes with missing information
After entering ollama run release-notes-demo, paste the input below. It supplies no test result or deployment date, so the response should preserve those gaps. The input contains no real account, repository address or internal change. No observed model response is shown because inference was not run.
Changes supplied by the author:
- Added a CSV export button.
- Fixed the empty-state text.
Test results: not supplied.
Deployment date: not supplied.
Check the file, model name and response
| Object | How to inspect it | If it fails |
|---|---|---|
| Modelfile | FROM exists; parameters and task constraints are readable | Fix the source rather than infer settings from output |
| New name | show returns its definition with the intended system message and parameters | Check creation results and the name used |
| Generated text | Only the supplied changes appear; tests and date remain unknown | Record the deviation, edit the system message, recreate and retry |
| Output limit | 256 limits generated tokens; it does not guarantee completeness | If truncated, change settings, recreate and check the whole text |
Headings establish only a formatting check. Compare every claim with the input. Adding a button does not imply better performance; missing tests cannot become “tests passed”; and no date should be guessed. Wording may vary, so accept factual correspondence rather than require one exact response.
Return to the failing step
- If the base is missing or creation fails, stop at creation and inspect the base and file path.
- If the inspected system message differs, check the actual file, command and model name, then recreate and recheck.
- If output omits changes, invents facts or is truncated, keep the input and discrepancy record instead of treating it as finished.
- Before sharing, check the base license separately. A LICENSE instruction does not grant commercial rights to the underlying weights.
Scope and unexecuted work
This task suits repeated use of a prompt and parameters under a separate, inspectable name. It adds no dataset, fine-tuning, tool calling or automatic deployment; those require separate workflows. Safetensors and GGUF imports and the TEMPLATE and MESSAGE options are outside this task. The official instructions and commands were checked, but machine compatibility, generation quality and runtime were not tested.
Article sources
Original editorial content; official descriptions and checking suggestions are distinguished.