Your first proof, in ten minutes
Can an open model on your own machine take over the work you send to a closed one?
This page follows one real run from start to finish, on an M4 Max with 128 GB, on 2026-11-03. The incumbent is gpt-4o-mini. The candidate is Qwen3 30B-A3B, served locally. Every block below is that run’s real output. Each stage has its own page with the mechanism and the knobs.
1. See what fits
Section titled “1. See what fits”onpar fit --context 32k --concurrency 8 sizes every catalogue model on this
machine. Qwen3 30B-A3B fits at q8 with 39.8 GB to spare, and it is the only
mixture-of-experts model that fits. See ten seconds to a fit for the
run and how to read it.
2. Capture real traffic
Section titled “2. Capture real traffic”onpar observe puts the gateway between the client and the provider. The only
change on the client side is the base URL.
$ onpar observe --upstream https://api.openai.com/v1 --port 8788
In your request path from now until Ctrl-C, and not after (ADR-0015). capture ~/.onpar/captures.log (key: ~/.onpar/capture.key) upstream https://api.openai.com/v1 listening http://127.0.0.1:8788 point your base_url at http://127.0.0.1:8788/v1 and nothing else changes.
# recorded 2026-11-02 on M4 Max · 128 GB · onpar 1.4.0 (pasted from the owner's terminal; the runner cannot record a foreground process)The traffic came from tools/story_traffic.py, an ordinary OpenAI-style client
that sends four kinds of work a small support product sends: ticket
classification, invoice line items as JSON, one-line summaries and arithmetic
checks. It also runs a refund agent that calls lookup_order and then
refund. Prompts are redacted before they touch disk, and nothing leaves the
machine. See observe.
3. Turn it into an eval set
Section titled “3. Turn it into an eval set”onpar distill groups the captures into task shapes and samples each one.
$ onpar distill --out evalset.json
197 captures → 7 task shapes → 197 eval items
1 capture(s) were upstream errors (empty reply, no usage) and are not in the eval set — an error is not the incumbent's answer
12 agent sessions · 36 steps (18% of captures) · avg 3.0 steps, longest 3 24 steps called a tool ~56% of prompt tokens were a re-sent prefix — a prefix cache would skip at least that (estimate from reported prompt sizes, lower bound) plan for it: onpar build --prefix-sharing 0.56 --tool-calling --structured-output (turns on prefix reuse — vLLM --enable-prefix-caching, SGLang's radix cache — and sizes KV for it; --tool-calling emits the engine's tool-call parser for the model, so calls come back as calls rather than text; --structured-output asks the engine to enforce response_format, and the plan lists it under NOT EXPRESSED where the engine cannot; onpar advise --seen-prefix-sharing 0.56 checks a running plan against it)
free text · <=1k context #1 40 sampled 20.3% of traffic free text · <=1k context #2 40 sampled 20.3% of traffic free text · <=1k context #3 40 sampled 20.3% of traffic structured JSON · <=1k context 40 sampled 20.3% of traffic tool-calling (2 tools) · empty response · <=1k context 24 sampled 12.2% of traffic tools offered, unused · free text · <=1k context 12 sampled 6.1% of traffic free text · <=1k context #4 1 sampled 0.5% of traffic
wrote evalset.json next: onpar prove evalset.json --candidate-endpoint <url> --candidate <model> (the endpoint is required — without it every candidate answer in this file is blank)
# recorded 2026-11-03 on M4 Max · 128 GB · onpar 1.5.2Seven shapes, 12 agent sessions, and an estimate that about 56% of prompt tokens were a re-sent prefix. One capture was an upstream error and is not in the set. See distill.
4. Serve the candidate
Section titled “4. Serve the candidate”The eval set has a structured-JSON shape, so the candidate is served with
onpar run qwen3-30b-a3b --structured-output. On this machine that picks
llama.cpp, because it enforces response_format with a grammar and
mlx_lm.server cannot. It writes the native llama-server command and starts
it, here on port 8001 because 8000 was already taken. Thinking is off by default
for Qwen3, so short answers do not run out of tokens mid-thought. See
serve for the dry run and the settings.
5. Prove it, per task
Section titled “5. Prove it, per task”onpar prove replays every item against the candidate and grades each reply
against what gpt-4o-mini said.
$ onpar prove evalset.json --candidate-endpoint http://127.0.0.1:8001/v1 --candidate qwen3-30b-a3b --candidate-model Qwen/Qwen3-30B-A3B-GGUF:Q8_0 --incumbent gpt-4o-mini --replay-sessions --collect-workers 4 --resume ~/.onpar/story --out receipt.json
candidate: 197/197 replies
COLLECTED candidate 197/197 replies · http://127.0.0.1:8001/v1 · served: Qwen/Qwen3-30B-A3B-GGUF:Q8_0 · 0.00s · 5,119 completion tokens
tools offered, u free text · <=1k tool-calling (2 free text · <=1k free text · <=1k free text · <=1k structured JSON (6%) (20%) (12%) (20%) (20%) (1%) (20%)----------------------------------------------------------------------------------------------------------------------------------------------------qwen3-30b-a3b 100% [76–100] 92% [80–97] 100% [76–100] 86% [72–94] 100% [88–100] 100% [21–100] ⚠ 100% [91–100] 96% [90–97] weighted----------------------------------------------------------------------------------------------------------------------------------------------------gpt-4o-mini (incumbent) 100% 100% 100% 100% 100% 100% 100%
weighted verdict 96% [90–97] — Jeffreys posterior simulation, 2000 draws, seed 20260728 per-cluster cells above are Wilson score intervals, 95%; the weighted figure is a sum of proportions, which Wilson does not covermultiplicity: 7 clusters scored against the same 90% bar; the intervals above are UNADJUSTED. Under Bonferroni (α=0.05/7, z=2.69), 0 of the 1 that clear it would still clear it.to settle the open clusters: · tools offered, unused · free text · <=1k context: needs 35 graded items to clear the 90% bar at its observed 100% (has 12, 23 to go) · free text · <=1k context #1: needs 525 graded items to clear the 90% bar at its observed 92% (has 40, 485 to go) · tool-calling (2 tools) · empty response · <=1k context: needs 35 graded items to clear the 90% bar at its observed 100% (has 12, 23 to go) · free text · <=1k context #2: 86% [72–94] — the observed rate is at or below the 90% bar; more items will not clear it · free text · <=1k context #3: needs 35 graded items to clear the 90% bar at its observed 100% (has 29, 6 to go) · free text · <=1k context #4: needs 35 graded items to clear the 90% bar at its observed 100% (has 1, 34 to go)
judge: not used — verdicts are from deterministic graders only
AGENTIC — did the candidate make the same moves? decision agreement 100% [90–100] over 36 tool-context steps · κ=1.00 (almost perfect), chance-corrected per tool, how often the candidate also called it: lookup_order 100% [76–100] of 12 refund 100% [76–100] of 12⚠ underpowered clusters (too few samples to conclude): free text · <=1k context #4⚠ 26 duplicate prompt(s) collapsed — tool-calling (2 tools) · empty response · <=1k context (12), free text · <=1k context #2 (3), free text · <=1k context #3 (11). A prompt repeated within a cluster is one observation asked twice, and every interval here assumes independent ones, so the copies are merged rather than counted. An item passes only if every copy of it passed.
Move 20% of traffic to qwen3-30b-a3b. Not yet proven: tools offered, unused · free text · <=1k context, free text · <=1k context #1, tool-calling (2 tools) · empty response · <=1k context, free text · <=1k context #2, free text · <=1k context #3, free text · <=1k context #4 → tools offered, unused · free text · <=1k context: needs 35 graded items to clear the 90% bar at its observed 100% (has 12, 23 to go) → free text · <=1k context #1: needs 525 graded items to clear the 90% bar at its observed 92% (has 40, 485 to go) → tool-calling (2 tools) · empty response · <=1k context: needs 35 graded items to clear the 90% bar at its observed 100% (has 12, 23 to go) → free text · <=1k context #2: 86% [72–94] — the observed rate is at or below the 90% bar; more items will not clear it → free text · <=1k context #3: needs 35 graded items to clear the 90% bar at its observed 100% (has 29, 6 to go) → free text · <=1k context #4: needs 35 graded items to clear the 90% bar at its observed 100% (has 1, 34 to go) Saving: unknown — no cost rate configured; pass --incumbent-cost and --candidate-cost
SESSION REPLAY — the whole loop, tool results answered from the recording 12/12 sessions followed the incumbent's path to the end · 100% [76–100] · 36/36 steps completed A different route to the same outcome counts as diverged — this measures whether the candidate takes the incumbent's path, not whether it would succeed.
receipt written to receipt.json
# recorded 2026-11-03 on M4 Max · 128 GB · onpar 1.5.2The verdict is Move 20% of traffic. Structured JSON is proven: 100% [91–100]
over 40 items, every reply the JSON object the request asked for, because the
server enforced it. The agent work looks perfect: 100% decision agreement over
36 steps and 12 of 12 sessions to the end. Perfect over 12 items is still a
lower bound of 76%, so it is not proven yet. Nor are the free-text shapes. See
prove.
6. Keep the receipt, and the gate
Section titled “6. Keep the receipt, and the gate”onpar prove --out receipt.json wrote a receipt that prints what is not
proven before what is, and verifies by digest. onpar guard receipt.json says
it still holds. onpar migrate --step ran one pass and held in shadow, waiting
on a shape with one item. See the receipt,
migrate and guard.
What the owner does next
Section titled “What the owner does next”The proof says what evidence is missing, so the next steps are specific:
- Collect more items where the rate is already good. Three shapes scored 100% with 12, 12 and 29 items, and a fourth with one. Each needs 35 to clear the bar.
- Add a judge for free text, and check it. Free text #1 scored 92% and
needs 525 items to clear the bar by deterministic grading alone. This run tried
the cheapest judge there is, the candidate’s own server, and it preferred
whichever reply it was shown first in every case it did not call a tie. The
swap check caught all of it and counted nothing, so the cells did not move.
A judge that can decide these items is a different model, checked by a human
with
onpar label. The prove page has the run. - Decide free text #2. It scored 86% [72–94] over 37 items, and the report says more items will not clear a 90% bar at that rate. That shape stays on the incumbent until a judge, a different candidate or a different bar changes the answer.
Next: observe, the first stage of the loop on your own traffic.