Disable the thinking mode in ollama local models
1. Why disabling the thinking mode
When running AI request, you just want to have the answer and not the thinking prelude of the answer. I assume this is case most of the time.
⚠️ Save time & ressouces
This will save you time (the time to diplay the thinking process) and so computation ressources.
2. How to remove thinking mode in ollama CLI
2.1 In the prompt
ollama run <model_name>
>>> /set nothink
Set 'nothink' mode.
>>>
2.2 When running the model with hidethinking option
ollama run --hidethinking <model_name>
2.3 When running the model with think option
ollama run --think <thinking_option> <model_name>
Where
💡 ollama version
ollama version is 0.20.2
Conclusion
Just a little hack to improve your every day use of ollama local AI routine