The Serving Stack
Start hereCollectionsNewsletter
Sign in

tool-calling

1 post

REQUEST TO TOKENS · 08VALID ANSWERS: 7 → 199 OF 200
request-to-tokensstructured-outputjson

Structured Output: How Engines Force Valid JSON, Token by Token

How vLLM and SGLang guarantee valid JSON or a grammar: compiling a schema into a token mask, applying it at every step, and what it costs in latency and quality.

by The Serving Stack

Inference Notes

Once a week: what changed in serving AI models, and what it means if you build, run or pay for them, in about five minutes.

The Serving Stack

Inference Engineering, In Depth

Navigate

HomeStart hereCollectionsNewsletterAll articles

Collections

Inference EnginesHow an LLM Request Becomes TokensLLMs, ExplainedThe GPU for Inference EngineersQuantization in PracticeServing in Production

Links

RSS Feed

Legal

Privacy PolicyTerms of ServiceCookie Policy
© 2026 The Serving Stack. All rights reserved.