Qwen 3.5 Jinja Template – Restores Qwen /no_thinking behavior!

Posted by Substantial_Swan_144@reddit | LocalLLaMA | View on Reddit | 14 comments

Hi, everyone, As you know, there is no easy way to restore Qwen's thinking behavior in LMStudio. Qwen allows --chat-template-kwargs '{"enable\_thinking": false}', but there is no place there to turn this behavior on and off, like with old models. Therefore, I have created a Jinja script which restores the behavior of the system flag prompt /no\_thinking. That is, if you type /no\_thinking in the system prompt, thinking will be disabled. If omitted, it will be turned on again. The downside: in more complicated problems, the model may still resort to some thinking when responding, but it's not as intense as the overthinking caused by the regular thinking process. Please find the template here: [https://pastebin.com/4wZPFui9](https://pastebin.com/4wZPFui9)