Repository navigation
Appendix E: integrate the baseline tuning (#57) - #64
Conversation
The serving protocol now reports the configuration search on the tuning split in a new table: 23 configurations at concurrency 1, 8, 32 and 128, one launch each, labelled as selection evidence rather than results. The text gives the three regularities behind the choices and the chosen arms from bench/arms.toml. The arms that replay the GDN state wait on classification of their outputs against plain decoding (new pending item bench-equality). Appendix E.4 cites the served turn of MTP against plain decoding on the tuning split and the derived snapshot traffic. The crossover on the confirmation split stays pending (bench-mtp). The levers table gets the measured replay speedups. A new register entry covers the tuning evidence, bench-tuning leaves the pending list, and two glossary entries define replayed and snapshot verification and the tuning and confirmation splits.
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 Reviewed head 0201cf6: one commit on main (76b8c2c) that changes the appendix, the register and the glossary. The main text is unchanged. The tuning table and every derived figure are correct. One class statement conflicts with merged evidence. Checked and correct
BlockingB1. The class given for replayed verification conflicts with merged evidence (
CodexCodex is still running on 0201cf6. I'll check its comments before approving. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0201cf632f
ℹ️ 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".
| Every arm streams every fourth token (\code{stream-interval = 4} in \code{bench/arms.toml}). The server still sends the first token at once and the last at finish, so the times that Equation~\eqref{eq:frontier} uses do not depend on the interval, and the choice takes load off the single-threaded streaming path (below). Each point sends $\max(64,8c)$ measured requests, the first prompts of the confirmation split in order, after one wave of warm-up requests at the same concurrency, and the prefix cache is flushed before every point so that no measured prompt is served from cache. Repeats launch the server afresh and alternate the order of concurrencies, ascending then descending, so that drift does not align with concurrency. Timed runs hold the GPU exclusively, and because the scheduler, tokenizer manager and client are single-threaded CPU loops, each point also waits until other processes use fewer than two cores and records the foreign load it saw. | ||
|
|
||
| The speedup denominator is the strongest existing configuration, not a default. Arm~A is ordinary autoregressive decoding. Arm~B is native MTP speculation, whose draft steps reuse the target's tied head. Arm~C is the public DFlash drafter (Appendix~\ref{app:drafting}). On the tuning split the search covers chain depth (one to five steps, and seven without the prefix cache), draft trees (top-$k$ 2 and 4, which run on this hybrid model, with accepted lengths of 3.45 and 3.56 at concurrency 1 in the feasibility probes~\ev{probes}), attention and GDN kernel backends, the verify attention mode, SGLang's replayed GDN verification, its batch-adaptive depth, the prefill chunk size and graph backend, the prefix cache and the streaming frontend. The chosen MTP and DFlash configurations, with the tuning evidence, are \pend{bench-tuning}. | ||
| The speedup denominator is the strongest existing configuration, not a default. Arm~A is ordinary autoregressive decoding. Arm~B is native MTP speculation, whose draft steps reuse the target's tied head. Arm~C is the public DFlash drafter (Appendix~\ref{app:drafting}). The search ran on the tuning split~\ev{tuning}: 23 configurations, each launched once and measured at client concurrency 1, 8, 32 and 128 with $\max(32,4c)$ requests per point and 512 output tokens. It covered MTP chain depth (two to five steps with the prefix cache, three, five and seven without it), the prefix cache, SGLang's replayed GDN verification and replayed decoding, its batch-adaptive depth, Triton against FlashInfer attention, DFlash blocks of 4, 8 and 16 tokens and FA4 attention for the DFlash drafter. A one-step chain failed a launch check that required a draft-decode graph such a chain does not capture, and was not rerun; replayed verification was refused at launch for DFlash and with FlashInfer's GDN decode kernel. Draft trees (top-$k$ 2 and 4, which run on this hybrid model, with accepted lengths of 3.45 and 3.56 at concurrency 1 in the feasibility probes~\ev{probes}), the verify attention mode, the prefill chunk size and graph backend were not searched. With one launch per configuration, Table~\ref{tab:tuning} is selection evidence, not a result. |
There was a problem hiding this comment.
Exempt the capacity-64 configurations from the stated sweep
This says all 23 configurations were measured at concurrency 128, but both DFlash block-16 configurations were capped at 64 and the tuning campaign runs them only at 1, 8, 32, and 64 (bench/campaigns/tuning_backend_dflash.sh:20-24), as the later table footnote also acknowledges. Qualify these two configurations here so the reported search coverage does not imply nonexistent c=128 measurements.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 71cd149: the sweep sentence now reads "(64 instead of 128 for the two block-16 configurations)". 07067a6 then merges origin/main (9ad5344, which includes #65 and #59). The only conflict was paper.pdf, rebuilt from the merged sources: 69 pages, 0 warnings, main text ends on page 10, and the checker passes.
Address review B1 on #64. Merged evidence does not support the "exact up to the noise floor" class for replayed verification. Moonshot lever 5 (#60) calls it pending, with a mechanism that suggests lossy, because its verify outputs come from a chunked transform on TF32 tensor cores. bench/arms.toml (#57) also marks those arms lossy = "pending". The levers table's class and footnote and the chosen-arms sentence now say this. Triton attention for the target changes the target's arithmetic, as ruled in #60, so the Triton arms and the attention-backend lever are pending too, and bench-equality covers them.
|
B1 is fixed in 536899e. Replayed verification's class is now pending in the levers table. Its footnote cites the chunked transform on TF32 tensor cores and says the mechanism suggests lossy, with the class waiting on |
|
Verdict: REQUEST CHANGES Re-reviewed head 536899e (one commit on 0201cf6). B1 is fixed. Codex's P2 on 0201cf6 is valid and not yet addressed. It is a one-clause fix. B1 (fixed).
Blocking, from Codex P2 (
Merge note. The branch is behind main, which now includes #65's change to Figure 3. When you merge main, rebuild the PDF; I'll confirm the merge commit contains only the merge and the rebuild. |
Address the Codex review of #64: the DFlash block-16 configurations run at capacity 64 and were measured at concurrency 1, 8, 32 and 64.
# Conflicts: # paper/paper.pdf
|
Verdict: APPROVE Approving head 07067a6. It has two commits on 536899e:
B1 (the replayed-verification and Triton-target classes) was fixed in 536899e, and the tuning table and numbers were verified in my first review. |
Integrates the baseline tuning merged in #57 into Appendix E (serving protocol and speculation state), the evidence register and the glossary. The main text is unchanged.
What the appendix now says
evidence/bench/tuning/, new register entrytuning). A new table gives y at concurrency 1, 8, 32 and 128 and the accepted length at 32 for all 23 tuning-split configurations, one launch each. The paper labels it selection evidence, not results. It marks the three host-contention exclusions and the one KV-limited point (MTP s5 with the prefix cache at c=128), and notes that DFlash block 16 runs at capacity 64. The text says what the search covered. It also says what it did not cover: a one-step chain failed a launch check, replayed verification was refused for DFlash and with FlashInfer GDN decode, and trees, the verify attention mode, chunk size and graph backend were not searched.bench/arms.toml). Arms that replay the GDN state or run the target's attention under Triton are pending classification of their greedy outputs against plain decoding (new pending itembench-equality). MTP with snapshot verification under FlashInfer is the exact-stack fallback.bench-mtp, narrowed).Every number was typed from
evidence/bench/tuning/points.csvand checked against the bench README.Corrections relative to the evidence README
These are flagged to the bench workstream:
points.csv. The README rounds it to 447. The table uses 446.points.csv, which the README gives as 5,387.Validation
latexmk -pdfbuilds 69 pages with no LaTeX or BibTeX warnings. The main text ends on page 10. The rebuiltpaper.pdfis committed, and I looked at every changed page.python scripts/check_paper_references.pypasses: no uncited or missing keys, and every register path exists on origin/main.paper/; there are no other changed files.