03 · Spend inference compute
Choose two inspections before the shift ends, then measure what extra model samples buy when an exact solver and a strict verifier can check the result.
- Part 1
- Measure the model
- Model
Qwen2.5-1.5B-Instruct- Data
- Synthetic facilities helpdesk
- Hardware
- Tesla T4 and CPU, in Google Colab
Which two inspections fit before handover?
You’re the north-yard operator. On the synthetic Facilities Helpdesk board, five inspections are waiting, including the ventilation fan you looked up in Lesson 01. You have 28 minutes left. Pick exactly two assets from the board and earn as much total priority as you can. The two highest-priority cards take 29 minutes together, so choosing them would carry an inspection past handover.
F-250 · Ventilation fanNorth-yard Facilities Inspection Board
Pick two assets before the shift ends.
| Asset | Minutes | Priority |
|---|---|---|
| F-250 | 15 | 14 |
| V-200 | 14 | 10 |
| P-210 | 11 | 6 |
| F-220 | 7 | 4 |
| V-230 | 7 | 2 |
Change one fact. Start with 28 minutes left. Then give the operator 29 minutes with the same five inspection cards. Which pair would you submit for each shift?
Check which pair fits
28 minutes left. F-250 + P-210 takes 26 minutes and earns 20 priority points.
29 minutes left. F-250 + V-200 takes 29 minutes and earns 24 priority points.
At 28 minutes, fitting the two highest-priority cards would require one more minute.
More tokens bought no strict wins on these orders
Strict optimum rate versus mean token proxy per work order. Vote and Verify share a point at each matched budget.
1Give each selector the same proposals
If two methods see different options, a better result might come from a better candidate rather than a better selector. Hold the options fixed when the experiment asks which selector is better.
For each order, the notebook sends Qwen the eligible assets, durations and priorities. It asks for a bare JSON array of two asset IDs. Greedy decodes one reply. At each larger sample count, Vote chooses the most frequent parsed pair, breaking ties by the earliest tied ballot. Verify chooses the highest-priority feasible parsed pair and returns an empty selection if none is feasible. Vote and Verify receive the same raw replies at their matched count.
OpenAI’s 2024 International Olympiad in Informatics evaluation used a fixed 50-submission cap per problem. The company reported 213 points for its selection strategy and estimated 156 points on average under random selection. That estimated comparator illustrates why comparisons should hold the allowance fixed and name how each selection result was obtained. Here the two selectors share the same generated batch. OpenAI, coding evaluation
The parser calls Python’s JSON decoder on the whole trimmed response. A decoding error produces an empty tuple. The next check confirms two distinct listed assets and tests whether their total duration fits. At 28 minutes, an exact grade also requires priority 20. If several feasible pairs reach the same best score, they can all pass.
# Parse the whole reply before checking the inspection constraints.
candidates = [parse_pair(answer) for answer in raw_candidates]
selected = choose_pair(order, candidates, policy)
verdict = grade_pair(order, selected, optimum)The exact solver checks every two-asset combination from the board. For order , let be the listed assets, be the minutes left, and let each asset have duration and priority . Its objective is
A pair passes if its two assets are distinct and eligible, its total duration fits, and its priority equals the optimum. DoorDash reported that its replacement dispatch optimiser matched its incumbent in more than 99% of comparison cases and that the differences involved equally good solutions. Its comparison illustrates why the helpdesk grades the constraints and objective and allows different optimal pairs. DoorDash Engineering, dispatch optimisation
Every measured batch reached selection with an empty set of usable pairs
Parsed proposals, grouped by sample count on the same 24 work orders
2| Samples | No feasible | Feasible only | Optimum present | Distinct pairs¹ |
|---|---|---|---|---|
| 1 | 24/24 | 0 | 0 | 0 |
| 2 | 24/24 | 0 | 0 | 0 |
| 4 | 24/24 | 0 | 0 | 0 |
¹ Median distinct parsed pairs per order.
A batch earns credit for candidate coverage when a parsed pair meets the constraint. Google DeepMind’s AlphaCode 2 generated programs, applied compilation and public-test checks, and clustered the survivors by behaviour before ranking submissions. Its technical report says filtering removed about 95% on average. Candidate count, usable diversity and selection are separate measurements in both designs. AlphaCode 2 technical report, pp. 2–4
Read the raw ballot and the returned decision
First, hold the sample count at four and compare the budgets. The four raw replies were identical at 28 and 29 minutes. Two contain F-250 and V-200. The pair exceeds the first budget and is optimal at the second, but the strict parser rejects both batches. As a separate format check, look at the two Verify · 2 replies at 28 minutes. Both contain the exact pair inside Markdown fences, and both still receive no_pair.
F250-tight · 28 minutes left · five listed assets
- Exact solver
- ["F-250", "P-210"] · 26 minutes · priority 20
- Greedy raw
- ```json ["F-250", "V-230"] ```
- Verify · 2 raw
- ```json ["F-250", "P-210"] ``` ```json ["F-250", "P-210"] ```
- Verify · 2 decision
- [] · no_pair
Both two-sample replies contained the exact optimum inside Markdown fences. The parser rejected the full strings before verification.
F250-tight and F250-loose · same five assets · 28 versus 29 minutes
- 28 min optimum
- ["F-250", "P-210"] · 26 minutes · priority 20
- 29 min optimum
- ["F-250", "V-200"] · 29 minutes · priority 24
- Both raw batches
- ```json ["F-250", "V-230"] ``` ```json ["F-250", "V-200"] ``` ```json ["F-250", "V-200"] ``` ```json ["F-250", "V-230"] ```
- Both decisions
- [] · no_pair
Verify · 4 received the same replies at both budgets. The F-250/V-200 pair becomes optimal with the extra minute. The strict parser passed no pair to the verifier in either case.
The exact solver was optimal across all six development slices
Recorded order outcomes and strict optima by anchor-ticket slice
3All 24 orders per policy
Recorded disposition
| Policy | Optimal | No pair |
|---|---|---|
| Exact solver | 24 | 0 |
| Greedy | 0 | 24 |
| Vote · 2 | 0 | 24 |
| Verify · 2 | 0 | 24 |
| Vote · 4 | 0 | 24 |
| Verify · 4 | 0 | 24 |
All model arms tied by slice
Strict optima / work orders, per arm
| Anchor slice | Exact solver | Each model arm |
|---|---|---|
| Manual | 4/4 | 0/4 |
| Numeric | 4/4 | 0/4 |
| Multi-source | 4/4 | 0/4 |
| Ambiguity | 4/4 | 0/4 |
| Boundary | 4/4 | 0/4 |
| Follow-up | 4/4 | 0/4 |
Every recorded policy failure occurred at the parse boundary. All 168 sampled replies ended after 19 tokens, below the 32-token cap, with a complete JSON array wrapped in Markdown. Removing the wrappers in an offline readback recovered all 168 arrays. The measured selectors passed each raw string directly to json.loads, which rejected the opening fence. The data establish zero usable model outputs under this contract. On the tight order, a human can recognise the optimum inside both two-sample replies. Vote and Verify work only with parsed pairs, so that distinction never reaches selection.
Each slice labels the work order by the category of its anchor ticket. The exact solver succeeded on all six slices. The model path returned empty selections on all six. The small groups describe this paired planning workload.
Download the raw proposals, selected pairs and receipts.
Separate response time from inspection time
The 28-minute constraint describes field work. The timing chart describes how long the desk took to select the work. The T4 measurement includes chat formatting, tokenisation, device transfer, generation and decoding, with CUDA synchronised at both ends. The scored model latency adds each selector’s CPU time to the corresponding generation receipt before taking a median. The exact solver’s CPU timing covers enumeration. Both exclude service queues and network waits.
CPU enumeration took 0.039 ms at the median
Generation and selection per measured order, with start-up broken out
4Set-up and repeated F-250 order
Same greedy input for first and warm generation, ms
| Stage | Wall time, ms |
|---|---|
| Model load | 20373.1 |
| First generation | 4403.1 |
| Warm repeat 1 | 1180.9 |
| Warm repeat 2 | 1668.7 |
All development orders
Median measured policy wall time, ms
| Policy | Median, ms |
|---|---|
| Exact solver | 0.039 |
| Greedy | 1194.2 |
| Vote · 2 | 1259.3 |
| Verify · 2 | 1259.3 |
| Vote · 4 | 1369.4 |
| Verify · 4 | 1369.4 |
The first F-250 generation took 4,403 ms. The two repeat timings were 1,181 and 1,669 ms after the same model load. Those three receipts describe the same input. The policy medians use the full post-warm-up development workload.
Count token work and GPU memory
One F-250 reply used a 160-token prompt and generated 19 tokens through the end marker. In a two-sample batch, each sequence conditions on that prompt. The proxy charges the prompt once per sequence and adds the actual generated lengths through the first end marker. For order with samples:
# Charge the input per sequence and count the output through its first EOS.
token_proxy = samples * prompt_tokens + sum(generated_lengths)
# Measure the batch peak above the allocation just before generating it.
extra_bytes = peak_bytes - idle_bytesThe proxy records token work. Accelerator batching can share work, so elapsed time scales differently. Peak CUDA allocation comes from PyTorch’s allocator. The idle allocation is the total peak minus the extra peak reported for the same request. External CUDA usage and reserved allocator blocks are outside this measurement.
Peak allocation above the idle level grew from 14.5 to 58.9 MiB
PyTorch CUDA allocated memory per generation batch, min / median / max in MiB
5| Samples | Total allocated, MiB | Above idle, MiB |
|---|---|---|
| 1 | 2967.0 / 2967.1 / 2967.1 | 14.5 / 14.5 / 14.5 |
| 2 | 2981.4 / 2981.6 / 2981.6 | 28.9 / 29.1 / 29.1 |
| 4 | 3011.1 / 3011.4 / 3011.4 | 58.6 / 58.9 / 58.9 |
Keep comparisons paired
Each candidate policy faces the same work orders as its comparator. The bootstrap resamples anchor equipment families and keeps both inspection budgets together. Assets recur across other shortlists, and all orders share a synthetic construction recipe. The interval describes sensitivity across these anchor families.
The exact solver gained 24 wins. The model selectors gained zero
Paired change in strict pass rate and family-bootstrap interval, percentage points
6| Candidate vs comparator | Change | 95% interval | Gained / lost |
|---|---|---|---|
| Exact solvervs Greedy | +100 | +100 to +100 | 24 / 0 |
| Vote · 2vs Greedy | 0 | 0 to 0 | 0 / 0 |
| Verify · 2vs Greedy | 0 | 0 to 0 | 0 / 0 |
| Vote · 4vs Greedy | 0 | 0 to 0 | 0 / 0 |
| Verify · 4vs Greedy | 0 | 0 to 0 | 0 / 0 |
| Verify · 2vs Vote · 2 | 0 | 0 to 0 | 0 / 0 |
| Verify · 4vs Vote · 4 | 0 | 0 to 0 | 0 / 0 |
The model intervals collapse to zero because the selections all failed. Dividing extra total proxy tokens by the change in the number of strict wins would require a positive denominator. Even Verify · 4, with 12,864 more proxy tokens than Greedy, added zero strict wins.
Snell and colleagues found that difficulty-aware allocation on their maths benchmark could approach verifier-guided best-of-N with a quarter of the generations in a low-budget comparison. They report that difficulty bins based on verifier predictions weakened the gains at higher budgets. On the inspection board an escalation policy first needs a proposal that the checker can read. Snell et al., §5.3 and Figure 4
What to keep
| Policy | Strict optima | Feasible returns | Median wall, ms | Mean proxy tokens | Proxy tokens per net added win vs Greedy |
|---|---|---|---|---|---|
| Exact solver | 24/24 | 24/24 | 0.039 | 0 | — |
| Greedy | 0/24 | 0/24 | 1,194.2 | 179 | — |
| Vote · 2 | 0/24 | 0/24 | 1,259.3 | 357 | — |
| Verify · 2 | 0/24 | 0/24 | 1,259.3 | 357 | — |
| Vote · 4 | 0/24 | 0/24 | 1,369.4 | 715 | — |
| Verify · 4 | 0/24 | 0/24 | 1,369.4 | 715 | — |
The five-card board has a tractable exact search and a complete structured priority list. Use the exact solver for this board. Inspect contract failures before adding samples, then measure parsed coverage separately from selection. If a future board adds travel, skills or many more inspection choices, repeat the exact-baseline comparison on that workload. For this benchmark the dash means the proxy-per-added-win ratio is undefined for the model policies or outside the model-token comparison for the CPU reference.
How it was built
| Item | Setting |
|---|---|
| Dataset | Synthetic Facilities Helpdesk development split, 120 source tickets in 12 equipment families. SHA-256 51dbc208b6b20a620237dd76ce0a2db4f10aa75f4f8fc404121e301b8d79a0cf. |
| Orders | 24 orders, two budgets per anchor family. Five same-yard assets per order. Six source slices. The release split stays sealed. |
| Model | Qwen/Qwen2.5-1.5B-Instruct, revision 989aa7980e4cf806f80c7fef2b1adb7bc71aa306. Inference only. |
| Sampling | One greedy sequence or two or four sampled sequences. Temperature 0.65, top-p 0.9 for sampling, up to 32 new tokens per sequence. |
| Grade | Bare JSON array, two distinct listed assets, fit within the order’s budget and reach the exact optimum. Model target at least 90% strict. |
| Pairing | 1,500 bootstrap draws over anchor equipment families, 95% percentile interval. |
| Runtime | Colab Tesla T4 with CUDA 13.0. Python 3.13.16, PyTorch 2.14.1+cu130, Transformers 4.51.3. |
Time and cost. The queue receipt recorded 152.5 seconds from runner start to completion. The workload timer after shared environment setup recorded 127.8 seconds, including the 20.4-second model load. The measured token proxy and GPU memory describe compute. Billing and live service latency were outside the measurement. Scorecard and timings · Runtime receipt
Run it yourself
Download the executed T4 notebook and inspect its recorded outputs. The opening work list corresponds to the board above. Keep selection and grading independent defines the solver and verifier. Measure the token and wall-time budget records the receipts. Choose a development budget compares all six arms.
Next to try, not tested here
- First predict the best pair when you take one minute away from
F250-loose. Then change only that order’s budget and compare the exact and selected pairs inrecords.policies. - Predict which F-250 replies would parse if you unwrap only a single complete Markdown fence. Replay the recorded strings through a separately labelled parser variant. Check strict optima and over-budget pairs before changing the generation budget.
- Predict whether trying more samples at the same temperature will buy useful diversity after the format is controlled. Hold the requests and parser fixed and inspect distinct parsed pairs, optimal-candidate coverage and peak allocation in
summary.candidate_batches.
Next, ingest documents with layout to make reliable structured inputs available to the desk.
How is this page?
Last updated on