Repository navigation
Appendix E: blocking reads removed from attention planning (#120) - #132
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 17477ab1d1
ℹ️ 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".
| \evitem{p4-declared}{P4's served test: the design, metric and decision rule declared before its first run, the prompt check corrected after it, the two void attempts and the amendments declared before each further run (declarations, not results)}{\nolinkurl{evidence/moonshot/README.md}}{\nolinkurl{experiments/moonshot/run_p4b.sh}, \nolinkurl{run_p4_admission.sh}, \nolinkurl{validate_p4_ab.py}, \nolinkurl{output_probe.py}, \nolinkurl{check_admission.py}} | ||
| \evitem{host-levers}{Triton attention for the MTP cycle's target and draft at concurrency 1 and 4, single runs}{\nolinkurl{evidence/moonshot/host_levers.csv}, \nolinkurl{README.md}}{\nolinkurl{experiments/moonshot/lever_sweep.py}, \nolinkurl{levers.py}, \nolinkurl{summarise.py}} | ||
| \evitem{backbone}{Backbone weight GEMMs and RMSNorm in isolation: the kernels cuBLAS runs per projection and $M$, faster kernels reading the same weights and their bitwise agreement with cuBLAS, the packed GDN input projection, the norm and SiLU prologues, layer skeletons and each run's foreign CPU load; the opt-in engine patch series is code, not a result (Appendix~\ref{app:levers})}{\nolinkurl{evidence/backbone/gemm_microbench.json}, \nolinkurl{merge_microbench.json}, \nolinkurl{norm_microbench.json}, \nolinkurl{chain_microbench.json}, \nolinkurl{tables.md}, \nolinkurl{README.md}, \nolinkurl{hostload/}, \nolinkurl{engine/sglang/patches/backbone/}}{\nolinkurl{experiments/backbone/gemm_bench.py}, \nolinkurl{summarize.py}, \nolinkurl{make_table.py}} | ||
| \evitem{hostgap}{Host-side idle in the MTP and DFlash cycles: stock host traces, the derived untraced idle, plan and attention-output equivalence of the sync-free plans, in-engine validation, greedy output equality with stock, and untraced cycle times before and after (Appendix~\ref{app:levers})}{\nolinkurl{evidence/hostgap/README.md}, \nolinkurl{stock_traces_hold1.json}, \nolinkurl{cycle_profiles.json}, \nolinkurl{plan_equivalence.json}, \nolinkurl{equality/}, \nolinkurl{engine/sglang/patches/hostgap/}}{\nolinkurl{experiments/hostgap/profile_arms.sh}, \nolinkurl{gap_analysis.py}, \nolinkurl{hold_equality_profiles.sh}, \nolinkurl{plan_equivalence.py}, \nolinkurl{equality.py}, \nolinkurl{summarize.py}} |
There was a problem hiding this comment.
Commit the host-gap evidence before citing it
In this commit, none of the twelve paths introduced by this register entry exists in the repository: scripts/check_paper_references.py --rev e9fee143a60d0120aed4593a45e7299828d562e4 reports every evidence/hostgap/, experiments/hostgap/, and engine/sglang/patches/hostgap/ path as missing. Consequently, the paper now presents measured results that readers cannot audit or reproduce, and the repository's evidence-register check fails; land those artifacts in this commit's ancestry or leave these claims pending until they are available.
AGENTS.md reference: AGENTS.md:L15-L19
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Scoped reply. The cited files are committed: #120 merged into main at 02a9803, and every path in this register entry exists there. scripts/check_paper_references.py checks against origin/main by default, and it passes on this head. This PR is stacked on #129 (base paper/appendix-backbone), whose base predates #120, so the paths are missing only from this branch's ancestry. When #129 merges I'll rebase this branch onto main and retarget the PR, so the ancestry will then include #120's evidence before anything merges. I'm not merging main into this branch now, because that would put all of #120's files into this stacked diff.
There was a problem hiding this comment.
Fixed: the branch is rebased onto main (02a9803, which includes #120), with #129's commits kept below it, and the PR is retargeted to main. Head is now 8fb9a9f. Every path in this register entry now exists in the head's ancestry: scripts/check_paper_references.py --rev HEAD reports "register paths missing at HEAD: none", and the origin/main check is clean too. The paper tree is unchanged by the rebase, since #120 touched no paper/ file, so the committed PDF still matches the source.
17477ab to
8fb9a9f
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
Fold in evidence/hostgap/ as its README scopes it. The untraced stock idle is derived (1.44-1.79 ms per tuned MTP cycle, 21% at B = 1 to 9% at 128; 1.36-1.46 ms for DFlash block 8). Patches 0001-0003 keep plans, attention output bits and greedy outputs equal to stock in the same configuration (192/192 requests per arm at c = 1, 8, 32, top-k 1 chains, radix off). The MTP cycle shrinks 2.7-4.8% in held batches, 13-16% of the idle at B = 1-8, 27-35% at 32-64 and 55% at 128, from sequential (not interleaved) pairs; the DFlash gain is unconfirmed. Patches 0004-0005, the serving A/B and retaken stock traces are pending (hostgap-served). Adds the hostgap register entry and pins-table series, the System overheads row of the levers table and the H6 status row.
8fb9a9f to
3e20a1b
Compare
|
Verdict: APPROVE (provisional, on 3e20a1b: Codex has reviewed 8fb9a9f, whose paper tree this head has byte for byte, but not this commit. I will confirm once it does.) Review of 4df1515 (text) and 3e20a1b (PDF), rebased on main after #129 merged.
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! 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". |
Based on main after #129 merged (2f1b274). The diff contains only this PR's two commits:
4df1515(the App E text and the register) and3e20a1b(the rebuilt PDF).Adds #120 (
evidence/hostgap/) to Appendix E, scoped as its README states. Every number below comes from that README,cycle_profiles.json,stock_traces_hold1.json,plan_equivalence.jsonorequality/.What the appendix now says
There is a new paragraph in E.6, "Removing the blocking reads from attention planning", after the Triton-attention host lever.
hostgap-servedcovers patches 0004 and 0005 (not validated), the interleaved serving sweeps, and the stock traces retaken with the same window driver.Also:
hostgap: README, both traces' JSON, plan equivalence,equality/and the patch series, produced byprofile_arms.sh,gap_analysis.py,hold_equality_profiles.sh,plan_equivalence.py,equality.pyandsummarize.py;hostgap/series.Checks
latexmk -pdf: 0 warnings, 81 pages, main text ends on p10, References on p11.scripts/check_paper_references.pyis clean against origin/main, which now holds Remove blocking reads from FlashInfer planning in the speculative cycle (hostgap) #120.