Repository navigation
Served certified-head benchmark (H4): small-batch gains, envelope losses; identical to stock at c = 1 and in check mode, and for MTP under identical batches; the MTP c = 64 divergence sits at a position where stock's BF16 decode path errs against FP32 - #190
Conversation
Declares the before-and-after test of the certified LM head on the served engine (kernel patches 0001-0010): four families (plain-tuned, mtp-tuned-triton, dflash-tuned-b16, dflash-tuned), each pair stock against the same arm with SGLANG_CERTIFIED_HEAD_* (column fallback, conservative model, MAX_ROWS=64), three sessions in four exclusive holds, DFlash pairs pinned at 60,000 KV tokens, the decision rule, exactness tests (check mode, c=1 identity, divergence rates against the stock floor, re-scored classes) and the derived predictions. bench.sweep gains two opt-in flags: --return-token-ids (prompt and output token ids in the sglext chunk) and --snapshot-file (copy a file before and after each point). Hooks run in the next CPU window; committed without them because a timed hold is running.
…evision) Red-team review of the pre-registration, before any timed run: - B1: one primary point per family (plain c=1, MTP c=1, DFlash b16 c=1, b8 c=4) decides the family verdicts and H4, Holm-adjusted across the four; every other point is descriptive, and the gated-off points are reported as gate overhead. - B2: tokens are compared whenever the outputs are complete and the launch ran its declared configuration, whatever the timing validity; exactness is established only on positive evidence (check mode clean, c=1 identity) and fails only on a difference; a missing or failed check launch is incomplete. - Points without a running-batch or foreign-load record are invalid; pairs compare captured graph sizes; pairs report accept-length and cycle-rate ratios and foreign load per arm; the order diagnostic (s2 against s1, s3). - README: 22 points, the worst-case KV need, power, the start-up failure rule, no changes after h1 starts, truncated timed counters.
…caveats (pre-run revision)
…ry wave control (not declared)
…primary points in the ratio figure
…atory, not declared)
…s loudly on a missing token; rescore-only mode
…ches, re-score, wave controls)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a88f7052f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # launches once per 25-90 s of decoding (two to five calls per step or cycle), in | ||
| # check launches often enough that a point's snapshot lags it by at most 25 calls. | ||
| TIMED_STATS_EVERY = 20000 | ||
| CHECK_STATS_EVERY = 25 |
There was a problem hiding this comment.
Flush check counters before declaring exactness
With CHECK_STATS_EVERY set to 25, the engine writes its cumulative check counters only on every 25th glue call, while bench/sweep.py copies the file immediately after each point and never requests a final flush. Consequently, calls after the last write—especially the tail of each check launch's largest tested shape—are absent from check.csv; a mismatch confined to those calls would still make check_counters() return True and support the headline exactness verdict. Check launches need a forced final dump or per-call writes before their snapshots are treated as complete.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 09616ca. Check launches now write the certified-head counters on every glue call (CHECK_STATS_EVERY = 1). check_counters() also requires the device counters to cover every certified replay the host gated: uncounted_calls = host certified gates x calls per gate - device calls, which must be 0 at every point, or the family's check verdict is incomplete, not passed. Tests: test_check_counters_need_every_certified_call_counted, test_settling_controls. The check launches of all four families rerun as step check2 in the settling hold (hold_settle.sh, queued). Until it lands, the README scopes the claim to 0 differing rows among the 594,329 counted rows, with up to 24 uncounted calls per point; h1's counts stay in check.csv, labelled partial.
| out[path] = { | ||
| key: value - prior.get(key, 0) | ||
| for key, value in counters.items() | ||
| if isinstance(value, int) |
There was a problem hiding this comment.
Preserve high-water marks when computing snapshot deltas
stats_delta() subtracts every integer field as though it were a cumulative counter, but max_certified_rows is a high-water gauge. When the same maximum appears before and after a point, this reports zero rather than the batch size actually certified; the committed check.csv demonstrates the corruption with 42 of 43 max_certified_rows entries equal to zero. Handle gauges separately instead of subtracting them.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 09616ca. stats_delta() no longer subtracts max_certified_rows (a gauge). A point's largest certified batch now comes from the difference of the certified-rows histograms, and the host's certified gate count is reported beside the device counters. Test: test_stats_delta_treats_the_high_water_mark_as_a_gauge. check.csv is regenerated with the settling hold's evidence, after its rerun lands; the committed copy predates the fix, so its max_certified_rows column is invalid until then.
| if step == REPLACEMENT_SESSION: | ||
| raise ValueError('s4 launches are chosen by analyze.py replacement-plan') |
There was a problem hiding this comment.
Provide an execution path for replacement session s4
When any s1–s3 pair is invalid, the declared protocol requires s4, and analyze replacement only prints the affected families. However, run_session.py accepts only h1–h4 and this function explicitly rejects s4, so there is no supported way to execute the replacement pairs that the analysis already expects. Implement the selected s4 launch plan and expose it through the hold runner; otherwise a recoverable invalid session permanently leaves the experiment incomplete.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Scoped reply, no change in this PR: s4 was not needed. Every s1-s3 pair at every concurrency was valid (132 of 132 points, pairs.csv all counted), so analyze.py replacement selects no family and no s4 launch was due. The gap is real for any future campaign: plan.py has no s4 launch plan and run_session.py accepts only the named holds. If this harness is reused, s4 should become a hold built from replacement_families() (stock and cert pairs of those families, in session 1's order) before any timed run.
|
Red team at a88f705: the declared verdicts reproduce exactly, and the accepted B1/B2 items are in. One blocking item remains: the account of the single large divergence. The raw outputs show that it came from the certified run, and the README's explanation of it does not hold. What I checked
Blocking: the large event (MTP, c = 64, session 1) I traced its context (
So the odd token comes from the certified run. With the same 514-token prefix, two other certified sessions and two stock runs committed
Optional
|
|
Verdict: REQUEST CHANGES at a88f705 The declared analysis is right, and the envelope-first presentation, the losses, the gate overhead, the prediction misses and the hypothesis labelling are as main asked. Six items block, the first two of substance. What I recomputed
Blocking
Optional
|
…eteness (Codex P1); max_certified_rows as a gauge (Codex P2); settling hold with MTP waves of 64 and a logged replay; README names the certified run behind the wrong token
…sses from the measured points (reviewer 1)
|
@codex review |
…sv arrives with the regeneration
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Verdict: REQUEST CHANGES (head c3b4234) This is the final delta from cf3ffc9 to c3b4234 (abce5bd plus the red-team wording commit). The regeneration is clean, my five items at cf3ffc9 are fixed, and every new number I checked reproduces. Two blocking items remain. Both are about reporting a result in the terms of the reading set before its run, and both are wording fixes that need no new data. Regeneration (clean worktree at c3b4234, every output to scratch)
Order of the new holdsEach hold ran at a commit that already carried its reading:
f0c35da (14:40:13) is formatting, type annotations and a B023 refactor, and changes no behaviour (the old closure was called within the same loop iteration). The serial re-score is recorded as a dated amendment. It repairs the implementation to match the declared "at concurrency 1", so it is not a change of rule. My items at cf3ffc9
New numbers checked against the files
Blocking
Optional
Once items 1-2 are fixed (a README and body change), I'll check that delta. |
…4234) Drain rule under the serial reference: h6a 3 of 12 certified against 1 of 12 stock gross at 579ae7ce/439, so by the rule the event is not specific to the certified engine; the concurrent 1 of 12 against 0 of 12 is kept as the superseded first reading. Paths reading: FP32's paths agree within 0.0001 nats and side with the prefills, so the stock decode path carries the error (a stock-engine numerics fault), stated first, with 'ill-conditioned in BF16' as an interpretation. Numbers: 0.046 nats before the target, 0.0024 at a4db11ff/333, 8.6 nats; the per-arm FP32 comparison labelled post hoc.
|
@codex review |
|
Verdict: APPROVE (head 3d6d0b9; provisional on Codex, which is running on this head) This is a delta review of c3b4234..3d6d0b9: one commit, evidence README only, plus the PATCHed title and body. Both of my blocking items are fixed, and so are the four optional ones.
Nothing else changed since c3b4234, where I regenerated every evidence file byte for byte, ran 66 tests and checked the new numbers (issuecomment-5955533018). The hostname grep on the delta and the body is clean, and the commit is authored and committed by Samuel Mausberg with no attribution lines. This approval becomes final once Codex is clean on 3d6d0b9. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d6d0b9b04
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| entry['certified_steps'] += c['certified_steps'] | ||
| entry['stock_graph_steps'] += c['stock_graph_steps'] | ||
| entry['rows'] += c['rows'] | ||
| entry['max_rows'] = max(entry['max_rows'], c['max_rows']) | ||
| verify_steps = sum(v['certified_steps'] for v in by_size.get('verify', {}).values()) |
There was a problem hiding this comment.
Require device coverage for the seeded token rerun
When a per-wave snapshot has more host certified_steps than device calls, this aggregation discards calls and derives verify_steps solely from the host gate count. tokens_compare() can therefore report that the certified verify matched stock—and support the committed claim that all 3,708 verifies were certified—even when some gated replays are unaccounted for. Fresh evidence beyond the fixed check2 path is that this token-only seeded readout has an independent aggregation with no uncounted_calls check; aggregate device calls and require them to equal the host count before issuing that reading.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed: the reading should not rest on the host gate count alone. Fixed in 011aac2. tokens_compare now sums the device calls per path and wave size, computes uncounted calls against the family's calls_per_step, and returns its reading only when none are uncounted; otherwise it reports the run as incomplete. A test covers both cases.
The raw per-wave snapshots of the token-only rerun meet that condition. In all 20 wave passes (10 waves × 2), device calls equal host-gated certified steps on every path:
- verify 3,708 calls for 3,708 steps;
- draft 7,416 for 2 × 3,708;
- draft-extend 3,708 for 3,708.
control_seeded_tokens.json was regenerated with the fixed code (bc4b31e) and shows waves_uncounted_calls: 0 and per-size uncounted_calls: 0. The claim of 3,708 certified verifies stands.
…ed step (Codex) tokens_compare took the certified verify count from the host gate alone. It now sums the device calls per path and wave size, computes uncounted calls against calls_per_step, and gives its reading only when none are uncounted. Test covers both cases.
…nted 0 on every wave)
|
@codex review |
|
Verdict: APPROVE (head bc4b31e; provisional on Codex, which is running on this head) This is a delta review of 3d6d0b9..bc4b31e: two commits answering Codex P2 4167213657 (reply 4167234397).
Everything I verified at c3b4234 and 3d6d0b9 still holds. This approval becomes final once Codex is clean on bc4b31e. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc4b31e193
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| elif identical: | ||
| reading = "the certified verify decided the waves' verifies and matched stock" | ||
| else: | ||
| reading = 'certified verify mismatch under identical batch evolution' |
There was a problem hiding this comment.
Reject token readouts when the baseline is unstable
When either server produces different outputs across its two identical passes, the pre-set reading rule says the result must not be interpreted as a certified-head match or mismatch. Although baseline is computed above, this branch ignores it, so matching stock/cert outputs within each repetition can still yield “matched stock” even when repetition 0 differs from repetition 1; conversely, cross-arm differences can be mislabeled a certified mismatch despite nondeterministic baseline behavior. Check baseline before issuing either conclusive reading.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed. Fixed in a1ecb36. tokens_compare gives a match or mismatch reading only when both baselines hold: each server's two passes are identical (baseline_identical), and the token-only stock run equals the logprob stock run from another server (stock_runs_identical). Otherwise it reports "baseline failed" with no conclusion. A test covers an unstable stock pass.
The committed data meet both: baseline_identical: true and stock_runs_identical: true in the regenerated control_seeded_tokens.json (ae97aa4). The reading is unchanged.
| entry['uncounted_calls'] = ( | ||
| entry['certified_steps'] * per_step.get(path, 1) - entry['calls'] | ||
| ) | ||
| uncounted = sum(e['uncounted_calls'] for sizes in by_size.values() for e in sizes.values()) |
There was a problem hiding this comment.
Check every counter delta instead of their signed sum
Fresh evidence after the earlier device-coverage fix is that this aggregate sums signed uncounted_calls values before deciding completeness. If one path or wave size is missing a device call (+1) while another has an extra device call (-1), the total is zero and the readout can claim that the certified verify decided and matched even though both per-entry coverage checks failed. Treat any nonzero per-path/per-size delta as incomplete, as check_counters() already does.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed; a signed sum (or even a per-size total) could cancel. Fixed in a1ecb36. tokens_compare now checks coverage for every wave pass and path on its own, certified_steps × calls_per_step == calls, as check_counters does. Any nonzero entry is listed in waves_uncovered_entries and makes the reading "incomplete". A test covers a missing call on one path cancelling an extra one on another.
The committed data meet the stricter check: all 20 wave passes, on every path, have zero uncounted calls. control_seeded_tokens.json was regenerated in ae97aa4 with waves_uncovered_entries: [], and the reading is unchanged.
…lines (Codex) Coverage is checked for every wave pass and path on its own, so a missing call on one entry cannot cancel an extra one on another; and no match or mismatch reading is given unless each server's two passes are identical and the token-only stock run equals the logprob stock run. Tests cover the cancelling case and an unstable baseline.
…aselines; unchanged reading)
|
@codex review |
|
Verdict: APPROVE (head ae97aa4; provisional on Codex, which is running on this head) This is a delta review of bc4b31e..ae97aa4: two commits answering Codex P2s 4167277454 and 4167277448 (replies 4167299469 and 4167299681).
Everything I verified at c3b4234, 3d6d0b9 and bc4b31e still holds. This approval becomes final once Codex is clean on ae97aa4. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ae97aa4e41
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| elif identical: | ||
| reading = ( | ||
| 'certified verify rows over the server life (warm-up included); outputs equal stock' | ||
| ) |
There was a problem hiding this comment.
Withhold the counter reading when calls are uncounted
When any path has a nonzero uncounted_calls, this branch still issues the conclusive “certified verify rows … outputs equal stock” reading as long as some verify rows were counted. In that scenario the missing device calls may include wave verifies, so the observed rows cannot establish that the certified head decided every host-gated replay; gate the reading on uncounted_calls_zero and report it as incomplete otherwise.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed. Fixed in 2b0f0d1. stats_compare gives a reading only when every path has zero uncounted calls and both runs (the cert arm and the reference stock run) are identical across their two passes. Otherwise it reports "incomplete" or "baseline failed". Tests cover both cases.
I checked the rest of control_waves.py for the same gap. tokens_compare (per-entry coverage and both baselines, a1ecb36) and small_compare (within-server and stock-against-stock baselines) are gated the same way. The remaining comparisons report counts without a conclusion.
The committed counter-rerun data meet the condition: uncounted calls are 0 on verify, draft, draft-extend and the DFlash draft, and the passes are identical. control_seeded_stats.json was regenerated in this push with uncounted_calls_zero: true and passes_identical: true; the reading is unchanged.
…ounted call or unstable pass (Codex) stats_compare now requires zero uncounted calls on every path and identical passes in both the cert run and the reference stock run before it reads anything; otherwise it reports incomplete or baseline failed. With tokens_compare (per-entry coverage, both baselines) and small_compare (both baselines), every computed reading in control_waves.py is gated. Tests cover both new cases.
…th, passes identical; unchanged reading)
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Verdict: APPROVE (head 8453414; final, Codex clean on this head) This is a delta review of ae97aa4..8453414: two commits answering Codex P2 4167344058.
Everything I verified at c3b4234, 3d6d0b9, bc4b31e and ae97aa4 still holds, and Codex found no major issues on 8453414. Ready to merge on my side. |
Paper: fold the served certified head (#190), and lead with the contract and the served result
This is the served before-and-after test of H4: does the certified LM head improve the served latency-throughput frontier of the tuned arms without changing their outputs? Each family's tuned arm runs against the same arm with
SGLANG_CERTIFIED_HEAD_*set, on SGLang withengine/sglang/patches/kernel/0001-0010. The plan was pre-registered inexperiments/benchcert/README.md(pushed, reviewed by main and a red team, pinned before the first timed run). Results and commands are inevidence/certified_head/served/README.md.Result on the served envelope (measured)
For each concurrency, the table takes the confirmation frontier's best arm and gives its paired throughput ratio with the certified head: the geometric mean of three sessions, with a 95% interval.
dflash-tuned-b16dflash-tuned-b16dflash-tuned-b16dflash-tuneddflash-tuneddflash-tunedplain-tunedplain-tunedThe envelope rises only at c = 1. It falls at c = 2, 4, 8 and 128.
Declared verdicts
The verdicts come from one primary point per family, with Holm's adjustment across the four (
summary.json, regenerated after the check rerun):H4 is supported under the declared rule. Context for that verdict:
check.csv, stepcheck2). The predictions assumed plain decoding's rates. This mechanism is a hypothesis: no per-fallback timing or profile was taken.Exactness
MTP identity with stock is claimed at c = 1, in check mode and under identical batch evolution (the seeded control at batch 1, 8, 12 and 16, and the wave controls). Closed-loop outputs at c ≥ 8 can differ through batch evolution, as stock runs differ from each other across timings. The certified head's contract is identity with the stock engine's output for the same batch, and the stock engine is not FP32-exact at the one position below.
The certified verify defers to the stock head for any batch holding a request that asks for logprobs, penalties, a grammar or token mask, logit bias, a custom logit processor or logprob capture (
_adjusts_logits). The benchmark workload has none of these (greedy,ignore_eos, no logprobs), and every check launch counted certified verify calls at every point, so the timed and check results are unaffected. In a deployment such batches get the stock verify, which bounds both the exactness scope and the speedup.The MTP c = 64 event: stock's BF16 decode path errs against FP32 at one position, and no observation requires a certified-head error. Session 1's certified run committed token 1756 at prompt
579ae7ce, output position 439, in text the model wrote after its own end-of-text token. Stock runs there committed 68189, 8078 or 5715.a4db11ff, position 333) the reading's other branch applies: the BF16 prefill and scorer references err, by about 13-15 nats, and stock decoding commits FP32's top token. The reading reserved "ill-conditioned even in FP32" for FP32's paths disagreeing by more than 0.1 nats, which did not happen. As an interpretation, both are positions ill-conditioned in BF16: every path, BF16 and FP32, agrees within 0.05 nats on each of the 39 preceding positions, and they part at the position alone. The measure throughout is FP32's top logprob minus FP32's logprob of the token a path puts on top.MAX_ROWS=0, the head never decides) committed 1756. The head matched the stock argmax on every check-mode row (592,433) and every stress-test row (967,680; batch-1 inputs in head-only graphs), and was consistent with its own bounds on every ring-logged row. And stock batch-1 decode itself puts 1756 on top. The gate at the session-1 and h6a events is unknown, but with the gate on the head returns the stock head's argmax for the hidden state it receives (its contract; 0 differing rows in check mode and in the stress test).session_000527's content feeds the event. The planted-donor hold (h8) saw no 1756 and no planted token in any draw, and its unplanted cert0 control did not fire (0 of 12; about 0.22 by chance at the uninstrumented rate). The planting removed 1756 from 527's function-name slot only; 527 still emits it infirst_type.Evidence, one item per hold:
CHECK=1; rerun as stepcheck2in the settling hold with every counter written): every certified call counted (uncounted_calls0 at every point and path) and 0 of 592,433 certified rows differ. h1's first run (594,329 counted rows, also 0 differing) wrote its counters every 25 glue calls and stays incheck.csvlabelled partial.MAX_ROWS=0), and on 512 of 512 prompts in MTP waves of 64.drain_scores.csv,drain_score_report.json,drain_gross_events.csv). Every near and gross context was re-scored one request at a time (drain_serial_rescore.json): the 8 gross and 22 near flagged concurrently keep their classes, and contexts below 0.5 nats concurrently were not re-scored, except 579ae7ce/439 in every point. There, serially, 5715 is 2.19 nats below the top, so h6a'sstock2repeat 2 (andcert1repeats 3 and 5) are gross too: "no gross event in any stock MTP point" holds only under the concurrent reference. By FP32's measure the two MTP gross events (579ae7ce/439) are BF16 errors and the six plain c = 128 ones (a4db11ff/333) are scorer errors: the served token is FP32's top. A BF16 teacher-forced reference, even at batch 1, can be wrong by 13 nats or more at such positions. All eight gross events follow the request's first<|endoftext|>(about 1.2% of positions).drain_ring_439.csv,drain_ring_report.json). At the 439 verify, located in all 20 certring draws that reached it, the server batch held 14-19 requests. In the 9 with the gate on (batch 14-16) the head chose 68189 with status 0 and 1756 was never a candidate; in the 11 with it off (batch 17-19) the stock head chose 68189 (8), 5715 (2) or 8078 (1). Over all four certring launches (911,240 certified rows, 17,518 column-fallback, 286 dense-merge, 729,006 accepted) every id was consistent with its own bounds and the verify committed the head's id on every accepted row: self-consistency, not correctness against stock. cert0 committed 1756 in 2 of 12 points.stress_summary.json,stress_pool_probe.json): 0 differing rows and 0 envelope breaches over 967,680 certified rows, under graph replay of the drain's real batch sizes and gates. This clears the head's decision path for batch-1 inputs in head-only graphs. Limits: the graphs hold the head alone; the gate-off branch is simplified; no mismatch in 967,680 rows bounds a generic per-row fault at about 3.1e-6; and 579ae7ce's rows are batch-1 hidden states from one prefill. The probe refutes allocator aliasing. The scheduler's write-after-read overlap is ranked low on a reading of the code, not tested.reference_paths.json): the table and traces above, read on rescore.py's stock server one request at a time with a cache flush before each, and in FP32 on the CPU (transformers' Qwen3.5, eager attention, torch GDN kernels; one forward and recurrent decode agree within 0.0001 nats at 579ae7ce/439 and 0.0024 at a4db11ff/333).drain_donor_h8.json): planted 13 of 18 draws reached 439 (68189 7, 8078 6), unplanted cert0 12 of 12 (68189 10, 5715, 8078), reordered 4 of 6 (68189 3, 5715); no 1756 and no 9471 anywhere. Inconclusive by the pre-set rule.context_waves_stopped_*.json): in batches of 8-16, 579ae7ce leaves session 1's text at output position 154 in 45 of 48 stock waves (55 of 60 in an earlier run), so the design almost never reaches 439. They were stopped in their first block; no cert0 or certified wave ran.control_seeded_mtp.json,control_seeded_stats.json): above.classes.csv): rerun one context at a time as pre-registered (amendment inexperiments/benchcert/README.md). Of 1,113 unique contexts, 540 tie, 553 one ulp, 19 near and 1 large (the concurrent run: 530, 550, 32 and 1). Only the large context moved by more than 0.5 nats (3.6 to 6.8). The verdicts are unchanged.Memory
The certified graphs' buffers are allocated at graph capture, after SGLang sizes its pools. They add 3.8 GB (plain), 25.7 GB (MTP), 6.4 GB (block 16) and 10.0 GB (block 8). The DFlash pairs needed an explicit 60,000-token KV pin on both arms: without it, the stack workstream's certified block-16 server ran out of memory at start-up. Graphs of 65-256 rows carry certified nodes that
MAX_ROWS=64never runs. A derived estimate says capturing the head only up toMAX_ROWSwould save most of this memory; that is a proposal, not implemented.Changes
bench/sweep.py: two opt-in flags,--return-token-ids(prompt and output token ids in the finalsglextchunk; no logits) and--snapshot-file(copy a file before and after each point). Default behaviour is unchanged.experiments/benchcert/:plan.py, the declared plan;run_session.pyandhold.sh, the holds; they refuse a dirty tree, a wrong engine tree, or any head but the README's recorded hold commit;analyze.py, the predictions, validity, Holm decisions, token comparisons, check counters, capture memory and post hoc diagnostics;figures.py;rescore.py,control_waves.pyandhold_shared.sh(re-score and wave controls),hold_settle.sh(settling hold),drain.py,hold_drain.shandhold_drain_score.sh(drain reruns h6-h9 and their scoring), andreplay_hook/(per-replay log for check-mode runs;benchcert_ring.py, the device ring of thecertringlaunches);score_report.pyandring_report.py, the readouts of the scores and the ring;fallback_stress.pyandhold_stress.sh, the stress test, the pool probe and the planted-donor hold's reference step;context_waves.pyandhold_context_waves.sh, the small-batch waves at 579ae7ce's context (stopped);paths.pyandhold_paths.sh, the reference paths, FP32 and the serial re-scores;hold_seeded_waves.shandhold_seeded_stats.sh, the seeded control and its counter rerun (incontrol_waves.py);evidence/certified_head/served/: points (long form), pairs, ratios, summary, equality and classes, check counters, launch and capture-memory records, figures and figure data, the wave controls and the predictions; for the wrong token, 579ae7ce's position 439 in every MTP c = 64 point, the h6s scores and gross events and their serial re-score, the ring readings, where the events sit, the stress test's summary and pool probe, the reference paths and FP32, the planted-donor draws, the stopped waves and the seeded control.tests/test_benchcert.py,test_benchcert_score_report.py,test_benchcert_ring_report.py,test_benchcert_fallback_stress.pyandtest_benchcert_paths.py: 67 CPU tests, covering the plan's matching, Holm, exactness status (including the fail-closed cases and complete check counters), token comparison, a synthetic end-to-end report, the re-score response parsing, the controls, the drain reruns' launches and scoring, the score and ring readouts (with a ring locator fixture), the stress test's CPU parts, the planted token's selection rule, the reference-path and serial re-score readouts, and the seeded control's plan and comparisons.Validation
tests/test_benchcert*.py) and pre-commit passes on the changed files. Commits made while a timed hold was running skipped the hooks and were checked in the following window.analyze.py reportat 708c723, which contains the check-completeness fix, reproduced every committed analysis output byte for byte apart fromanalysis_commit. The outputs were then regenerated at 0ece39a with--classespointing at the serial re-score; only the class counts andanalysis_commitchanged, and the verdicts and exactness status are unchanged.Not done
MAX_ROWS=256was not timed.mtp-tuned(the FlashInfer MTP arm for c ≥ 48) was not tested.plain-tuned-replayssm, which may lead the envelope at c = 96-128, was not tested.session_000527is untested. No further closed-loop reruns are planned for it.