Tech & AIrelated: r/ollama

Give a local model a permanent persona with a Modelfile

Write a tiny config file and create your own named model in Ollama.

time
thirty minutes
cost
free
effort
easy
where
at your desk

what it is

  • An Ollama Modelfile works like a Dockerfile for models.
  • Pick a base model, a system prompt and settings like temperature.
  • You get a custom model you can call by name.

how it goes

  1. Make a text file called Modelfile with FROM llama3.2 on the first line.
  2. Add a SYSTEM line with the persona in quotes and a PARAMETER temperature line.
  3. Run ollama create coach -f Modelfile.
  4. Run ollama run coach and tune the prompt until it sounds right.

where to go

why try it

People make study buddies, dungeon masters and brutally honest editors this way.

More in Tech & AI, or pick a niche.