infercrane proof compare runs InferCrane’s proof on two OpenAI-compatible endpoints you already
run: your current setup and a new one. The new setup can be anything a server can serve: an engine
flag, a newer engine release, a quantized checkpoint, a custom kernel, or a checkpoint trained
elsewhere. It runs on this machine. It needs no InferCrane account, no sign-in, and no control
plane, and it starts nothing on your GPUs.
The speed part needs AIPerf exactly 0.12.0 on this
machine. A plain
pip install aiperf installs a newer version, which the command refuses.
Install the pinned one with pip install aiperf==0.12.0 or
uv tool install --python 3.12 aiperf==0.12.0 (AIPerf 0.12.0 needs Python 3.11 to 3.13).
--skip-speed checks answers alone without AIPerf. See What you need.What it does
The same code an optimization run uses, called on your URLs instead of on servers InferCrane started:- Asks each server what it serves.
GET /v1/models, and the engine version where the server reports one (GET /versionon vLLM). Each answer is recorded as the server reported it. - Measures them side by side. After a warm-up of each, AIPerf runs the current setup, then the
new setup, then the current setup again, and so on: four runs of the new setup, each between two
runs of the current one (
--pairs), every run with its own seed. The run’s judge reads the window: each run of the new setup against the mean of the two runs around it, with a 95% interval that always allows 0.75% for two servers differing. A failed run, or current-setup runs that drift more than 15% apart, void the window. - Applies the guards. A new setup whose answers are more than 5% shorter is blocked, whatever
it gained: shorter answers finish sooner. A limit you set (
--ttft-limit-ms,--tpot-limit-ms) that the new setup’s p95 misses blocks it too. - Checks the answers. Both servers answer the eval set with greedy decoding. Without
--eval-setit is the built-in prompts, scored by agreement with the current setup’s answers (PASSfor a drop up to 5%,WATCHto 10%,BLOCKabove). A task set is scored right or wrong on each item and compared item by item. With--changes-answers(other weights or precision), the new setup passes only when its answers are shown to hold within 1 point. - Gives a verdict by rules fixed before anything was measured. The document records the rules and their digest.
The verdict
Unknown never passes, and a measured regression outranks unknown. The objective is output
throughput unless
--objective names another measured metric: ttft_p95_ms, tpot_p95_ms,
latency_p95_ms, request_throughput, goodput, or useful_output_throughput.
Measure how far two servers differ
Two servers of one setup do not run at exactly the same speed. With long prompts the difference has been under 1%; with short prompts at high load, 3% to 15%. Start a second server of your current setup and pass it as--copy:
--require-copy refuses to run without one.
A new checkpoint or precision
For a setup that serves other weights or another precision, a quantized checkpoint or a checkpoint trained elsewhere, pass--changes-answers with a task set. The repository ships two ready ones in
examples/evaluation:
gsm8k-mmlu-1000.task-set.json, 500 GSM8K math problems and 500 MMLU multiple-choice questions
(both MIT; sources and licences in that folder’s README), and gsm8k-mmlu-200.task-set.json, its
first 200 items for a quicker first run. Each item asks for worked answers of up to 1,024 tokens, so
a run takes longer than the built-in check. Download one and pass it:
llama-server processes, each started with the same
--alias:
UNKNOWN, never a pass.
--divergence also reads the KL divergence
of the new setup’s next-token distribution from the current setup’s. It is evidence and decides
nothing. It is read only when both endpoints serve the same model name, because only then are they
known to read text with the same tokenizer; otherwise the document says it is unknown and why. Build
a task set from your own requests with
infercrane evaluation set build.
What a proof on your endpoints cannot control
An optimization run starts each setup on a fresh server of its own and measures a gain again on new servers before it counts. A proof on servers you run cannot do either. Every document lists what it could not control, in a section the text output prints too:- Each setup on its own server is your declaration. The command refuses two URLs that name the same host and port, but one URL can front a shared server or several replicas.
- Hardware behind each URL is not observed.
- What the new setup changes is your declaration: engine flags, image, and weights are not read.
- Fresh servers are not measured: each server is measured once.
- Other traffic on the servers is not excluded beyond the 15% drift check.
- Latency includes the network path from this machine.
- Cost is not measured, so the document states no cost and no saving.
- The machine difference is not measured without
--copy.
attestation is self_measured: InferCrane’s code measured on your machine, against
servers you started, signed with your key. The signature shows the document was not changed after it
was signed. It does not show an independent measurement.
The document
--out FILE writes the document as JSON, and --output json prints it.
It never holds an API key, a prompt, or an answer: answers are compared in memory and the document
keeps scores and a digest of them. It holds:
infercrane proof verify FILE recomputes the digest from the file’s bytes and checks the signature,
offline. --public-key KEY also checks that a key you trust signed it; the signature carries the
signer’s public key. Whitespace does not matter; any other change fails.
What you need
- Two OpenAI-compatible servers (vLLM, SGLang, llama.cpp’s
llama-server, Ollama, or another server with/v1/chat/completions) that you run, each serving its setup. - AIPerf 0.12.0 on this machine, as
aiperfor named by--aiperf, for the speed part. Install exactly that version withpip install aiperf==0.12.0oruv tool install --python 3.12 aiperf==0.12.0(Python 3.11 to 3.13); a plainpip install aiperfgets a newer one, which the command refuses.--skip-speedchecks answers alone, and the verdict is thenUNKNOWN. - A key both servers accept in a variable named by
--api-key-env, or one per server with--baseline-key-envand--candidate-key-env. Keys go to the servers only.
--run-timeout (15 minutes); a run that does not finish voids the
window.
Next
- Semantic quality evidence: eval sets, task sets, and the divergence
- How a run measures setups
- Proof Report: the document of runs InferCrane measured on servers it started