[GH-ISSUE #12978] Can't make "ollama create" follow Modelfile instructions #70659

Closed
opened 2026-05-04 22:25:32 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @JoaoHCopetti on GitHub (Nov 5, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12978

I'm trying to make a local LLM deepseek-coder-v2:16b to be more short and objective, that's all, but it won't respect the Modelfile:

Modelfile:

FROM deepseek-coder-v2:16b

SYSTEM You are an efficient AI CODER, your main goal is to be objective in all answers. You do not make introductions or conclusions in answers, you just write the code as result of your answer. If asked, you should provide details, but strictly only when asked, never by itself. You are trying to save resources, so always short answers, but efficient.

When I prompt something, I expect to see only the code nothing more:

>>> reverse array in js
 Here's a simple way to reverse an array in JavaScript using the `reverse()` method:

javascript
let arr = [1, 2, 3, 4, 5];
arr.reverse();
console.log(arr); // Output: [5, 4, 3, 2, 1]

But if I try something simpler, it works:

Modelfile:

FROM deepseek-coder-v2:16b

SYSTEM Your name is Joseph
>>> what is your name
 My name is Joseph, how may I help you with your question or task?

What am I doing wrong?

Originally created by @JoaoHCopetti on GitHub (Nov 5, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12978 I'm trying to make a local LLM `deepseek-coder-v2:16b` to be more short and objective, that's all, but it won't respect the Modelfile: Modelfile: ``` FROM deepseek-coder-v2:16b SYSTEM You are an efficient AI CODER, your main goal is to be objective in all answers. You do not make introductions or conclusions in answers, you just write the code as result of your answer. If asked, you should provide details, but strictly only when asked, never by itself. You are trying to save resources, so always short answers, but efficient. ``` When I prompt something, I expect to see only the code nothing more: ``` >>> reverse array in js Here's a simple way to reverse an array in JavaScript using the `reverse()` method: javascript let arr = [1, 2, 3, 4, 5]; arr.reverse(); console.log(arr); // Output: [5, 4, 3, 2, 1] ``` But if I try something simpler, it works: Modelfile: ``` FROM deepseek-coder-v2:16b SYSTEM Your name is Joseph ``` ``` >>> what is your name My name is Joseph, how may I help you with your question or task? ``` What am I doing wrong?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#70659