[GH-ISSUE #13768] Hugging Face models "does not support tools" #9024

Closed
opened 2026-04-12 21:50:57 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @Raboo on GitHub (Jan 18, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/13768

What is the issue?

Lets say I fetch a huggingface model like hf.co/mradermacher/MiniMax-M2.1-i1-GGUF:Q4_K_M.
When I try to use it for agentic coding, Ollama says "does not support tools".
The model itself does support tools. But Ollama doesn't know that. How do you go about to tell Ollama that a HF model support tools?

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

0.14.2

Originally created by @Raboo on GitHub (Jan 18, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/13768 ### What is the issue? Lets say I fetch a huggingface model like `hf.co/mradermacher/MiniMax-M2.1-i1-GGUF:Q4_K_M`. When I try to use it for agentic coding, Ollama says "does not support tools". The model itself does support tools. But Ollama doesn't know that. How do you go about to tell Ollama that a HF model support tools? ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.14.2
GiteaMirror added the bug label 2026-04-12 21:50:57 -05:00
Author
Owner

@rick-github commented on GitHub (Jan 18, 2026):

The model requires a parser or a template that enables tool use.

<!-- gh-comment-id:3765871362 --> @rick-github commented on GitHub (Jan 18, 2026): The model requires a [parser](https://github.com/ollama/ollama/pull/13582) or a [template](https://ollama.com/frob/minimax-m2.1:latest/blobs/6dc1fe3f1a44) that enables tool use.
Author
Owner

@Raboo commented on GitHub (Jan 19, 2026):

But if I haven't imported the model to ollama registry, how do I achieve that when loading models directly from HF?
Do I create a model file with?

FROM hf.co/mradermacher/MiniMax-M2.1-i1-GGUF:Q4_K_M

The model exists now in the registry and I can use that. But for future models..

<!-- gh-comment-id:3765962118 --> @Raboo commented on GitHub (Jan 19, 2026): But if I haven't imported the model to ollama registry, how do I achieve that when loading models directly from HF? Do I create a model file with? ``` FROM hf.co/mradermacher/MiniMax-M2.1-i1-GGUF:Q4_K_M ``` The model exists now in the registry and I can use that. But for future models..
Author
Owner

@rick-github commented on GitHub (Jan 19, 2026):

Create a Modelfile with FROM and TEMPLATE components. If the model is new and doesn't have an existing template that can be re-used, translate the Jinja template (usually found in the original model as chat_template.json, chat_template.jinja or the chat_template field in tokenizer_config.json) to a Go template.

<!-- gh-comment-id:3765980051 --> @rick-github commented on GitHub (Jan 19, 2026): Create a Modelfile with [`FROM`](https://github.com/ollama/ollama/blob/main/docs/modelfile.mdx#from-required) and [`TEMPLATE`](https://github.com/ollama/ollama/blob/main/docs/modelfile.mdx#template) components. If the model is new and doesn't have an existing template that can be re-used, translate the Jinja template (usually found in the original model as `chat_template.json`, `chat_template.jinja` or the `chat_template` field in `tokenizer_config.json`) to a [Go template](https://pkg.go.dev/text/template).
Author
Owner
<!-- gh-comment-id:3769754981 --> @Raboo commented on GitHub (Jan 19, 2026): hmm, https://ollama.com/frob/minimax-m2.1:latest/blobs/6dc1fe3f1a44 differs some what from https://huggingface.co/MiniMaxAI/MiniMax-M2.1/blob/main/chat_template.jinja.
Author
Owner

@rick-github commented on GitHub (Jan 19, 2026):

One is a Go template, the other is a Jinja template. The tool handling capability of a Go template is not flexible enough for some models, which is why some of the newer models have a parser rather than a template. Since there is no parser for minimax-m2 yet, the template is an approximate solution.

<!-- gh-comment-id:3769765120 --> @rick-github commented on GitHub (Jan 19, 2026): One is a Go template, the other is a Jinja template. The tool handling capability of a Go template is not flexible enough for some models, which is why some of the newer models have a parser rather than a template. Since there is no parser for minimax-m2 yet, the template is an approximate solution.
Author
Owner

@Raboo commented on GitHub (Jan 19, 2026):

ok, thanks for the explanation.

<!-- gh-comment-id:3769839829 --> @Raboo commented on GitHub (Jan 19, 2026): ok, thanks for the explanation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9024