Ubicloud Achieves 100% Tool-Call Accuracy in vLLM via Constrained Decoding
·2026.10.26 21:59
Key point
Enabling the vLLM 0.31 server-side constrained decoding flag improved tool-call schema accuracy from 92% to 100% for Kimi K2.6 and DeepSeek models.
Details
- Ubicloud resolved tool-call schema failures in vLLM by activating the constrained decoding server-side flag, raising accuracy from 92% to 100% on the K2VV ToolCall benchmark.
- The accuracy drop to 91-92% occurred after migrating from a custom vLLM fork to the upstream vLLM 0.25+ feature, where the default behavior for requests not explicitly enabling constrained decoding changed.
- Constrained decoding uses the XGrammar library to mask invalid tokens during sampling, enforcing a strict generation path from tool name to schema-constrained JSON with negligible performance overhead.
- vLLM maintainers kept constrained decoding disabled by default to avoid three types of issues: general model performance degradation, grammar translation bugs, and feature interaction bugs with speculative decoding.
- Users can now control strictness via the --tool-strict-level flag, allowing deployment-specific configuration for models like Kimi and DeepSeek.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.