rules2md

Ollama Modelfile Generator

Turn a system prompt or a rules paste into an Ollama Modelfile with FROM, SYSTEM, and PARAMETER temperature.

Result

Converted Markdown appears here after you press Convert.

If the paste names llama3.1, llama3.2, llama3.3, mistral, mixtral, gemma2, qwen2.5, phi3, phi4, or deepseek-coder, that name is used in FROM. Otherwise FROM is llama3.2. Change it if you use another base model.

Temperature is taken from a line such as temperature: 0.4. When the source does not set one, PARAMETER temperature is 0.2. A TEMPLATE block is copied only when your paste already contains one.

Other files

Questions

Which base model is the default?

llama3.2, unless the pasted text names llama3.1, llama3.2, llama3.3, mistral, mixtral, gemma2, qwen2.5, phi3, phi4, or deepseek-coder.

What temperature is written?

The value in your text if you wrote one. Otherwise 0.2.