Repository navigation
Appendix F: exact fold-every-commit verification for DFlash; P10 rejected by its gate (#133) - #158
Conversation
|
@codex review |
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. |
|
Verdict: REQUEST CHANGES (35916ca; 2 blocking, both about how the served bitwise sentence describes its conditions. Every number checks out. My build of this head is queued in the CPU window.) Blocking
Checked against
Optional
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 35916ca048
ℹ️ 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".
| P7b: certified block-parallel GDN verification beats strict replay & Captured-trace arms: reference, strict replay, certified fast, unchecked fast (Appendix~\ref{app:verify-state}) & SGLang's chunked kernel is not a usable fast path (synthetic inputs, one request)~\ev{fast-verify}; the certified path \pend{p7b}\\ | ||
| P9: reusing a cached DFlash window once after a rejection beats fresh drafting & Support oracle on the post-rejection boundaries, then the cost-charged two-cycle test with a real program and a matched refiner (Appendix~\ref{app:p9}) & For P9's program, conditioned on the whole corrected prefix, over offline-recomputed candidate sets, with a padded block-16 verify and reuse at every possible boundary at $c=1$, the oracle bound does not reject reuse with top-8 and top-16 sets ($\Delta=+0.22$ and $+0.99$ tokens per boundary; an upper bound, not a speed-up) and rejects it with top-1, top-2 and top-4~\ev{repair-p9}; the bounds with a free reused verify and with an oracle gate reject none of the tested sets; real program \pend{repair-p9-program}\\ | ||
| P11: restartable prefix-demand verification removes verify work & None run (Appendix~\ref{app:verify-state}) & Dropped by its author in favour of P10: verify kernels keep the recurrent state in registers, so a shorter suffix does not remove per-token full-state reads (reasoning); P10's first test \pend{p10-split}\\ | ||
| P10: replaying the accepted tail inside the next verify kernel pays & Share of the speculative cycle in SGLang's exact GDN fold at concurrency 8 and 16; built only if at least 9.09\% (Appendix~\ref{app:verify-state}) & Rejected without building: 4.9\% and 6.6\%, so removing the fold outright would make the cycle at most $1.05\times$ and $1.07\times$ faster~\ev{drafter-fold}\\ |
There was a problem hiding this comment.
Close P10 in the project tracker
Now that this row declares P10 rejected, TASKS.md:112 still marks P10 as active and says the phase-timing hold is queued. This leaves the repository's work tracker contradicting the paper and can cause the already-completed gate or rejected implementation to be scheduled again; update that task to record the rejection and its evidence.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5696ac5: TASKS.md now marks P10 done, rejected by its gate (fold phase 4.9% / 6.6% of the cycle at c = 8 / 16 against 9.09%, at most 1.05x / 1.07x), with the PR and evidence/drafter/README.md.
|
Update to my verdict on 35916ca (still REQUEST CHANGES): Codex r4159663482 is valid. Add it to my two items.
|
|
@codex review 5696ac5: the served bitwise sentence now gives MTP at concurrency 1 its own condition (same running limit and recurrent slots, KV pools 362,723 stock and 416,669 fold) and scopes "all pools matched" to the DFlash rerun and the waves; the closed-loop sentence names the measurement (stock MTP matched a stock rerun on 10 of 80 at concurrency 8). TASKS.md marks P10 done. Build: 0 warnings, References on p11, checker clean. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5696ac5cff
ℹ️ 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".
| - `todo` P7: certified block-parallel GDN verification against strict replay on a captured trace (reference, strict, certified fast, unchecked fast, reduced precision) (moonshot; first rejection tests in PR #60, `evidence/moonshot/README.md` section 2e: SGLang's chunked kernel is not a usable fast path, synthetic inputs at one request) | ||
| - `done` P7: five-contract framing of every exactness claim in the paper, counterexamples reproduced as tests (paper; PR #26, #30; `evidence/contracts/`) | ||
| - `active` P10: anchor-fused exact replay of the accepted GDN tail inside the next verify; first the per-phase split with SGLang's exact GDN fold at c = 8 and 16, build only if the fold phase is at least 9.09% of the cycle (drafter; phase-timing hold queued) | ||
| - `done` P10: anchor-fused exact replay of the accepted GDN tail inside the next verify, rejected without building by its pre-registered gate: SGLang's exact GDN fold phase is 4.9% / 6.6% of the cycle at c = 8 / 16 against the 9.09% gate, so removing it outright would make the cycle at most 1.05x / 1.07x faster (drafter; PR #133; `evidence/drafter/README.md`) |
There was a problem hiding this comment.
Close the duplicate snapshot-free verification task
Although this row now closes P10 and attributes the completed fold work to PR #133, TASKS.md:122 still marks “Snapshot-free GDN verify for DFlash and MTP” as active with “no PR yet.” That entry describes the exact fold implementation, bitwise checks, and timing evidence this commit reports, so leaving it active keeps the tracker contradictory and may cause completed work to be scheduled again.
Useful? React with 👍 / 👎.
|
Verdict: REQUEST CHANGES (5696ac5; 1 blocking: Codex r4159738366, a one-line tracker fix) All three of my items are fixed:
Keeping "+6--12%" is fine. Blocking
|
…cted by its gate (#133) From evidence/drafter/README.md (buffered GDN verify sections) and buffered_verify/, phase_timing/, fold_timing/ (#133): - kernel parity: the fold's verify output and committed state are bitwise equal to the stock verify's in all nine cases; circular replay differs in 19-20% of BF16 words; - served, matched pools: bitwise equal to stock verification for MTP s3 on all 80 sequences at c = 1, DFlash b16 on the 8 requests rerun at c = 1 (radix on), and both on all 80 in fixed-composition batches of 4 and 8 (radix off); no bitwise claim for closed-loop c > 1; - held batches: cycle 8.6% shorter at batch 8, 11.9% at 16; - served A/B, one session on both tuned DFlash arms: +5.8-6.1% at c = 8, +8.2-9.4% at 16, +11.8-12.0% at 32; -3.2% at c = 1 on block 16 and -1.4% on block 8 (likely value-tile cause, untested); - P10 rejected without building: the fold is 4.9% and 6.6% of the cycle at c = 8 and 16, below its 9.09% gate. New paragraph in App F.8, P10 status row (P11's row updated), a levers table row, evitem drafter-fold; the p10-split devitem goes.
MTP at concurrency 1 had the same running limit and recurrent slots but different KV pools, so it is no longer covered by "matched pools"; the closed-loop non-reproduction is stated as the MTP concurrency-8 measurement. TASKS.md now records P10 as rejected by its gate.
Widen the Status column to 4.6 cm and shorten the backbone and fold cells, so the table fits its float page again.
5696ac5 to
30a762c
Compare
|
@codex review Rebased on main after #155 and #157 merged (head 30a762c). The register conflict is resolved: P-A to P-C, then P10 and P11. TASKS.md closes the snapshot-free verify task. The levers table, which #157's backbone row had pushed 17.7 pt past its float page, fits again: Status column widened to 4.6 cm, backbone and fold cells shortened. Build: 0 warnings, References on p11, checker clean. |
|
Codex Review: Didn't find any major issues. Keep them coming! 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 (30a762c)
|
This PR folds #133 (the drafter's fold-every-commit GDN verify) into Appendix F, the levers table and the register. It is source-only. The sources are the three buffered-verify sections of
evidence/drafter/README.mdand the files inbuffered_verify/,phase_timing/andfold_timing/.Appendix F.8, "Verifying the recurrent state"
P10 is rejected without building. Its gate required SGLang's exact GDN fold to take at least 9.09% of the speculative cycle at concurrency 8 and 16. It takes 4.9% and 6.6%, so removing it outright would make the cycle at most 1.05x and 1.07x faster.
The new paragraph, "Exact verification without per-position snapshots", covers the following.
What changes. SGLang's fold-every-commit protocol stops writing the 805 MB of per-position states that each request needs per cycle at block 16. Engine patches enable it for DFlash and turn it on for GDN pools under MTP.
Kernel parity. The fold's verify output and committed state are bitwise equal to the stock verify's in all 9 cases. The circular replay differs in 19-20% of BF16 words.
Served equality with matched pools. Equality means the same tokens and the same top-5 logprobs.
No bitwise claim is made for closed-loop clients above concurrency 1, because stock itself does not reproduce there. The differences in the first, unmatched-pool check followed the fold server's own pools, not the fold.
Held batches. The cycle is 8.6% shorter at batch 8 and 11.9% shorter at batch 16. The verify loses 1.10 and 2.16 ms of state writes; the commit gains 0.22 and 0.38 ms.
Served A/B. One session, order stock, fold, fold, stock, on both tuned DFlash arms:
Tokens per cycle are unchanged. The likely cause of the c = 1 slowdown is the value-tile choice, which comes from code reading and is labelled untested.
Status table, levers table, register
drafter-fold, covering the parity, exactness, localize, phase and fold-timing files, the README and the engine patches, with their scripts. Thep10-splitdevitem is removed.Checks
scripts/check_paper_references.py: clean.Note on merge order. #157 also edits Table 21, in the backbone row. Whichever of #157 and this PR merges second needs a rebase and a check that the table still fits.