ollama - 💡(How to fix) Fix lfm2.5-thinking cannot run tools [4 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#14742Fetched 2026-04-08 00:32:15
View on GitHub
Comments
4
Participants
2
Timeline
7
Reactions
0
Author
Participants
Timeline (top)
commented ×4closed ×1cross-referenced ×1labeled ×1

Error Message

mar 09 16:15:24 iceland ollama[2732]: time=2026-03-09T16:15:24.397Z level=WARN source=vocabulary.go:49 msg="adding bos token to prompt which already has it" id=[1]

Code Example

mar 09 16:14:49 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:49 | 200 |      18.756µs |       127.0.0.1 | HEAD     "/"
mar 09 16:14:49 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:49 | 200 |   33.444216ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |    40.21652ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 404 |     105.404µs |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |   28.305417ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |   31.074005ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 404 |     152.929µs |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |   33.954934ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:15:24 iceland ollama[2732]: time=2026-03-09T16:15:24.397Z level=WARN source=vocabulary.go:49 msg="adding bos token to prompt which already has it" id=[1]
mar 09 16:15:35 iceland ollama[2732]: [GIN] 2026/03/09 - 16:15:35 | 200 | 11.156455353s |       127.0.0.1 | POST     "/v1/chat/completions"
RAW_BUFFERClick to expand / collapse

What is the issue?

https://ollama.com/library/lfm2.5-thinking is tagged with "tools", but it can't run any tools when using ollama launch opencode --model lfm2.5-thinking:latest.

Try asking it to list available tools or to use them, and you'll see it never uses any tool.

Example session: https://opncd.ai/share/HqkDcBYa

Relevant log output

mar 09 16:14:49 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:49 | 200 |      18.756µs |       127.0.0.1 | HEAD     "/"
mar 09 16:14:49 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:49 | 200 |   33.444216ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |    40.21652ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 404 |     105.404µs |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |   28.305417ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |   31.074005ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 404 |     152.929µs |       127.0.0.1 | POST     "/api/show"
mar 09 16:14:50 iceland ollama[2732]: [GIN] 2026/03/09 - 16:14:50 | 200 |   33.954934ms |       127.0.0.1 | POST     "/api/show"
mar 09 16:15:24 iceland ollama[2732]: time=2026-03-09T16:15:24.397Z level=WARN source=vocabulary.go:49 msg="adding bos token to prompt which already has it" id=[1]
mar 09 16:15:35 iceland ollama[2732]: [GIN] 2026/03/09 - 16:15:35 | 200 | 11.156455353s |       127.0.0.1 | POST     "/v1/chat/completions"

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.17.4

extent analysis

Fix Plan

To resolve the issue of the lfm2.5-thinking model not running any tools when using ollama launch opencode --model lfm2.5-thinking:latest, we need to update the model configuration to include the necessary tools.

Step 1: Update Model Configuration

Update the lfm2.5-thinking model configuration to include the required tools. This can be done by adding the following code to the model's configuration file:

tools:
  - tool1
  - tool2

Replace tool1 and tool2 with the actual names of the tools required by the model.

Step 2: Restart Ollama Service

Restart the Ollama service to apply the changes:

sudo systemctl restart ollama

Step 3: Verify Tools Availability

Verify that the tools are available by running the following command:

ollama launch opencode --model lfm2.5-thinking:latest --list-tools

This should list the available tools for the model.

Verification

To verify that the fix worked, try running a tool using the following command:

ollama launch opencode --model lfm2.5-thinking:latest --tool tool1

Replace tool1 with the actual name of the tool you want to run. If the tool runs successfully, the issue is resolved.

Extra Tips

  • Make sure to update the model configuration file correctly, as incorrect formatting can cause issues.
  • If you are using a custom model, ensure that the tools are compatible with the model's architecture.
  • Refer to the Ollama documentation for more information on configuring models and tools.

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 lfm2.5-thinking cannot run tools [4 comments, 2 participants]