Inkling 2 Mini writes tool calls as XML text and loops in reasoning, on three different engines

#64
by simpleengraver - opened

I'm running Inkling 2 Mini on a single RTX 5090 (32 GB) as a coding-agent backend with a 10-tool Qwen Code CLI. I see the same failure on three independent engines, so I think it comes from the model and not from any one server.

Setup

  • GPU: RTX 5090, driver 595.99, CUDA 13.4. Server default sampling (temperature 1.0) unless noted.
  • Engines: Basalt (current main), squid5090, and the stock vllm/vllm-openai:inkling-2-mini image (vLLM 0.1.dev25855), with the official reasoning and tool-call parsers. Caveat on vLLM: the image is built for CUDA archs 10.0 and 10.3 only (collect_env reports CUDA Archs: 10.0+PTX 10.3+PTX), so on a 5090 (arch 12.0) it relies on PTX fallbacks and some kernels are missing (DSpark doesn't run at all). The failures look like model output, but I can't rule out an effect of that on the vLLM numbers.
  • Weights: the official checkpoint on squid (exact mode, bf16) and vLLM. Basalt uses its own q8 repack.
  • Test: 50 single-turn prompts, each needing one tool call, with the real tool schemas from the CLI.

What goes wrong

  1. The call is written as text. The model writes the tool call as XML in the message content instead of a structured call (<invoke name="edit_file">…, <tool_call><function_calls>…, bare args JSON, functions.-prefixed XML).
  2. It reopens thinking after the thinking block ends or the budget closes. In one logged case the next token was a near tie between starting another thinking block (0.45) and starting the call (0.36). Greedy decoding picks thinking, and that block runs to the token limit.
  3. Deterministic reasoning loops at temperature 0. In some cases the model restarts its reasoning after "I'll call the tool now" and repeats until the token limit.
  4. Lower reasoning effort doesn't help. Low, minimal and none halve the tokens but raise the number of calls written as prose.

Numbers (valid calls out of 50)

Setup t=0 t=0, tool_choice=required t≥0.6
vLLM stock, fp8 KV (*) 35 47 35 (t=0.6)
vLLM stock, bf16 KV (*) 25 46 25 (t=0.6)
squid exact, bf16 10 ignored 13–25
Basalt current main 50 50 44–48 (t=0.6), 40–47 (t=1.0)

(*) vLLM image not built for the 5090's architecture, see the caveat above. The official-weights runs that don't have this issue are squid exact mode and the forum reports in discussion #21 (SGLang).

Questions

  • Is writing the call as XML text expected for this checkpoint at sampling temperatures? If the model needs a specific system prompt or tool format, what is it?
  • Is there a recommended temperature or sampling setup for tool use?
  • Is the reopening of thinking after a close a known behavior, and is a logit ban on <|content_thinking|> the intended fix?

I can share request logs, the probe harness and the logprob dump.

simpleengraver changed discussion status to closed
simpleengraver changed discussion status to open

Sign up or log in to comment