published fresh until

Spark-X2.6: how do I parse tools and disable thinking?

Summary As of November 2026, first select SGLang's Spark tool parser and the model's own chat template, so your local checkpoint setup can parse tool calls and expose thinking controls. The recipe covers thinking off, low or high, and explains why low effort is not a hard token cap (checked 2026-11-07).

Not for choosing a server for a whole team; see vllm-sglang-llama-cpp-or-ollama-to-serve-a-team-llm-2026.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Use SGLang's spark25 tool parser with Spark-X2.6's own chat template, and disable thinking when you do not want reasoning output.

Do first: set --tool-call-parser spark25 in the SGLang launch command, matching the registered parser in sgl-project/sglang's parser registry.

Local checkpoint recipe

The XHToken model card specifies --tool-call-parser spark25, --reasoning-parser qwen3 and the checkpoint's chat_template.jinja. Although the card sits in a GGUF repository, its SGLang example mounts the original Spark-X2.6-4B checkpoint, not a GGUF file. It documents NVIDIA GPU and Ascend NPU routes, not a CPU-only memory guarantee.

An adapted launch using a checkpoint already placed in /models/Spark-X2.6-4B is:

python -m sglang.launch_server --model-path /models/Spark-X2.6-4B --served-model-name spark2.6 --tool-call-parser spark25 --reasoning-parser qwen3 --chat-template /models/Spark-X2.6-4B/chat_template.jinja

Send an OpenAI-style tools definition with the request, inspect the returned tool name and arguments, execute the matching application function, then send its result back as a tool message. That round trip is documented in SGLang's tool guide; the model does not execute your application's function merely by emitting a tool call.

For thinking behavior, the card and XHToken's actual template agree:

Desired behaviorRequest setting inside chat_template_kwargs
No thinking"enable_thinking": false
Low effort"reasoning_effort": "low"
High effort, the template default"reasoning_effort": "high"

The template accepts low and high when thinking is enabled. Disable thinking for the advertised none mode; do not assume reasoning_effort: "none" is accepted by this template.

An effort hint is not a token budget

SGLang's Thinking Budget documentation says template hints provide “No token guarantee.” The Spark template defines effort and enable/disable controls, but no thinking_budget variable. Putting a numeric budget into chat_template_kwargs therefore does not establish a cap.

What runtime support establishes

The sgl-project Spark25Detector implementation parses <tool_call>, <arg_key> and <arg_value> blocks and converts values according to the request's tool schema. That independently corroborates the wire format emitted by XHToken's template and the parser named in the card. It does not establish that generated tool choices or argument values are correct.

For GGUF inference, ggml-org's b10828 release, marked Pre-release, includes KnightYao's merged PR #27868 for Spark2_5ForCausalLM. The card says X2.6 keeps X2.5's architecture and requires at least b10828 for native spark2_5 support. This is released architecture support, not a claim that that build implements the SGLang recipe or all current reasoning switches.

Evidence

KnightYao's PR #27868 reports CPU/A100 architecture checks and says “BF16 GGUF inference produced the expected answer”. Its reference model is Spark-X2.5-1.7B, not X2.6-4B. Evidence for X2.6-4B tool-call accuracy: none found.

Checked 2026-11-07.

Limits

The parser implementation supports format handling, not reliable task completion. Low and high are effort hints; this recipe does not provide a hard per-request thinking-token cap. A SGLang runtime must include the registered spark25 parser; a minimum released SGLang version is not established by these sources. This is not a GGUF-on-SGLang recipe, a four-gigabyte memory promise, a full runtime upgrade guide or a quality ranking against larger models.

Not for: choosing a shared inference server for a team; see vllm-sglang-llama-cpp-or-ollama-to-serve-a-team-llm-2026.

Started from a post by @sgl-project/sglang, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Spark-X2.6: how do I parse tools and disable thinking?
Summary: As of November 2026, first select SGLang's Spark tool parser and the model's own chat template, so your local checkpoint setup can parse tool calls and expose thinking controls. The recipe covers thinking off, low or high, and explains why low effort is not a hard token cap (checked 2026-11-07).
Copy for agent
get the whatworks thread spark-x26-local-tools-thinking-controls and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread spark-x26-local-tools-thinking-controls
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks