---
id: 16700
lang: en
title: "Ubicloud Raised Kimi K2.6 Tool-Call Accuracy in vLLM from 92% to 100%"
published_at: "2026-10-26 12:59:48"
source_name: "Hacker News AI"
source_url: "https://www.ubicloud.com/blog/fixing-tool-call-accuracy-in-vllm"
canonical_url: "https://news.hamidun.com/en/news/16700"
categories: ["llm", "research"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Ubicloud Raised Kimi K2.6 Tool-Call Accuracy in vLLM from 92% to 100%

> **Краткая суть (BLUF):** An agent running on an open model breaks when the model emits a tool call that doesn't match the schema, for example by inventing a field that doesn't exist. Ubicloud ran Kimi K2.6 on the vLLM 0.28 engine, and only 92% of tool calls came out correct; two out of every 25 failed. Constrained decoding, where only tokens valid at each step are allowed, raised schema accuracy to 100% on the K2VV ToolCall test. If you self-host Kimi or DeepSeek, enable this flag in vLLM 0.31.  • K2VV ToolCall from Moonshot AI: 2,000 requests check tool-call correctness • vLLM 0.25 disabled the mode by default, and accuracy dropped to 91% • A server-side strict-tool-calls flag appeared in vLLM 0.31 for Kimi and DeepSeek

If you have run an open model in an agent pipeline and seen results that look nothing like the impressive benchmark numbers, the model may not be to blame. The Ubicloud team, which hosts Kimi K2.6 and DeepSeek, showed in practice that the inference engine eats a noticeable share of quality, specifically in how it handles tool calls. On Kimi K2.6 with vLLM 0.28, only 92% of tool calls came out correct. Two out of every 25 calls broke.

## Why a broken tool call is so costly

Imagine an OpenCode agent that needs to fetch a web page. First, the engine tells the model which tools are available, in the form of a JSON schema: the name, the parameters (for example, a page address, a format, a timeout), their types, and the required fields. Then the model must output a call that strictly follows this schema, wrapped in service tokens. A server-side parser converts the output into plain JSON and hands it to the agent, which runs the tool.

If the call doesn't match the schema, it fails. An error message lands in the context, the model keeps working on garbage, the agent retries, and you pay for the tokens. In multi-step sessions this is especially painful: one error drags the next ones along with it.

The cause lies in the nature of language models. An LLM picks the next token by probability and does not run a compiler or a type check. On top of that, it was trained on many datasets with different tools and conventions. So it can output a tool name or field it saw during training but that doesn't exist in your environment.

Ubicloud measured this on the K2VV ToolCall benchmark from Moonshot AI: 2,000 requests. It computes two metrics. The first shows how well the model's decisions about when to call a tool match the reference service from Moonshot. The second shows the share of calls that conform to the schema and can therefore be executed. If it equals 50%, half the calls are broken.

## How constrained decoding closes the gap

Normally the engine lets the model sample tokens freely and checks the result afterward. Constrained decoding works differently: the engine guides the model step by step, and at each step only the tokens permitted by the schema are allowed. The path looks like this: start of call, tool name, call index, start of arguments, JSON per the schema, end of call. When generation reaches the index, only digits are allowed, and everything else is masked.

The model still chooses the token itself, but only from the permitted set. The call format becomes a guarantee at execution time rather than "however it turns out." In vLLM this is handled by the XGrammar library. According to its authors, the overhead is negligible: token masks are computed in advance and applied on the GPU.

## Why vLLM doesn't enable it by default

Ubicloud first added this capability to its own fork of vLLM. When the feature landed in the mainline branch (v0.25), the team switched to it, and accuracy suddenly dropped to 91%. The implementation remained correct, but vLLM changed the default behavior for requests where the constraint is not explicitly enabled.

The reason is that vLLM supports many models, and constrained decoding has to be tuned for each one separately. There are three problems. For some models, free output diverges sharply from the schema or the call format, and forcing it knocks them off course: users reported failures with gpt-oss-20b, Qwen 3.6, and GLM 5.1. In other cases there are bugs in translating the schema into a grammar, which break calls, cause requests to fail, and silently disable the constraint. The third group is bugs in interactions with other engine features. For a general-purpose server, it is safer to turn the mode off by default. Later, in vLLM 0.31, a server-side flag appeared that enables strict tool calls for a specific deployment.

## What to do in practice

With the flag enabled, Ubicloud got 100% schema accuracy on the newer Kimi and DeepSeek models. For Kimi K2.6, the gain was from 92% to 100%.

The takeaway for anyone running open models themselves: quality depends on the pair of model and engine with its settings. Before blaming the model, run your own set of tool calls and compare against the reference service. If you use Kimi or DeepSeek, enable strict tool calls. For Qwen, GLM, and gpt-oss, test carefully: users reported problems with constraints turned on. A caveat: the figures come from one team, on specific model and vLLM versions, so your results may differ.

---
- **Первоисточник:** [Hacker News AI](https://www.ubicloud.com/blog/fixing-tool-call-accuracy-in-vllm)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/16700
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
