Repository navigation
Paper: fold the certified int8 head (#45) into the main text - #160
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. |
#45's evidence (evidence/certified_head) resolves most of the pending kernel entries. - Table 1 statuses: - The stock-error row is still assumed, now consistent with the FP32-output kernel's observed error, 58 times inside the Hopper model, and with the implemented 2^-100 floor. - Row invariance is measured at 20 batch sizes and re-checked at start-up. - The low-precision kernel is still not proved, but is checked per compiled variant at start-up and by runtime probes. The measured violation is named: int8 TMA tiles with a 64-byte box gave wrong raw products under Triton 3.7.1 and are refused. - Re-scoring is implemented and tested. - The seeded chain's rounding is bounded by CUDA's documented expf and logf accuracy and matched on 60,000 replayed rows. - Abstract and contributions: the TMA violation in contribution 2; the head-path runtime, timed alone, in place of "pending" (about 0.7 of the stock head's time up to 16 rows, slower from 128). - Section 4.3: seeded agreement on 60,000 replayed rows; acceptance in the engine stays pending (kernel-seeded-engine). - Section 4.4, reconciled with the held-out rates: the GPU kernel leaves 0.28% and 1.46% of the first 60,000 capture rows to the stock kernel (held-out: 0.35% and 1.40%), and with the fallback every token equals the engine's. On batches of 128 consecutive rows its measured fallback shares (27% and 77%) fall below what independent rows at its own rates give (30% and 85%). - Section 4.5: the pipeline as implemented (self-test, runtime probes, refused tiles), then the microbenchmark. 239.6 against 370.5 us at M = 1. With the column fallback's expected cost the path takes 0.67-0.70 of the stock time up to 16 rows, 0.81 at 32 and 0.93 at 64 (conservative model). Every mode loses from 128, where the int8 pass alone is slower than the stock chain. Head-only times; the served effect is pending. - Discussion: the measured error, and the open question narrowed by the microbenchmark. - Figure 3 gains panel (c), time per call over the stock head from head_path_time.csv. In (b), the kernel's measured per-M batch fallback rates replace the single capture-step markers. Cuts to stay within ten pages: - The candidate table and the fallback-share table move unchanged into Appendix A.3 (agreed with the appendix editor). Figure 3 and Section 4.4's text keep their headline numbers. - Section 4.5 loses the gather-size sentence. - Figures 3 and 4 are slightly shorter.
#154 added evidence entries for the certified head under the same keys and kept these devitems (kernel-impl, -error, -invariance, -rowwise, -path, -seeded) while the main text still cited them as pending. The previous commit swaps every one of those markers to the evidence entry, so the devitems go. kernel-seeded-engine and kernel-union stay pending.
#142 (evidence/triton_tma) tested the certified head's int8 TMA kernel on seven Triton and ptxas builds: the four without both Triton >= 3.8.0 and ptxas >= 13.3 gave wrong products, the three with both did not, a version pattern that matches the closed issue triton-lang/triton#9433 (the README's attribution rests on that pattern alone). Section 4.5 now says so with a new register entry, triton-tma, added after kernel-tma with the appendix editor's agreement; the issue is named in text, not cited, so references.bib is unchanged. To keep the page budget, Section 4.5 drops a parenthetical on how compaction keeps whole tiles.
bd3b1fe to
2f7c528
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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 (2f7c528) Every number the fold adds traces to committed evidence:
Optional. The rewrite of the pipeline paragraph in |
The editor shortens Table 1, Table 2, Section 3's accumulation lemma, the kernel checks, Section 2.5 and Figure 5 in the main text; their full versions land here in the same milestone as those cuts: - A.1: the full numerical-assumptions table, verbatim, as tab:assumptions-full; - A.3: the statement of Lemma lem:tree before its proof, the sentence on what the tree's shape distinguishes, and that the conservative model covers the Hopper model's gamma about sixfold; - A.8: the outlier-column, PCA and centring results (selfevidence-csv, stats) and the gather-size sentence that #160 dropped, traced to selfevidence_plain4b.json's batch unions (9.45 and 12.51 entries on steps with 5-8 and 9-16 positions); - A.9 (new, app:kernel-checks): the per-variant self-test, runtime probes and tests, the measured int8 TMA violation and the seven-build version pattern that matches triton-lang/triton#9433 (kernel-impl, kernel-tma, triton-tma); - C.5: the capture prompts' datasets and domains from prompt_manifest.csv; - C.7: the full transport table, verbatim, as tab:transport-full; - E.8: Figure fig:frontier with its detail (four of nine arms, 3.45x per-request rate, 0.98x and 0.86x, run-to-run variation), and the divergence-given- perturbation result of #162 with its intervals and exceptions, cited through a new register entry state-perturb. The app-scope glossary terms "Capture and replay", "Certified row" and "Enclosure" go: the main-text block now defines them. Built alone, the branch shows lem:tree and fig:frontier defined twice; the editor's cuts remove the main-text copies in the same push. Checker clean.
Folds the certified int8 LM head (#45, evidence in
evidence/certified_head) into the main text. #154 already added the evidence register entries under the old pending keys; this PR swaps every main-text\pend{kernel-*}for its\ev{kernel-*}and deletes the six pending entries that are now resolved (own commit).kernel-seeded-engine(acceptance in the engine, which needs #52) andkernel-unionstay pending. #142 (evidence/triton_tma) has since merged and is cited for the named violation, with triton-lang/triton#9433 (see below).What changes
Table 1 (numerical assumptions), status column
stock_invariance.json), and that the implementation adds abounds.py,ABS_FLOOR).stock_invariance.json). §2.3's row-wise fallback caveat now says the same.kernel-tma:tma_repro.json,tma_candidates.json,tma_m128_*).refinekernel matches the design in §4.5.expfandlogfaccuracy, and the certified sampler with its fallback matches SGLang's seeded sampler on 60,000 replayed rows at T = 0.7 and 1 (replay_decisions.json).Abstract and contributions
§4.5 and the register: the Triton evidence (#142, added at 2f7c528). §4.5 now says why the 64-byte int8 TMA tiles stay refused. Under Triton 3.7.1 they gave wrong raw products. Of the seven builds #142 tested, the four without both Triton ≥ 3.8.0 and
ptxas≥ 13.3 did, and the three with both did not. That version pattern matches the closed issue triton-lang/triton#9433; the README's attribution rests on the pattern alone, and the text says "matches", not "is".A new register entry,
triton-tma, sits right afterkernel-tma(agreed with the appendix editor). Its files areevidence/triton_tma/int8_tma_summary.json,cases/andREADME.md, generated byexperiments/triton_tma/. The issue is named in the text, not cited, soreferences.bibandsources/are unchanged. To pay for the extra line, §4.5 drops a parenthetical on how compaction keeps whole tiles.§4.3. Seeded agreement on 60,000 replayed rows. Acceptance in the engine stays
\pend{kernel-seeded-engine}.§4.4: reconciling #45's fallback rates with the held-out ones
§4.5. The pipeline is described as implemented, with the self-test, runtime probes and refused tiles. Then the microbenchmark (
head_path_time.csv; CUDA graphs, warm L2, real decode rows, probes on):head_primitives.json).\pend{bench-cert}.§7.
Figure 3 has three panels.
head_path_time.csv. It shows four W8A16 cases: a decided batch, the whole-batch fallback under each model, and the column fallback under the conservative model.batch_fallback_rate,hopper_batch_fallback_rate) replace the single capture-step markers. Its lines stay the derived independence curves.Cuts (page budget)
app:candidates), unchanged, agreed with the appendix editor: the candidate-rows table (tab:candidates) and the fallback-share table (tab:rstock). Figure 3a plots the same CCDFs, and §4.4's text keeps the headline numbers. Every reference to both tables stays valid, including the register's.Self-review
Every number is recomputed from the committed files, not copied from notes:
stock_invariance.json).bounds.py); eight probe rows (head.py).Build
Local build of 2f7c528, rebased on main 3528dfc after #142 (cores 40–47 under an untimed hold):
latexmk -pdfgives 85 pages and 0 warnings. The main text ends on page 10, and References start at the top of page 11.scripts/check_paper_references.pyis clean, including register paths at origin/main.codespellis clean on the changed files. The PR changes sources only; there is nopaper/paper.pdfin the diff.