Skip to main content
An optimization technique is anything that changes how a model is served: an engine option, a draft trained on your traffic, speculation that changes with load, or a kernel config tuned to your shapes. Every technique plugs in the same way. It declares what it needs and what it does, and then proposes candidate setups. It never measures them. The screen and the judge measure every candidate the same way, so a technique earns nothing by being one. The contract is public and versioned, so a technique can be added, and a result read, without InferCrane’s hosted control plane: The Go types are in internal/technique. Its tests check that the schemas and the Go validation accept and refuse the same documents.

The manifest

A trained draft

Candidates

A technique in Go implements technique.Technique: Manifest(), and Candidates(ctx, setup), which returns the setups it proposes for a starting setup, or a reason it proposes none. The starting setup carries:
  • the model, engine and accelerator;
  • the engine flags and environment;
  • the diagnosis’s readings;
  • the load bands to judge at;
  • the run’s goal: objective, for example useful-output, and first_token_limit_ms, the first-token limit that goal counts output within.
A technique proven for one goal proposes nothing for another. The setup never carries a prompt or an answer. A technique.Registry asks every technique whose requires the setup meets, and holds each candidate to its manifest. A candidate:
  • names its technique and version;
  • carries the manifest’s changes_answers;
  • names its artifact by ID, kind, and sha256: digest exactly when the manifest declares one;
  • holds bands, increasing up to an open last band (up_to 0), exactly when the policy is adaptive, with at least two bands;
  • predicts, if at all, in the manifest’s metric;
  • has a label and a reason;
  • names, if the technique changes the engine itself, the engine image. That is an OCI reference pinned by @sha256: digest, the command that starts it, and optionally an identity saying what the image is made of. The setup never runs on another image.
A candidate that breaks any of these is refused, and the run does not start.

How a technique’s setups reach a proposal

The optimizer asks the registry once per proposal and turns every setup a technique offers into a candidate the same way:
  • the starting setup with the setup’s flags and environment, and the artifact it serves (a tuned kernel set travels with the deployment as runtime.kernel_configs; a trained draft is named in its flags);
  • source technique-contract, with the technique’s id@version, and the same in a technique feature;
  • the required evidence: a paired measurement against the starting setup, the task score when the technique changes_answers, and one line for each name in the manifest’s evidence.
The starting setup the registry sees carries the model features the pinned config.json declares. Each technique package reads its own: native_mtp for the model’s prediction head, and fused_moe_fp8_block (kernel tuning) for MoE layers on the engine’s block-FP8 fused-MoE kernel. A tuned block-FP8 set also counts as that feature, because it was built from the model’s own MoE shape. Whether and where a setup is measured stays the diagnosis’s decision for a technique a rule can choose: a trained draft is measured beside the other speculation the rules chose. A technique no rule chooses, such as kernels tuned for your shapes, is measured after the rules’ choices, within the requested number of setups; a setup that does not fit adds a warning instead. Planner names equal manifest IDs: trained-draft, tuned-moe-kernels, adaptive-speculation. Proposals stored under the earlier names speculative-trained-draft and tuned-kernels still validate.

In a run and its report

A campaign candidate made by a contract technique carries a technique object, and so does its row in the run’s report:
  • the manifest’s id, version, label, relieves, costs, changes_answers, its evidence names as required_evidence, its fallback, and the artifact (kind, digest, where it builds, whether the build reads your content);
  • result: the campaign’s own measurement as a result record, once the setup is measured:
    • the GPU and engine;
    • the served image’s digest;
    • the traffic shape and load;
    • the precision read from the setup’s flags;
    • the baseline (interleaved, or interleaved+fresh-servers when the gain was measured again);
    • the deciding quality check;
    • the objective’s comparison;
    • the serving command;
  • claim (shown or not shown) and unknown, the fields and evidence names a shown claim still needs.
A first-window gain counts only when the fresh-server window measured one too, and then at the smaller of the two changes against the larger noise floor. That window’s record is the result’s fresh-machine-confirmation evidence. The claim is judged against the technique’s own manifest, so a record that leaves out a required evidence name is still “not shown”. A run records no kernel invocation proof or draft acceptance yet, so those techniques’ claims say which evidence is missing.

Static techniques

Planned, not shipped: static techniques follow the launch. A static file will name a reviewed capability (a mechanism and its parameters, internal/optimizationcapability) instead of raw flags, so its flags come from the capability compiler and the reviewed engine argument list. A capability not yet qualified for the pinned engine lists the technique without measuring it. Today suffix decoding, the attention backend, and a host KV tier are all in that state for vLLM 0.34.0. The format below is the current schema. An engine option needs no code. A static technique file is a manifest and up to 16 fixed changes: flags to set (replacing the starting setup’s own value in place) and flags to remove. It builds no artifact and serves one setup at every load. A change the starting setup already makes is skipped.
Suffix decoding as a file

The result record

Every measured candidate produces one record per load. It carries the five fields a performance number needs, and what it takes to reproduce it: A record is shown only when every field is present, every evidence item the technique requires is carried, answers held (verdict passed), the decision is improved, and the change is larger than a measured noise floor above zero. Every record also needs fresh-machine-confirmation: the digest of a second window on a fresh machine that measured the gain again. A gain from one machine and one run is not shown, whatever the technique’s manifest says, and unknown names evidence.fresh-machine-confirmation. The evidence is checked against the technique’s own manifest, not only the list the record copied, so a record cannot drop a requirement. The noise comes from the same machine or a copy of the current setup, never a constant. Anything less is not shown, and Unknown() names the missing fields. Nothing in a record is a claim until it is shown.