ollama - 💡(How to fix) Fix Better documentation needed for hf.co -> Modelfile workflow conversion and API call differences native/openai [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#14903Fetched 2026-04-08 00:48:00
View on GitHub
Comments
3
Participants
2
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
commented ×3closed ×1labeled ×1renamed ×1
RAW_BUFFERClick to expand / collapse

Trying to get different Qwen3.5 models from hf.co to run I'm currently stuck trying to disable thinking.

Available (at least the one I found) documentation / examples do not answer the following questions:

  1. Why does the standard Ollama Template for qwen3.5 just contain .Prompt and nothing else?
  2. If i use for instance unsloth/Qwen3.5-35B-A3B-GGUF it contains {%- if enable_thinking is defined and enable_thinking is false %} but how is that supposed to be set?
  3. what about the {{ if and $.IsThinkSet (not $.Think) -}} present in the qwen3 Templates (those can be set for instance via think:true in the OpenAi compatible completions API?

extent analysis

Fix Plan

To address the issues with running Qwen3.5 models from hf.co, we need to modify the template to disable thinking and correctly set the enable_thinking variable.

Steps to Fix

  • Set enable_thinking to false in the template:
{"enable_thinking": false}
  • Modify the Ollama Template to include the enable_thinking variable:
{%- if enable_thinking is defined and enable_thinking is false %}
  <!-- code to disable thinking -->
{%- endif %}
  • Use the OpenAi compatible completions API to set think to true or false:
{
  "prompt": "...",
  "think": true
}
  • Update the template to use the think variable:
{{ if and $.IsThinkSet (not $.Think) -}}
  <!-- code to handle thinking -->
{{- end }}

Verification

Verify that the fix worked by checking the model's output and ensuring that thinking is disabled or enabled as expected.

Extra Tips

  • Refer to the Hugging Face documentation for more information on using Qwen3.5 models and modifying templates.
  • Use the OpenAi compatible completions API to set variables and control the model's behavior.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix Better documentation needed for hf.co -> Modelfile workflow conversion and API call differences native/openai [3 comments, 2 participants]