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 behavior | Request 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