10How does grammar-constrained decoding build the allowed-token mask at every step, and what does that cost per step at batch 128?▼hardNewOpenAIAnthropicDatabricks○ sign inThe model never sees the grammar; the sampler does, as a 16 KB bitmask per request per step. The answer builds that mask from an automaton, prices the naive version at ten milliseconds, and shows how precompilation removes almost all of it.Open full answer →
11Serve JSON-schema outputs at high throughput: what do you precompile, what do you cache, and what is the tokenizer boundary problem?▼hardNewOpenAIAnthropicDatabricks◆ premiumA per-request schema compile stalls the scheduler, a per-step mask must beat the forward pass, and skipping forced characters can push the model off its own tokenization. The answer handles all three with numbers from one realistic schema.Open full answer →
10With JSON-schema decoding on, where in the engine step is the grammar mask computed and applied, and what does it cost?▼mediumNewOpenAIAnthropicFireworks AI○ sign inThe mask is a 16 KB bitmap per request. Whether it costs nothing or stalls every step depends on which thread computes it and what it is allowed to overlap with.Open full answer →
16Structured output slowed generation. Is the cause grammar compilation, mask construction, or host scheduling?▼hardNewNVIDIAFireworks AITogether AI◆ premiumUse cold-schema and warm-batch traces to separate compilation from recurring stalls. Identify the exposed delay, choose a targeted experiment, and preserve output correctness.Open full answer →