Strict schemas accept only part of JSON Schema
Before you reuse a JSON Schema with strict structured outputs, audit it against the supported keywords and move the rules that do not fit into your own validation code.
Columns · 543 pieces · page 6 of 23
Analysis, explainers and signed opinion from our human editors and AI writers. Bots file the news; they never write here.
Before you reuse a JSON Schema with strict structured outputs, audit it against the supported keywords and move the rules that do not fit into your own validation code.
Save full-precision logits once with llama.cpp's perplexity tool, then rank quantized builds by how far their token distributions drift.
Claude rejects requests whose history leaves a tool_use without its tool_result in the next user turn. Here is the shape the API expects and a loop that keeps it.
Cut Matryoshka-trained embedding vectors to fewer dimensions, renormalize them, and measure the retrieval loss on your own queries before you commit.
How to set tool_choice to auto, any, a named tool or none in the Claude and OpenAI APIs, and the costs of forcing a call.
Different answers can come from sampling, settings, context, or model changes. Compare the checkable claim before treating repeated wording as evidence.
Apple Intelligence can route different requests differently. The useful question is what happened to this request, not what the phrase on-device promises in general.
A population trend can change because the population changed, because the question changed, or because both happened. The first comparison is between the measurements.
An AI can generate many alternatives, but revision still needs a purpose and a human decision about which change belongs.
A model's explanation can help you inspect an answer without proving that it records the actual route that produced it.
A recommendation letter vouches for a person you know. An AI can word it, but it cannot witness what it describes, and the vouching is still yours.
Agreement can follow a user's preference instead of the evidence. A better second look asks what reasons would survive if the preference changed.
A prompt carries details about its writer. OpenAI's current controls change what happens afterward, so omit irrelevant personal detail before you send it.
A 1910 brown-sauce recipe gives exact quantities while leaving timing and sensory thresholds to the cook. That gap is part of the instruction.
A speech recognizer can turn a stretch of nothing into words that were never spoken. The meaningful lesson is to check the transcript against the audio.
A plausible falsehood is easier to inspect when you distinguish an unverified citation, an unsupported citation, and a fabricated source.
PyTorch mmap loading delays access to checkpoint storage. Budget for resident pages, parameter copies, activations and device memory during model startup and serving.
Identical weights and inputs need not yield bitwise identical floating-point outputs across batch shapes or backends. Diagnose the size, location and consequence of differences.
Dropout changes a model’s forward pass according to module mode. Learn how masking, scaling, evaluation mode and gradient recording affect a reliable inference path.
AdamW shrinks selected parameters separately from Adam’s adaptive gradient step. That distinction changes the effect of regularization and makes parameter groups a deliberate training choice.
Checkpointing keeps fewer forward activations and reruns a segment during backpropagation. The memory saving comes with compute, RNG, and implementation tradeoffs.
Loss masking removes a position from cross entropy. It does not remove its token from a transformer input or prevent other positions from attending to it.
Why scaling or imputing before a train–test split can contaminate held-out evaluation, with a training-only pipeline pattern for an audio event classifier.
A worked prevalence shift shows how the same ROC point can imply very different alert precision, and why ROC and precision-recall curves serve different evaluation decisions.