[GH-ISSUE #10961] Enable / disable thinking through modelfiles and/or /save functionality. #69281

Open
opened 2026-05-04 17:38:46 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @stephensrmmartin on GitHub (Jun 3, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10961

We would like to serve models with the thinking setting preconfigured to either /think or /nothink .

Please allow us to change this via the modelfile, so that one can have, e.g., qwen3-think and qwen3-nothink variants preconfigured for users. They would be the same thing, ideally with one modelfile having THINK and another saying NOTHINK near the parameter section.

Moreover, this should be /save-able.

Originally created by @stephensrmmartin on GitHub (Jun 3, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10961 We would like to serve models with the thinking setting preconfigured to either /think or /nothink . Please allow us to change this via the modelfile, so that one can have, e.g., qwen3-think and qwen3-nothink variants preconfigured for users. They would be the same thing, ideally with one modelfile having THINK and another saying NOTHINK near the parameter section. Moreover, this should be /save-able.
GiteaMirror added the thinkingfeature request labels 2026-05-04 17:38:46 -05:00
Author
Owner

@kanadrome commented on GitHub (Mar 2, 2026):

I tried 'PARAMETER think false' in a modelfile for Ollama 0.17.5 with the new Qwen 3.5:4b model and the ollama create command said

" unknown parameter 'think' "

I'm on MacOS. Should it not work in 0.17.5? Is the parser not updated yet? Or is it a different parameter for Qwen 3.5?

<!-- gh-comment-id:3987105980 --> @kanadrome commented on GitHub (Mar 2, 2026): I tried 'PARAMETER think false' in a modelfile for Ollama 0.17.5 with the new Qwen 3.5:4b model and the ollama create command said " unknown parameter 'think' " I'm on MacOS. Should it not work in 0.17.5? Is the parser not updated yet? Or is it a different parameter for Qwen 3.5?
Author
Owner

@randomkwiz commented on GitHub (Apr 6, 2026):

Please do it

<!-- gh-comment-id:4193517147 --> @randomkwiz commented on GitHub (Apr 6, 2026): Please do it
Author
Owner

@DarrenCook commented on GitHub (Apr 7, 2026):

I don't code in Go and haven't tested it myself yet (*), but https://github.com/ollama/ollama/pull/14108 looks quite small and straightforward. Can a developer look at it and get it merged in?

Being able to predefine qwen3-think and qwen3-nothink (and the same for gemma4 now) will be a big jump in ollama usefulness.

*: I'm running the quick install binary(?) version, so need to find out how involved it is to run directly from source.

<!-- gh-comment-id:4198952483 --> @DarrenCook commented on GitHub (Apr 7, 2026): I don't code in Go and haven't tested it myself yet (*), but https://github.com/ollama/ollama/pull/14108 looks quite small and straightforward. Can a developer look at it and get it merged in? Being able to predefine qwen3-think and qwen3-nothink (and the same for gemma4 now) will be a big jump in ollama usefulness. *: I'm running the quick install binary(?) version, so need to find out how involved it is to run directly from source.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69281