In Ollama, it does not support thinking or tool calls, and has a leaked thinking tag

#55
by ProCat1843 - opened

When using the Ollama CLI or official application, it says that the only capabilities are "completion" and it also shows <|channel>reasoning here <channel|> instead of properly hiding it, and just outputs <|channel>thought<channel|> when it doesn't reason about anything. It also says it does NOT support tools in Ollama.

em,add --jinja maybe is helpful when start

I don’t know how to because i use the Ollama CLI, not the raw llama.cpp thing

could you please fine tune it for other formats besides jinja like ollama or openAI

I actually found an Ollama port

ProCat1843 changed discussion status to closed

@ProCat1843 Glad you found a working Ollama port β€” and thanks for the clear write-up, it'll help the next person who hits this. Quick explanation for anyone who lands here later:

None of this is a model/fine-tune problem β€” the weights are fine. It's purely how Ollama loads the chat template. This model uses a custom template (the <|channel> / <|turn> scheme), and when Ollama imports the raw GGUF without a matching Modelfile TEMPLATE, it can't parse that scheme β€” so it (a) falls back to "completion" only, (b) doesn't know the model thinks, so it leaks the raw <|channel>… reasoning markers instead of hiding them, and (c) doesn't detect tool support. llama.cpp's --jinja and a proper Ollama Modelfile both fix it β€” which is basically what that port you found is doing.

On "fine-tune it for other formats like Ollama/OpenAI" β€” worth clearing up: output format isn't something baked in by fine-tuning. The model emits one thing; the server (Ollama / llama.cpp / an OpenAI-compatible endpoint) is what renders the template and hides the thinking channel. So it's a packaging fix, not a retrain.

To make this painless, I'll publish an official Ollama build with a correct Modelfile (thinking hidden, tools wired up) alongside v3, landing in the next day or two β€” so nobody has to hunt for a port. Appreciate the patience. πŸ™

Sign up or log in to comment