[GH-ISSUE #15953] LiquidAI/lfm2.5-1.2b-instruct and LiquidAI/lfm2.5-350m don't accept tool calling even though they support it #87847

Closed
opened 2026-05-10 06:26:53 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ajitsingh-tf on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15953

What is the issue?

If you read their descriptions

you'd see both models support tool calling

but when I run

ollama launch pi --model LiquidAI/lfm2.5-1.2b-instruct

and I put any prompt and hit enter, I get:

Error: 400 registry.ollama.ai/liquidai/lfm2.5-1.2b-instruct:latest does not support tools

Expected Behavior: I suppose we need to add "tools" tag in those so that it doesn't give 400.

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.22.0

Originally created by @ajitsingh-tf on GitHub (May 4, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15953 ### What is the issue? If you read their descriptions - https://ollama.com/LiquidAI/lfm2.5-350m - https://ollama.com/LiquidAI/lfm2.5-1.2b-instruct you'd see both models support tool calling but when I run ``` ollama launch pi --model LiquidAI/lfm2.5-1.2b-instruct ``` and I put any prompt and hit enter, I get: ``` Error: 400 registry.ollama.ai/liquidai/lfm2.5-1.2b-instruct:latest does not support tools ``` **Expected Behavior**: I suppose we need to add "tools" tag in those so that it doesn't give 400. ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.22.0
GiteaMirror added the bug label 2026-05-10 06:26:53 -05:00
Author
Owner

@rick-github commented on GitHub (May 4, 2026):

These are user uploaded models and the supplied Modelfile doesn't provide tool support.

Fortunately the chat template for these models is the same as for lfm2, which ollama supports. So the Modelfile can be modified to use the RENDERER and PARSER from the official lfm2 models.

$ ollama show --modelfile liquidai/lfm2.5-1.2b-instruct:q8_0 | grep -v '{{' > Modelfile
$ echo RENDERER lfm2 >> Modelfile
$ echo PARSER lfm2 >> Modelfile
$ ollama create lfm2.5-1.2b-instruct:q8_0
$ ollama run lfm2.5-1.2b-instruct:q8_0 --experimental --experimental-yolo

This experimental version of Ollama has the bash tool enabled.
Models can read files on your computer, or run commands (after you allow them).

warning: yolo mode - all tool approvals will be skipped
>>> what is the time?

running: Bash: date
  Mon May  4 09:32:13 AM CEST 2026
  

The current time is May 4, 2026 at 09:32 AM CEST.

Be aware that small models are generally not great tool users.

<!-- gh-comment-id:4369113631 --> @rick-github commented on GitHub (May 4, 2026): These are user uploaded models and the supplied Modelfile doesn't provide tool support. Fortunately the [chat template](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking/blob/main/chat_template.jinja) for these models is the same as for lfm2, which ollama supports. So the Modelfile can be modified to use the RENDERER and PARSER from the official lfm2 models. ```console $ ollama show --modelfile liquidai/lfm2.5-1.2b-instruct:q8_0 | grep -v '{{' > Modelfile $ echo RENDERER lfm2 >> Modelfile $ echo PARSER lfm2 >> Modelfile $ ollama create lfm2.5-1.2b-instruct:q8_0 ``` ```console $ ollama run lfm2.5-1.2b-instruct:q8_0 --experimental --experimental-yolo This experimental version of Ollama has the bash tool enabled. Models can read files on your computer, or run commands (after you allow them). warning: yolo mode - all tool approvals will be skipped >>> what is the time? running: Bash: date Mon May 4 09:32:13 AM CEST 2026 The current time is May 4, 2026 at 09:32 AM CEST. ``` Be aware that small models are generally not great tool users.
Author
Owner

@ajitsingh-tf commented on GitHub (May 4, 2026):

Thanks Rick! Closing.

<!-- gh-comment-id:4369134917 --> @ajitsingh-tf commented on GitHub (May 4, 2026): Thanks Rick! Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#87847