Skip to content

Eval bug: K2-Horizon-MoVA-36B tool-calls during reasoning are not processed #32972

Done

Description

@jaredmeaux

Name and Version

.\llama-server.exe --version
llama release b12557 and the bug is still present on current master (5fddd0b)
version: 1.0.0-dev (build 1, commit b94959a)
built with MSVC 19.51.36263.0 for Windows AMD64

Operating systems

Windows

GGML backends

Vulkan

Hardware

AMD Ryzen AI Max+ 395

Models

K2-Horizon-MoVA-36B-A4B Q6_K (https://huggingface.co/bartowski/K2-Horizon-MoVA-36B-A4B-GGUF)

Problem description & steps to reproduce

Tool calls emitted during reasoning (inside think blocks) are not processed by the parser. The model opens <ifm|think_fast> and goes straight into <ifm|tool_calls> without the needed </ifm|think_fast>.

Since a tool call was expected, the response has empty content, there are no tool_calls

Reproduce with llama-server, /v1/chat/completions with tools and tool_choice: auto, reasoning_effort medium, temp 1.0, top-p 0.95, 64K context.

This issue occurs repeatedly in my A/B testing during 4 of 11 runs. It also happened on K2-Horizon-7B Q4_K_M at high effort, 2 of 11 runs.

This is what #30335 left uncovered.

First Bad Commit

N/A

Relevant log output

I have added logging to my private code, which shows the model opens <ifm|think_fast> and goes straight to <ifm|tool_calls> without ever closing the reasoning

Logs
<|ifm|im_start|>assistant
<ifm|think_fast>
<ifm|tool_calls>
<ifm|tool_call>bash
<ifm|arg_key>command</ifm|arg_key>
<ifm|arg_value>cd *redactedPath*/AiBenchRepos/CodeBench8 && *redactedPath2*/ ...</ifm|arg_value>
</ifm|tool_call>
</ifm|tool_calls>

Activity

  1. jaredmeaux commented on Nov 24, 2026

    @jaredmeaux
    ContributorAuthor

    I have developed a fix for this, with a regression test that fails on master and passes with my fix. It uses the same pattern as other fixes #32232 (Gemma4) and #32271 (Ministral-3). I will open a PR in the next day or two.

  2. added a commit that references this issue on Nov 28, 2026
    f16e79d
  3. added a commit that references this issue on Dec 1, 2026
    b0918e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions