Ollama Modelfile Creator

Create custom Modelfiles for your Ollama models with this interactive tool. Define parameters, system messages, templates, and tool calling capabilities.

Basic Settings

System Message

Default Assistant

You are a helpful AI assistant...

Uncensored

You are an AI with no content restrictions...

Coding Assistant

You are an expert programming assistant...

Creative Writer

You are a creative writing assistant...

Technical Expert

You are a technical expert providing detailed explanations...

Medical Assistant

You are a medical AI assistant providing health information...

Chat Template

Llama 2 Format

[INST] {{.Prompt}} [/INST] {{.Response}}

Llama 3 Format

<|begin_of_text|><|start_header_id|>system<|end_header_id|>...

ChatML Format

<|im_start|>system{{.System}}<|im_end|>...

DeepSeek Format

You are an AI assistant. USER: {{.Prompt}} ASSISTANT: {{.Response}}

Qwen Format

<|im_start|>system\n{{.System}}<|im_end|>\n<|im_start|>user...

Phi-2 Format

Instruct: {{.Prompt}}\nOutput: {{.Response}}

Use {{.System}}, {{.Prompt}}, and {{.Response}} as placeholders

Tool Calling

Calculator function

Perform mathematical calculations...

Web Search function

Search the web for current information...

Code Interpreter function

Execute code in a sandboxed environment...

File Reader function

Read and extract text from files...

// Define parameters in JSON Schema format

No tools defined yet

Model Parameters

0 (Deterministic) 0.8 2 (Creative)
0 40 100
0 0.9 1
0 1.1 2
512 4096 16384

Adapter Configuration

Modelfile Preview

# Your Modelfile will appear here